there can only be one singleton :neocat_hyper:
Conversation
Notices
-
Embed this notice
lumi :blobcatnom: :blobcatflower: (lumi@snug.moe)'s status on Sunday, 26-Apr-2026 21:44:40 JST
lumi :blobcatnom: :blobcatflower:
-
Embed this notice
Janneke (janneke@todon.nl)'s status on Sunday, 26-Apr-2026 21:44:39 JST
Janneke
@lumi
Is this a joke?A singleton is one of the most terrible anti-patterns ever invented. Global variables are frowned upon, or forbidden; but singletons (fancy global variables that need a lot of red tape): fine! Because, it's a pattern.
I once had to remove 24 singletons from a 250kLOC C++ code base. Not fun.
I'd say: Singletons, there must be none.
-
Embed this notice
Janneke (janneke@todon.nl)'s status on Sunday, 26-Apr-2026 21:54:20 JST
Janneke
@bazkie @lumi
That's definitely the trauma!Thanks for being so understanding <3
-
Embed this notice
surely bazkie 👩🏼💻 (bazkie@beige.party)'s status on Sunday, 26-Apr-2026 21:54:21 JST
surely bazkie 👩🏼💻
@janneke @lumi I think you are taking this too seriously! but that's probably the trauma!
-
Embed this notice