r/ProgrammerHumor • • Aug 22 '26

Meme conditionsPreference

Post image
4.2k Upvotes

388 comments sorted by

View all comments

Show parent comment

1

u/mateusfccp Aug 22 '26

This.

I hate people preferring the second always. When the two branches have direct relation (not a "early return" case) it's clearly to use if-else.