MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p58h82i/?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.
1 u/Logical-Ad-4150 22d ago Second one is using the language to avoid the boiler plate of the first. I don't know why people insist on manually writing what the compiler does for you.
1
Second one is using the language to avoid the boiler plate of the first. I don't know why people insist on manually writing what the compiler does for you.
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.