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
[–] lengau@midwest.social 7 points 21 hours 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.)