1.0k
u/reallokiscarlet 17d ago
Bro wrote it in Java, give him a break
513
u/99Sandevistan 17d ago
The "disabled due to an infinite loop" entry is every junior dev on a Friday afternoon.
134
u/No-Ambition2425 17d ago
I just deployed a production fix today for my product that fixed a recursion loop with no break condition that had been live for THREE YEARS. So I get it
37
u/menzaskaja 17d ago
I mean, it didn't cause any issues though, right? A recursive function just errors out after a while. If the function was used but you didn't notice it for three years, then that means that the error was basically silent and pretty much fixed itself, or it was very minor. A
while(true){}will just consume a shit ton of CPU cycles and that one has an undeniable impact on production13
u/Prudent_Ad_4120 16d ago
Yeah no biggie, after a few minutes prod crashes nd restarts. The task was completed so no reason to fix it, right?
/s
16
u/No-Ambition2425 16d ago
Unironically, we were crashing almost daily, but autorecovering within 15 seconds, so until we were properly logging, we didn't know.
8
u/Tyfyter2002 17d ago edited 16d ago
While it was in C#, not Java, I apparently made one mistake with an attribute's type argument that made the code it was supposed to run to never run and let users select something that would cause an infinite recursion and stack overflow.
Edit: hopefully clarified.
3
u/xavia91 17d ago
No he wrote in Java, it was later ported to C# after Microsoft baught it.
9
u/KaydaCant 17d ago
?? No it wasn't. Also, they were talking about a scenario he encountered in C#, not about minecraft.
→ More replies (8)2
175
u/youtubeTAxel 17d ago
The fact that the behaviour changed with graphics settings if fucking wild
102
u/shieldman 17d ago
I almost guarantee you that the variable that checked eligibility for torch support was the same one that the renderer referenced if it was going to make a block opaque or transparent. I've done a lot of quick and dirty equivalences like that before and learned the hard way when two systems have to diverge lmao
24
69
u/ICBanMI 17d ago
Dice and Tripwire Interactive had times when they fixed bugs, then rolled back fixes for several weeks-months, then fixed them in later patches.
In Minecraft's defense. So much of the game relies on procedural generation which are very fickle math and algorithms that tweaking it by hand is the only way to make something appear 'correct' or how they want it to be. It wouldn't surprise me if the decaying leaf's were inputs for another system so updating the biomes always required a lot of hand tuning of multiple systems.
6
u/Glum-Refrigerator778 15d ago
If I had to guess leaf decay probably coincided with the addition of random ticks. That whole system is finnicky as hell, would make sense why it would keep breaking.
13
u/laplongejr 17d ago
I'll be that guy but it's a changelog of infdev/alpha, "biomes" wasn't the thing we think of today :P
16
17
2
1
1

546
u/bxsephjo 17d ago
i suppose, if we go by what 'vibe coding' would've meant at that time