4 ms·
> Singletons used to be an anti-pattern Singleton was never the antipattern, it was the GoF implementation using the class to manage the singleton instance tha
by chuckadams 2y ago
> Singletons used to be an anti-pattern
Singleton was never the antipattern, it was the GoF implementation using the class to manage the singleton instance that everyone eventually ran from. Object lifecycles like Singleton are managed these days by a module system or a DI container.