Decorator Design Pattern Case Study

Decorator pattern is basically a way to extend functionality of an object by decorating with other objects which can wrap the target object and add their own behavior to it. If you never used or heard of decorators, I highly recommend reading chapter 3 of Head First Design Patterns. Pretty... [Read More]

kent beck

publish it and *then* improve it. otherwise how do you know what other people would like you to improve? first you learn the value of abstraction, then you learn the cost of abstraction, then you're ready to engineer.

Factory Design Pattern Case Study

I had a job to check our project code quality. And have to report it back to my team leader for any obstacle that i found in the project. I found a lot of leaks and i think would be good to be discussed on the blog. Not to mock... [Read More]

linq order by desc and get first row

SortedDictionary<int, int> result = new SortedDictionary<int, int>(); int max=result.OrderByDescending(t => t.Value).FirstOrDefault().Key;

Things Great Engineers (almost) Never Say

“I’ve used _____ but I have no idea how it works” – Great engineers gained their skills through probing and curiosity.  They go ‘under the hood’ of the products they use just to understand how things work, even if that information will never be very useful to them.  It is... [Read More]