News for hackers. Stuff that matters.
Re:Singleton Is a Bad Idea by jackblemming on Sunday April 10, 2022 @02:37PM (#30980234)
Domains often organically have an entity that is well mapped to a singleton. Don't fight the domain if this is the case, you're fighting against reality. But don't reach for a singleton if this isn't the case. Especially bad are singletons that are mutable, for these are just thinly masked globals.

There are no comments on this comment yet.