Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Except every preprocessor optimizes constants, you are not wasting any cpu cycles
-
ltlian21966yI 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. -
@ganjaman I don't know much about preprocessor optimizations as i want to, but if that's true then it's good to know 👌
-
@pyaf didnt know ganja was a hindi word, the name comes from here https://youtu.be/C6Le7luzv2Y
-
deodexed5746yMake it the JavaScript way:
if("false"){
//Always go here
}else{
//Never goes here
}
Related Rants
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 🤘🤘🤘
random
false
pr
code reviews
waste cpu cycles
true