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

Programmer Humor

33472 readers
977 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] douglasg14b@lemmy.world 59 points 1 day ago (3 children)

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

[–] FryHyde@lemmy.zip 1 points 6 hours ago

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

[–] xthexder@l.sw0.com 26 points 1 day ago (1 children)

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 8 hours ago (1 children)

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?

[–] mcv@lemmy.zip 5 points 1 day ago

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