News for hackers. Stuff that matters.
Re:Singleton Is a Bad Idea by kjeetgill on Sunday April 10, 2022 @03:42PM (#30980932)
I mean, you're right. I came to much the same pattern myself. Much of the singleton hate is from everyone who hasn't figured out, seen, or works with a language that doesn't support "the good way" to do singletons. Alternatively, you could say this _similar, but different_ approach correctly acknowledges and similarly avoids _actual_ problematic singletons. We can all be friends here :D.

There are no comments on this comment yet.