News for hackers. Stuff that matters.
Re:From STUPID to SOLID Code! by nightski on Tuesday July 30, 2013 @01:08PM (#6128358)
I think you really hit the core issue here with singletons. There is no problem with global state if it is truly immutable (at least after initialization).

But the majority of singletons I have seen in practice (maybe my bad luck) contain mutable state. In the almost two decades I have been programming I have never come across a situation where I needed a singleton with mutable state. But hey I have not seen it all.

There are no comments on this comment yet.