5 ms·
So is the minecraft codebase terrible? I would guess it is based on the classes of bizarre bugs that seem to exist. I could almost believe Bethesda had a hand
by backlava 12y ago
So is the minecraft codebase terrible? I would guess it is based on the classes of bizarre bugs that seem to exist. I could almost believe Bethesda had a hand in its development.
- valarauca1 12y agoThere are some very terrible coding decisions made within the minecraft community. The open source server (which is based I believe on the orginal server) actually doesn't use function names to describe what the function does, but functions are given names like, "a","b","c","d" in alphabetical order. Which means you'll see instances of d.e(a.b(c.f(new b.g())));
- infogulch 12y agoI think that's an artifact of decompiling the minecraft binaries because the original source is not available.
- bdonlan 12y agoThe upstream minecraft server is a JAR that was run through a Java bytecode obfuscator, which mostly works by renaming all functions and fields with names like that. I'm not aware of any open-source server built with such unreadable naming from the start, but there are definitely _decompiled_ versions floating around. Since the original JAR was obfuscated, these decompiled versions are only partially deobfuscated, if at all, hence the unreadable names.
- Igglyboo 12y agoUh, that "Open Source Server" sounds a lot like a decompiled, obfuscated official server to me.
- voltagex_ 12y agoYou may be talking about CraftBukkit, which is a modified server using decompiled binaries (now has official upstream blessing). There is some work done to clean up function names (see http://mcpold.ocean-labs.de/index.php/Main_Page http://mcpold.ocean-labs.de/index.php/Main_Page) but yes, you may see obfuscated names.
- jebblue 12y agoI'm guessing Mojang is worth at least a Billion dollars because they make second most popular computer game in history; I'll take that kind of "terrible" any day of the week and consider myself blithely lucky. http://metro.co.uk/2014/06/26/minecraft-is-now-second-best-selling-video-game-ever-4776265/ http://metro.co.uk/2014/06/26/minecraft-is-now-second-best-s...
- backlava 12y agoYes I would also accept a terrible codebase that made me a billion dollars. Thank you for the insightful comment.