codeinabox@programming.dev to Programming@programming.devEnglish · 1 day agoHow Long Should a Function Be? (And Why It’s the Wrong Question to Ask)adamtornhill.substack.comexternal-linkmessage-square12fedilinkarrow-up121arrow-down11
arrow-up120arrow-down1external-linkHow Long Should a Function Be? (And Why It’s the Wrong Question to Ask)adamtornhill.substack.comcodeinabox@programming.dev to Programming@programming.devEnglish · 1 day agomessage-square12fedilink
minus-squarethingsiplay@lemmy.mllinkfedilinkarrow-up12·22 hours 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·15 hours 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.