Mar 9 2007

Are singletons evil?

Category: .NetRory Primrose @ 03:32

This is a very well written post from one of the Readify boys about the overuse of the Singleton pattern. Food for thought. I should look at whether the places I have used singletons is appropriate.

Tags:

Comments

1.
Andrew Matthews Andrew Matthews says:

Thanks Rory

That's great praise indeed considering I wrote it at midnight last night after WAY too little sleep during the week. I'm amazed I managed any kind of punctuation at all! I suspect that Micah will help you to understand the psychedelic effects of sleep deprivation... (Great picture, BTW)

I guess the message I forgot to add at the end is that a pattern is not just a building block - it's guidance that helps you decide whether you need to employ a singleton. We all tend to absorb the design aspects of patterns, and forget the deciding factors that suggest whether it's a good idea or not.

Andrew

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading