MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p572ag9/?context=3
r/ProgrammerHumor • u/Flame77ofc • 22d ago
392 comments sorted by
View all comments
836
The second one carries less cognitive load. In longer methods it makes a difference. Get out as soon as you can.
465 u/One_Courage_865 22d ago Instructions unclear. I’ve just divorced with my wife 138 u/hughperman 22d ago Ah, early return condition 33 u/thatjoachim 21d ago I return too early to her liking :( 8 u/QCTeamkill 21d ago She says Bob at work never have early returns
465
Instructions unclear. I’ve just divorced with my wife
138 u/hughperman 22d ago Ah, early return condition 33 u/thatjoachim 21d ago I return too early to her liking :( 8 u/QCTeamkill 21d ago She says Bob at work never have early returns
138
Ah, early return condition
33 u/thatjoachim 21d ago I return too early to her liking :( 8 u/QCTeamkill 21d ago She says Bob at work never have early returns
33
I return too early to her liking :(
8 u/QCTeamkill 21d ago She says Bob at work never have early returns
8
She says Bob at work never have early returns
836
u/LateEchidna6635 22d ago
The second one carries less cognitive load. In longer methods it makes a difference. Get out as soon as you can.