913
you are viewing a single comment's thread
view the rest of the comments
[-] qarbone@lemmy.world 63 points 5 days ago

I've never seen a "refactor" create substantially more lines of code.

[-] alexdeathway@programming.dev 20 points 5 days ago* (last edited 5 days ago)

follow clean code book best practices once, you will

[-] Baguette@lemmy.blahaj.zone 7 points 4 days ago

Its probably 10 paragraphs of comments or something, for some reason AI really loves commenting on everything

[-] lengau@midwest.social 7 points 4 days ago

Ive done a few of those, but they were all preparatory refractors, pulling out bits of code to turn them into standalone functions that are only used once because my next PR uses them, and then adding unit tests for those new functions. -100 or so lines of code, +300 or so when you take into account the new docstrings, etc.

(The secret to doing these preparatory refractors is to actually do them after writing the "next" PR so you're not unnecessarily refactoring stuff you're going to touch.)

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

Programmer Humor

33524 readers
899 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