When discussing which patterns to drop, we found that we still love them all. (Not really – I’m in favor of dropping Singleton. Its use is almost always a design smell.)
—Erich Gamma
Singleton is by far the most hated design pattern in the (rather limited) history of design patterns. Just stating that fact, however, doesn’t mean you shouldn’t use Singleton: a toilet brush is not the most pleasant device either, but sometimes it is simply necessary.
The Singleton design pattern grew out of a very simple idea ...