35
MrCSharp
16d

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
  • 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
  • 1
    @ganjaman (this is off topic) just in to ask you if anyone has said to you that you have a funny username when read as a Hindi (ganja) + English (man)? word :p
  • 1
    @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
    }
Your Job Suck?
Get a Better Job
Add Comment