257m@lemmy.ml to Programming@programming.dev · 2 years agoWhat are your programming hot takes?message-squaremessage-square36fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 2 years agomessage-square36fedilink
minus-squareTanakaAsuka@sh.itjust.workslinkfedilinkarrow-up1·2 years agoI mostly agree with this but more than shorter code I value readability, I would rather take 3 lines to be clear to any developer than use some obscure or easy to misunderstand structure to write it in 1.
minus-squareStudioLE@programming.devlinkfedilinkarrow-up1·2 years agoYep. And three functions is better than one for legibility even if one would be fewer lines of code
I mostly agree with this but more than shorter code I value readability, I would rather take 3 lines to be clear to any developer than use some obscure or easy to misunderstand structure to write it in 1.
Yep. And three functions is better than one for legibility even if one would be fewer lines of code