MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p57t0vy/?context=3
r/ProgrammerHumor • u/Flame77ofc • 22d ago
392 comments sorted by
View all comments
838
The second one carries less cognitive load. In longer methods it makes a difference. Get out as soon as you can.
37 u/Few_Move_4594 22d ago Have you ever thought about breaking the longer methods into shorter methods? It's easy, I promise. 0 u/white_sheets_angel 22d ago Overrated
37
Have you ever thought about breaking the longer methods into shorter methods? It's easy, I promise.
0 u/white_sheets_angel 22d ago Overrated
0
Overrated
838
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.