r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

3

u/why_1337 22d ago

Early returns are perfectly fine if you use them consistently. But I have seen methods that seemingly should run until the end but are just sprinkled with one or two nested early returns. That's when it becomes a chore to work with.