The Borg Pattern
Learn about the Borg pattern, which is a monostate pattern.
We'll cover the following...
The solutions available through shared state should work for most cases, but if we really have to go for a singleton (and this has to be a really good exception), then there is one last alternative to it, only this is a riskier one to use.
Working with the Borg Pattern
This is the actual monostate pattern, referred to as the Borg pattern in Python. The idea is to create an object that is capable of replicating all of its ...