Ek-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 1 month agoHad me in the first partmedia.piefed.socialimagemessage-square69linkfedilinkarrow-up1955arrow-down124
arrow-up1931arrow-down1imageHad me in the first partmedia.piefed.socialEk-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 1 month agomessage-square69linkfedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up61·1 month agoIf it’s adding that many lines, it’s not refactoring. It’s just adding slop.
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up29arrow-down1·1 month 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·1 month agoStrange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.
minus-squareScintillatingStruthio@programming.devlinkfedilinkEnglisharrow-up3·1 month agoIn a ratio of 60:1 lines added:removed?
minus-squareDerpgon@programming.devlinkfedilinkarrow-up2·1 month agoNo, of course, what OP posted is absolute hot garbage.
minus-squaremcv@lemmy.ziplinkfedilinkarrow-up6·1 month 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·1 month agoI would think that modularizing a big block of code would have to add more lines, would it not?
minus-squareℍ𝕂-𝟞𝟝@sopuli.xyzlinkfedilinkEnglisharrow-up2·1 month agoOkay, but also remove more I guess. The overall LoC might still be up, but not at this ratio
minus-squarepuz@piefed.sociallinkfedilinkEnglisharrow-up2·1 month 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”.