I need a singleton in my code. I implemented it in Java and it works well. The reason I did it, is to ensure that in a mulitple environment, there is only one instance of th
I feel compelled to post this series of articles about how Singletons destroy testability and are poor design choices:
Short summary: combining logic for what a class does with how it is instantiated makes code that is ugly to test, and should be avoided.