36

Want to piss off the person reviewing your PR?

don't just return true or false use 1 == 1 for true and 1 == 2 for false.

Watch the glorious rage unfolds 🤘🤘🤘

Comments
  • 6
    Except every preprocessor optimizes constants, you are not wasting any cpu cycles
  • 3
    I often use true and !true to toggle stuff during debugging, just because it's faster to type.

    It has happened more than once that I forget to take it out, and I have vital stuff tucked inside "if !false" and "if true" waiting for review.
  • 2
    @ganjaman I don't know much about preprocessor optimizations as i want to, but if that's true then it's good to know 👌
  • 0
    @pyaf didnt know ganja was a hindi word, the name comes from here https://youtu.be/C6Le7luzv2Y
  • 1
    You monster
  • 1
    Make it the JavaScript way:

    if("false"){
    //Always go here
    }else{
    //Never goes here
    }
Add Comment