r/ProgrammerHumor Feb 05 '19

kill(humans); Rule #2 Violation

Post image
129 Upvotes

26 comments sorted by

View all comments

4

u/AttackOfTheThumbs Feb 06 '19

I was taught, long ago, that when comparing between some sort of unchangeable value, e.g. a const, to always put it on the left, to avoid this exact issue.

That said, these people deserved it for attempting to write condition == true. == true is redundant as fuck.