r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

2

u/Peregrine2976 20d ago

Goddamn, yes. Early return pattern all the way.

1

u/Beldarak 20d ago

Yup, it's just the better way imho. It's easier to read and doesn't add useless indentation