Hacker News new | ask | show | jobs
by ashvardanian 317 days ago
Singletons are considered an antipattern in pretty much all PLs. C++, mentioned in the article, is not an exception.
1 comments

Singleton is the worst example of design pattern, not sure why these kinds of posts always like to mention it. Singleton is just a hack for avoiding OOP with OOP languages. Obviously python allows non OOP code, so not surprised singleton is useless there.