2 ms·
On a followup interview to the GoF, they were in favor of dropping Singleton: http://www.informit.com/articles/printerfriendly.aspx?p=1404056 http://www.inform
by GFischer 16y ago
On a followup interview to the GoF, they were in favor of dropping Singleton:
http://www.informit.com/articles/printerfriendly.aspx?p=1404056 http://www.informit.com/articles/printerfriendly.aspx?p=1404...
"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.)"
- antareus 16y agoYep. The only justifiable use I've run across is internal bookkeeping in a class library across an API that doesn't provide space for context and you need lazy initialization.