News of the world

This blog is in the first case meant for myself so I don't forget interesting stuff. So you will find lots of useless topics, but there will certainly be also readings that might interest you. Lots of the items will go about my family, things we do or don't do but also about software, cars, gadgets, music, etc ... .

7 mei 2005

Breaking the last dependency

Breaking the Last Dependency by Elisabeth Freeman and Eric Freeman -- All of the factory patterns "encapsulate" the instantiation of concrete classes and help to minimize (as well as localize) the dependencies your code has on those concrete classes. This articles explains what "breaking the last dependency" means, how it relates to the Factory pattern, and why you should care.

Patterns and Best Practices are nice things to talk about, but there are a lot of them and I don't know them all. But every once in a while you realize you are doing well. Last week I came across the problem described in the above article and I handled it pretty much in the same way as the solution described in the article. So even if you don't know all the patterns by heart, just use your common sense and you'll come a long way. Patterns are not mind blowing solutions to problems, but they are just solutions made by using common sense.