this post was submitted on 16 May 2025
301 points (98.1% liked)

Programmer Humor

24834 readers
600 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] baines@lemmy.cafe 40 points 1 month ago (13 children)

i have a recent diff where 300 changes are just things like moving whitespace

still fuck you for that mess

[–] wise_pancake@lemmy.ca 17 points 1 month ago (7 children)

I have vim setup to trim trailing white space, I get so pissed when a small change results in a 300 line diff because of poor code hygiene.

[–] silico_biomancer@lemmy.nz 1 points 1 month ago (1 children)

https://github.com/axelf4/vim-strip-trailing-whitespace

There are plugins that will only trim modified lines, which resolves that issue

[–] wise_pancake@lemmy.ca 1 points 1 month ago

That’s a nice idea

Probably a bit more sophisticated than my regex solution.

load more comments (5 replies)
load more comments (10 replies)