this post was submitted on 11 Mar 2026
830 points (99.3% liked)
Programmer Humor
30341 readers
2051 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Then Devs focus on minifying the code into an unreadable mess
I'm not saying it's a good individual metric. In fact, applying individual metrics to developers (or most workers really), will only land you in Goodhart's hell.
But as part of holistic operational health tracking, it's a useful team level metric, as there is ample evidence that shorter PRs tend to result in less operational issues. And, of course, this is only valid if you don't try to tie financial rewards to it, otherwise people will forget that PR size is a proxy measure for how easy changes are to review and rollback.
Yeah, I’ve been guilty of coming up with “cute” solutions that are extremely optimized and concise, but you needed to take a hundred times as long to work through what was going on.
Usually I would put an explanation comment, but sometimes a less optimized solution is the better option for readability sake.
Hah, if those pesky devs think that they can play the system by just rolling up the code into a single line they got another thing coming - we're actually tracking PR character count, NOT LOC like some other companies!