Thursday, October 2, 2008

Monostate

Spent a little bit today learning about Monostate and why some folks think the Singletons are the really bad.
  1. http://jeremyjarrell.com/archive/2008/04/21/88.aspx
  2. http://codebetter.com/blogs/jeremy.miller/archive/2005/08/04/130302.aspx
  3. http://c2.com/cgi/wiki?MonostatePattern
Today I came across two Jeremy Miller posts (second one in list) concerning two completely different things. I think I will keep track of this dude. His comments about the Singleton constructor pattern make me chuckle. I wish I had known about it when he wrote it. At almost exactly the same time, my more aggressive peers at a former employer demanded that many particular types of services MUST be implemented as singletons and the instantiation pattern MUST follow exactly the code that Jeremy is deriding in his post. I won't go so far as to say that only a Sith speaks in absolutes, but I will say that the words MUST and ALWAYS when applied to software architecture tend to make me bristle.

No comments: