this post was submitted on 27 Mar 2025
230 points (97.9% liked)

Programmer Humor

22219 readers
1853 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
 

AltIndiana Jones swapping out an artifact for a fake one meme template with the text "existing code" on the real artifact, "new commit" on the fake one, and "linter" on the pedestal / trap

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 23 points 1 week ago (3 children)

I used to have my vim set up to trim excess whitespace on write.

I had no idea how many errant diff's that would generate, I had to turn it off.

[–] [email protected] 15 points 1 week ago (1 children)

The right balance on this is to set it up to only trim whitespace on lines that you have edited, and only on-save.

Emacs has ws-butler for that behavior: https://github.com/lewang/ws-butler

[–] [email protected] 2 points 1 week ago

That History section is exactly what happened to me

I’ll have to see if there’s a nvim equivalent, or if I can make my own

[–] [email protected] 4 points 1 week ago

Yeah, you generally just want the same auto-stuff done as would be enforced in CI anyway.

… all the other stuff you could fix but wind up just ignoring because your team ignores it will just glare at you until you sneak it in somehow

[–] [email protected] 2 points 1 week ago (1 children)

i have prettier auto formatting on save (but also use vim auto format)

[–] [email protected] 2 points 1 week ago

I’ve been trying to pair down my extensions, so I’ve been using ale’s fixers to do formatting.

I’m not a huge fan though, I’ll probably go back to vim auto format.