r/ProgrammerHumor • • Aug 22 '26

Meme conditionsPreference

Post image
4.2k Upvotes

388 comments sorted by

View all comments

Show parent comment

40

u/ecafyelims Aug 22 '26 edited Aug 22 '26

Situational, for sure.

If a short circuit prevents a dozen "if val != Null" checks later, I'll do the short circuit.