Don't use singletons

Don’t use singletons The Singleton pattern is one of the patterns that appeared in the Design Patterns book by Erich Gamma et al.. What is a singleton? The singleton is one design patter to share a resource in a controlled manner in a code base. That resource could be a configuration, a connection or any other global state that should be unique. How to implement it? There are several ways to implement this, but in Python (for example) you can implement it by making use of the Python metaclasses. [Read More]