The Sin in Singletons
Singletons are not an anti-pattern, but they are an abused pattern. They're popular among beginners because they're convenient. Down the line they add complexity and cause maddening bugs.
Let's start with the positive. Every so often, you have an object that should be represented