RonSijm@programming.dev to Programmer Humor@programming.devEnglish · 3 months agoWhatever 'Clean Code' you write now, it'll be shit eventually and in need of a complete rewriteprogramming.devimagemessage-square85fedilinkarrow-up1576arrow-down116
arrow-up1560arrow-down1imageWhatever 'Clean Code' you write now, it'll be shit eventually and in need of a complete rewriteprogramming.devRonSijm@programming.dev to Programmer Humor@programming.devEnglish · 3 months agomessage-square85fedilink
minus-square48954246@lemmy.worldlinkfedilinkEnglisharrow-up55·3 months agobest think like grug grug even have whole section just for refactor code
minus-squarepopcar2@programming.devlinkfedilinkarrow-up20·3 months ago inexperienced big brain developer see nested loop and often say “O(n^2)? Not on my watch!” complexity demon spirit smile This hits too close to home.
minus-squaremagic_lobster_party@kbin.runlinkfedilinkarrow-up19·3 months agoNew code is O(n log n), but the time benefits only kicks in when n is above 1 trillion. Otherwise it’s much slower.
minus-squareBeanie@programming.devlinkfedilinkarrow-up2·3 months agoAnd 90% of the time, n is about 3
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up6·3 months agoFinally, a development philosophy that sounds unambiguously correct.
best think like grug
grug even have whole section just for refactor code
This hits too close to home.
New code is O(n log n), but the time benefits only kicks in when n is above 1 trillion. Otherwise it’s much slower.
And 90% of the time, n is about 3
and 99.9% of the time it is less than 10
Finally, a development philosophy that sounds unambiguously correct.