912
you are viewing a single comment's thread
view the rest of the comments
[-] douglasg14b@lemmy.world 59 points 4 days ago

If it's adding that many lines, it's not refactoring. It's just adding slop.

[-] xthexder@l.sw0.com 25 points 4 days ago

The best refactors always remove more lines than they add. This is a horrifying ratio if no new features were included.

[-] derpgon@programming.dev 1 points 3 days ago

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?

[-] derpgon@programming.dev 2 points 3 days ago

No, of course, what OP posted is absolute hot garbage.

[-] puz@piefed.social 2 points 3 days ago

It's like "fuck this codebase, we delete everything and start over".

[-] FryHyde@lemmy.zip 2 points 3 days ago

I would think that modularizing a big block of code would have to add more lines, would it not?

[-] HK65@sopuli.xyz 2 points 2 days ago

Okay, but also remove more I guess.

The overall LoC might still be up, but not at this ratio

[-] mcv@lemmy.zip 5 points 4 days ago

Yeah, adding that many lines does not sound like a cleanup to me. Unless it's mostly adding unit tests.

this post was submitted on 03 Oct 2026
912 points (97.5% liked)

Programmer Humor

33524 readers
1179 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS