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

  • 7
    Except every preprocessor optimizes constants, you are not wasting any cpu cycles
  • 4
    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.
  • 3
    @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:

    //Always go here
    //Never goes here
Your Job Suck?
Get a Better Job
Add Comment