24

Found this on our project. I think that it is the best condition ever.

Comments
  • 1
    This is in production since 3 years 😧
  • 1
    this will help dev that require to write certain quantity of lines aha

    else {
    // many more line of code that never get executed.
    }
  • 0
    Looks like atom editor.
  • 0
    😂😂😂😂
  • 2
    Now we know why unsubscribe emails from shit never works..
  • 0
  • 0
    Some people use this to make it "easy" to stop some code from being executed. Think this was 0 while developing the stuff above this condition.
  • 0
  • 1
    @chickenbrain I have come across a statement like:

    if(my string!='hello' || my string!='goodbye') {

    } else {
    // 2000 lines of code that will never execute here
    }

    They were consultants!
Add Comment