16

*code reviewing someone's work*
OMG! if-statements within if-statements! This is an IFception! *prays*

Comments
  • 1
    gift the dev an air freshener for all the smells.
  • 0
    what's wrong with if statemens in other ifs ?
  • 0
    @liverreich yeah, after writing some Linux kernel code I have seen ifs in ifs and it's not a smell.
  • 3
    @liverreich ifs within ifs are alright to a certain level but 5 levels of ifs inside a main 'if' is way hard to track and not good to look at too and I know there's a simpler approach to code it. Turns out the program didn't return the right data because of the if condition in level 4 'if'
Add Comment