Ek-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 2 days agoHad me in the first partmedia.piefed.socialimagemessage-square66fedilinkarrow-up1921arrow-down124
arrow-up1897arrow-down1imageHad me in the first partmedia.piefed.socialEk-Hou-Van-Braai@piefed.social to Programmer Humor@programming.devEnglish · 2 days agomessage-square66fedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up59·2 days agoIf it’s adding that many lines, it’s not refactoring. It’s just adding slop.
minus-squareFryHyde@lemmy.ziplinkfedilinkarrow-up1·14 hours agoI would think that modularizing a big block of code would have to add more lines, would it not?
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up27arrow-down1·1 day 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·17 hours agoStrange, I always add lines to make it more cohesive, SoC, DRY, and generalized so it is easily extensible.
minus-squareScintillatingStruthio@programming.devlinkfedilinkEnglisharrow-up2·14 hours agoIn a ratio of 60:1 lines added:removed?
minus-squareDerpgon@programming.devlinkfedilinkarrow-up1·18 minutes agoNo, of course, what OP posted is absolute hot garbage.
minus-squaremcv@lemmy.ziplinkfedilinkarrow-up5·1 day 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.
I would think that modularizing a big block of code would have to add more lines, would it not?
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.