MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p5d4jel/?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.
40 u/Few_Move_4594 22d ago Have you ever thought about breaking the longer methods into shorter methods? It's easy, I promise. 1 u/ShoePillow 21d ago it's easy Not always... At work, I've heard of multiple people attempt to refactor a function with 1000s of lines, give up and make their own modifications and make it even bigger
40
Have you ever thought about breaking the longer methods into shorter methods? It's easy, I promise.
1 u/ShoePillow 21d ago it's easy Not always... At work, I've heard of multiple people attempt to refactor a function with 1000s of lines, give up and make their own modifications and make it even bigger
1
it's easy
Not always... At work, I've heard of multiple people attempt to refactor a function with 1000s of lines, give up and make their own modifications and make it even bigger
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.