Re:Minecraft removing obfuscation in Java Edition
by tormeh on Thursday October 30, 2025 @03:05AM
(#45757161)
I've always wanted my editor's go-to functionality to take me to an abstract class instead of the place where the actual logic resides. Good times.
[ Parent
| on HN ]
Re:Minecraft removing obfuscation in Java Edition
by mike_hearn on Thursday October 30, 2025 @04:40AM
(#45757697)
Any modern IDE will let you immediately bring up the subclasses with a single hotkey. If you have an abstract class with only a single subclass and that's not because new code is going to be added soon then yes, it's a bad design decision. Fortunately, also easy to fix with good IDEs.
Re:Minecraft removing obfuscation in Java Edition
by tormeh on Friday October 31, 2025 @10:50AM
(#45772599)
In my last project every class had a corresponding abstract class, and then we used DI to use the real class. Good to be rid of it.
Re:Minecraft removing obfuscation in Java Edition
by mike_hearn on Sunday November 02, 2025 @07:33PM
(#45794728)
That sort of knee-jerk over-application of a technique will ruin any codebase in any language, unfortunately. It tends to reflect a lack of confidence by the developers. They aren't entirely sure how to get best results so fall back on religious devotion to 'best practices' even when it's inappropriate, in the hope that they can point the finger later if there are problems.