Konubinix' opinionated web of thoughts

Singleton Pattern

Fleeting

Singletons are often preferred to global variables because they do not pollute the global namespace (or their containing namespace). Additionally, they permit lazy allocation and initialization, whereas global variables in many languages will always consume resources

https://en.wikipedia.org/wiki/Singleton_pattern