Ek-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 6 days agoHad me in the first partmedia.piefed.socialexternal-linkmessage-square69linkfedilinkarrow-up1946arrow-down124
arrow-up1922arrow-down1external-linkHad me in the first partmedia.piefed.socialEk-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 6 days agomessage-square69linkfedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up60·5 days agoIf it’s adding that many lines, it’s not refactoring. It’s just adding slop.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up29arrow-down1·5 days agoThe best refactors always remove more lines than they add. This is a horrifying ratio if no new features were included.
minus-squareDerpgon@programming.devlinkfedilinkarrow-up1·4 days agoStrange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.
minus-squareScintillatingStruthio@programming.devlinkfedilinkEnglisharrow-up3·4 days agoIn a ratio of 60:1 lines added:removed?
minus-squareDerpgon@programming.devlinkfedilinkarrow-up2·4 days agoNo, of course, what OP posted is absolute hot garbage.
minus-squarepuz@piefed.sociallinkfedilinkEnglisharrow-up2·4 days agoIt’s like “fuck this codebase, we delete everything and start over”.
minus-squaremcv@lemmy.ziplinkfedilinkarrow-up6·5 days agoYeah, adding that many lines does not sound like a cleanup to me. Unless it’s mostly adding unit tests.
minus-squareFryHyde@lemmy.ziplinkfedilinkarrow-up2·4 days agoI would think that modularizing a big block of code would have to add more lines, would it not?
minus-squareℍ𝕂-𝟞𝟝@sopuli.xyzlinkfedilinkEnglisharrow-up2·3 days agoOkay, but also remove more I guess. The overall LoC might still be up, but not at this ratio
If it’s adding that many lines, it’s not refactoring. It’s just adding slop.
The best refactors always remove more lines than they add. This is a horrifying ratio if no new features were included.
Strange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.
In a ratio of 60:1 lines added:removed?
No, of course, what OP posted is absolute hot garbage.
It’s like “fuck this codebase, we delete everything and start over”.
Yeah, adding that many lines does not sound like a cleanup to me. Unless it’s mostly adding unit tests.
I would think that modularizing a big block of code would have to add more lines, would it not?
Okay, but also remove more I guess.
The overall LoC might still be up, but not at this ratio