Patterns I Hate #1: Singleton
http://tech.puredanger.com/2007/07/03/pattern-hate-singleton/
Singleton Pattern
http://www.oodesign.com/singleton-pattern.html
Use your singletons wisely
http://www.ibm.com/developerworks/library/co-single/
Difference between Singleton Pattern vs Static Class in Java
http://javarevisited.blogspot.com/2013/03/difference-between-singleton-pattern-vs-static-class-java.html
10 Singleton Pattern Interview questions in Java - Answered
http://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html
Why Enum Singleton are better in Java
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html
Singleton Pattern – Positive and Negative Aspects
http://www.codeproject.com/Articles/307233/Singleton-Pattern-Positive-and-Negative-Aspects
This entry inaugurates a new series on patterns that I hate. Hate is a strong word, perhaps a better name would be “patterns that I’ve frequently seen lead to ruin”. But that seemed too long.
Anyhow, the singleton pattern is the hands-down #1 pattern that can lead me to froth at the mouth. When a programmer first stumbles on GoF, Singleton seems to be the pattern that they first latch on to because it’s so easy to understand (just one class). Novice programmers doing their first design will often break out subsystems and access them via singletons.
Why is Singleton evil?
http://tech.puredanger.com/2007/07/03/pattern-hate-singleton/
Singleton Pattern
http://www.oodesign.com/singleton-pattern.html
Use your singletons wisely
http://www.ibm.com/developerworks/library/co-single/
Difference between Singleton Pattern vs Static Class in Java
http://javarevisited.blogspot.com/2013/03/difference-between-singleton-pattern-vs-static-class-java.html
10 Singleton Pattern Interview questions in Java - Answered
http://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html
Why Enum Singleton are better in Java
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html
Singleton Pattern – Positive and Negative Aspects
http://www.codeproject.com/Articles/307233/Singleton-Pattern-Positive-and-Negative-Aspects
This entry inaugurates a new series on patterns that I hate. Hate is a strong word, perhaps a better name would be “patterns that I’ve frequently seen lead to ruin”. But that seemed too long.
Anyhow, the singleton pattern is the hands-down #1 pattern that can lead me to froth at the mouth. When a programmer first stumbles on GoF, Singleton seems to be the pattern that they first latch on to because it’s so easy to understand (just one class). Novice programmers doing their first design will often break out subsystems and access them via singletons.
Why is Singleton evil?