Apr 24, 2022
The problem with Singleton is not that there's only one, but that as it's typically used it violates Liskov substitution principle and also everyone can get hold of it. http://misko.hevery.com/code-reviewers-guide/flaw-brittle-global-state-singletons/