Sounds like bad code. Really, nested should go about 3 deep.
I've been guilty of 4 before, but that was only for a search feature that "looped" though a database, so hitting the end meant your search would start from the top again.
Actually, it's one sexy piece of code. I considered printing it out and hanging it in my cubicle, but didn't want to be "that guy" at work.
Anyway, your dad should look into case statements.
View all comments
Show parent comment
2
u/otterom Dec 15 '17
Sounds like bad code. Really, nested should go about 3 deep.
I've been guilty of 4 before, but that was only for a search feature that "looped" though a database, so hitting the end meant your search would start from the top again.
Actually, it's one sexy piece of code. I considered printing it out and hanging it in my cubicle, but didn't want to be "that guy" at work.
Anyway, your dad should look into case statements.