News for hackers. Stuff that matters.
Re:I’m Adam, and i’m a recovering Singleton addict. by mattgreenrocks on Monday May 02, 2011 @11:18AM (#2506528)
My personal approach is singletons make sense only when:

1. There should be one instance of the data and

2. The data needs to be lazily initialized.

Otherwise, you might as well drop the facade and use globals.

There are no comments on this comment yet.