r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

256 comments sorted by

View all comments

Show parent comment

9

u/chasesan Mar 15 '22

Even if that's the case you should use Yoda style comparisons.

if (true == foo) ...

Putting a typo in that would result in a compilation error, rather than killer robots.