Ek-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 4 days agoHad me in the first partmedia.piefed.socialimagemessage-square71linkfedilinkarrow-up1945arrow-down124
arrow-up1921arrow-down1imageHad me in the first partmedia.piefed.socialEk-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 4 days agomessage-square71linkfedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up61·4 days agoIf it’s adding that many lines, it’s not refactoring. It’s just adding slop.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up29arrow-down1·4 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·3 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·3 days agoIn a ratio of 60:1 lines added:removed?
minus-squareDerpgon@programming.devlinkfedilinkarrow-up2·2 days agoNo, of course, what OP posted is absolute hot garbage.
minus-squarepuz@piefed.sociallinkfedilinkEnglisharrow-up2·2 days agoIt’s like “fuck this codebase, we delete everything and start over”.
minus-squareFryHyde@lemmy.ziplinkfedilinkarrow-up2·3 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·2 days agoOkay, but also remove more I guess. The overall LoC might still be up, but not at this ratio
minus-squaremcv@lemmy.ziplinkfedilinkarrow-up6·4 days agoYeah, adding that many lines does not sound like a cleanup to me. Unless it’s mostly adding unit tests.
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”.
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
Yeah, adding that many lines does not sound like a cleanup to me. Unless it’s mostly adding unit tests.