this post was submitted on 12 Jul 2025
426 points (100.0% liked)

Programmer Humor

24993 readers
1692 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
[–] Drekaridill@feddit.is 67 points 2 days ago (5 children)

I inherited code that contained files that were last updated in 1997

[–] bleistift2@sopuli.xyz 42 points 2 days ago (3 children)

That isn’t a bad thing. On the contrary, according to the open-closed principle, you should strive for writing code you never have to touch again.

[–] magic_lobster_party@fedia.io 51 points 2 days ago (1 children)

There’s a difference between ” it hasn’t changed because it doesn’t need to be changed” and ” it hasn’t changed because it’s impossible to predict the impact of any change, and no one wants to be responsible for things breaking”.

[–] rothaine@lemmy.zip 33 points 2 days ago

I was once spelunking a file that hadn't been touched in like 7 years, and there was a weird line where it was adding 2 to the index for seemingly no reason. The comment was like // Sam: not sure why this is off by 2 here. See ticket #12345 for discussion

Whatever issue tracking software it was referencing was no longer used, so that ticket was gone, and who TF is Sam?

[–] otacon239@lemmy.world 18 points 2 days ago

And that’s why so many core Linux utilities have worked almost exactly as they did from the very beginning. If your input and output demand no changes, the only improvements left to make are performance.

[–] Drekaridill@feddit.is 2 points 2 days ago

I haven't touched those files. The code works, I don't need to change it. I've mostly been working on the later additions.

load more comments (1 replies)