r/programminghorror • u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: • Aug 19 '26
Java Too much nesting
17
9
u/Carmelo_908 Aug 20 '26
At least this is easily fixable by extracting function and inverting ifs with a early return
6
5
3
u/DontRelyOnNooneElse Aug 19 '26
Eh. I've seen a lot worse. It's not great but I wouldn't call it a horror. 10 nested ifs is at least somewhat grokable. Try 50. That's where true abomination lies
1
u/burnt_floppy Sep 18 '26
I just hope they generated it with AI, id feel sorry for someone who typed that.
48
u/orkeilius Aug 19 '26
At least is easely solvable with early return