May 2019
Intermediate to advanced
356 pages
5h 18m
English
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
The Singleton is the most hated design pattern in the (rather limited) history of design patterns. That said, however, it doesn’t mean you shouldn’t use the 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 that you should only have one instance of a particular component in your application. ...
Read now
Unlock full access