As Object Oriented Programming fans, you all know Design Patterns and rely on them for your designs.
This post by Chris Johnson about a potential hazard with the Singleton pattern is a good reminder that Design Patterns are not magical recipes. They can be sources of problems like any other piece of code if not implemented carefully.
In the comments, people linked to interesting articles about the correct implementation of the Singleton pattern in C#:
- Implementing the Singleton Pattern in C#
- Exploring the Singleton Design Pattern by Mark Townsend in MSDN
Better check your implementations accordingly...
As Mark Townsend says in his article: Design patterns are very useful software design concepts that allow teams to focus on delivering the very best type of applications, whatever they may be. The key is to make proper and effective use of design patterns.