codeinabox@programming.dev to Programming@programming.devEnglish · 3 days agoHow Long Should a Function Be? (And Why It’s the Wrong Question to Ask)adamtornhill.substack.comexternal-linkmessage-square12fedilinkarrow-up122
arrow-up122external-linkHow Long Should a Function Be? (And Why It’s the Wrong Question to Ask)adamtornhill.substack.comcodeinabox@programming.dev to Programming@programming.devEnglish · 3 days agomessage-square12fedilink
minus-squarethingsiplay@lemmy.mllinkfedilinkarrow-up13·3 days ago42 or 69 Depends on the function. Scientific functions should be 42 long, and for a couple of functions it should be 69. I don’t make the rules here.
minus-squareTehPers@beehaw.orglinkfedilinkEnglisharrow-up5·3 days agoI’ve heard the younger generation tends to prefer 21 or 67 long functions instead.
42 or 69
Depends on the function. Scientific functions should be 42 long, and for a couple of functions it should be 69. I don’t make the rules here.
I’ve heard the younger generation tends to prefer 21 or 67 long functions instead.