Ek-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 2 months agoHad me in the first partmedia.piefed.socialimagemessage-square63linkfedilinkarrow-up1958arrow-down124
arrow-up1934arrow-down1imageHad me in the first partmedia.piefed.socialEk-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 2 months agomessage-square63linkfedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up61·2 months agoIf it’s adding that many lines, it’s not refactoring. It’s just adding slop.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up29arrow-down1·2 months 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·2 months agoStrange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.
minus-squareScintillatingStruthio@programming.devlinkfedilinkEnglisharrow-up3·2 months agoIn a ratio of 60:1 lines added:removed?
minus-squareDerpgon@programming.devlinkfedilinkarrow-up2·2 months agoNo, of course, what OP posted is absolute hot garbage.
minus-squaremcv@lemmy.ziplinkfedilinkarrow-up6·2 months 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·2 months 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 months agoOkay, but also remove more I guess. The overall LoC might still be up, but not at this ratio
minus-squarepuz@piefed.sociallinkfedilinkEnglisharrow-up2·2 months agoIt’s like “fuck this codebase, we delete everything and start over”.
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.
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
It’s like “fuck this codebase, we delete everything and start over”.