Re:Minecraft removing obfuscation in Java Edition
by taneq on Thursday October 30, 2025 @12:54AM
(#45756569)
OK yeah that's a pretty good general principle. You think you only need one of these? Are you absolutely certain? You SURE? Wrong, you now need two. Or three.
Re:Minecraft removing obfuscation in Java Edition
by BlackFly on Thursday October 30, 2025 @04:57AM
(#45757784)
A singleton is more than just, "I only need one of these," it is more of a pattern of "I need there to be only one of these," which is subtly different and much more annoying.
Re:Minecraft removing obfuscation in Java Edition
by com2kid on Thursday October 30, 2025 @04:44AM
(#45757717)
Singletons are so useful in single threaded node land. Configuration objects, DB connection objects that have connection pooling behind them, even my LLM connection is accessed via a Singleton.
I have a vague idea of what the Bible says, but I have my favorite parts that I sometimes get loud about. Specifically, please think really hard before making a Singleton, and then don't do it.