pnutzh4x0r@lemmy.ndlug.org to Programming@programming.devEnglish · 1 year agoLinear code is more readableblog.separateconcerns.comexternal-linkmessage-square46fedilinkarrow-up1133arrow-down113 cross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
arrow-up1120arrow-down1external-linkLinear code is more readableblog.separateconcerns.compnutzh4x0r@lemmy.ndlug.org to Programming@programming.devEnglish · 1 year agomessage-square46fedilink cross-posted to: hackernews@lemmy.smeargle.fanshackernews@derp.foo
minus-squaremorrowindlinkfedilinkarrow-up1·1 year agoYou can always extract out the linear code when it actually becomes useful. It’s much easier to refactor when needed.
minus-squareDark Arc@social.packetloss.gglinkfedilinkEnglisharrow-up4·1 year agoI disagree, by the time you find you “need to” it’s often already tangled.
minus-squaremorrowindlinkfedilinkarrow-up1arrow-down2·1 year agoLinear code is almost always easier to refactor than code split into functions
minus-squareDark Arc@social.packetloss.gglinkfedilinkEnglisharrow-up4·1 year agoYeah I’m going to hard disagree with you on that.
You can always extract out the linear code when it actually becomes useful. It’s much easier to refactor when needed.
I disagree, by the time you find you “need to” it’s often already tangled.
Linear code is almost always easier to refactor than code split into functions
Yeah I’m going to hard disagree with you on that.