free hit counter javascript
Design Patterns - Dotmad (on .Net)

Dotmad (on .Net)

Just Another Web 5.0 Blog

Podcasts

Blogroll

Browse by Tags

All Tags » Design Patterns (RSS)
Design Patterns - why read books?
Most developers come across a reference to the GOF design pattern book at some point during their career. Others refer to the Head first patterns book , or other similar books on the subject. My advise: Instead of buying another paper weight and spending a lot of time extracting little information from a lot of pages (never could find the search option), go to the Dofactory design patterns web site. You can find information there easily and besides the theoretical data there are "real world"...
Generic Singleton Risks
The Singleton pattern is very well known to .Net developers, especially the static implementation. Lately I have encountered several versions of the generic Singleton , among them the one described in Arnon's post . However, there is one possible pitfall to this approach, as it makes this code possible: Singleton<MyClass> obj = Singleton<MyClass>.Instance; MyClass obj2 = new MyClass(); While I personally like the idea of having the freedom to use the same class in two different ways...
Design patterns: I wouldn't bother reading the GOF book
I have to disagree with Gil's (welcome to the blogosphere) recommendation regarding the classic DP book : I found it very hard to read, focusing on theory (as opposed to practice), and laking use of .Net framework features (since it was not written for .Net users). If you are a .Net programmer and want to learn and use design patterns, I recommend going to dofactory.com - clear, real-world examples meant for C# developers.