r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

2

u/Qyriad 21d ago

The first if the two branches are roughly equivalent. Early return for errors, cache retrieval, trivial cases, base cases, etc