this post was submitted on 14 Aug 2025
348 points (99.4% liked)

Programmer Humor

26220 readers
2040 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
 

Its definitely a bad idea writing new code that builds up on your old code, that has not been tested properly, because you quickly have to start debugging multiple layer is code at once.

you are viewing a single comment's thread
view the rest of the comments
[–] bleistift2@sopuli.xyz 13 points 3 weeks ago (1 children)

Opposing opinion: If it’s legacy code, and no-one has found a bug yet, it works as intended.

No, I don’t mean that ironically.

[–] who@feddit.org 9 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

It's refreshing to see someone on social media who doesn't dismiss code as "outdated" just because of its age.

[–] Lemminary@lemmy.world 2 points 3 weeks ago (1 children)

There are dozens of us! But also, I have a masochistic tendency to update my old code to use the new language features and make it somewhat readable.

[–] yetAnotherUser@lemmy.ca 2 points 3 weeks ago (1 children)

Shouldn't you write tests for your code before using the new language features though?

[–] Lemminary@lemmy.world 3 points 3 weeks ago (1 children)
[–] yetAnotherUser@lemmy.ca 1 points 3 weeks ago (1 children)

Don't worry, it's probably fine, as long as you have a good grasp of the new feature. Right?

[–] Lemminary@lemmy.world 2 points 3 weeks ago

Erm, yes? Been programing for 15 years, I think I know my way around. 😅