this post was submitted on 15 Aug 2025
861 points (98.2% liked)

Programmer Humor

33615 readers
2076 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 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] absentbird@lemmy.world 4 points 1 year ago (8 children)

Here you go gramps:

(shortD) => {
    return parseInt(shortD.slice(0, 2), 10) > 50 ? "19" + shortD : "20"+shortD;
}
[–] 5C5C5C@programming.dev 13 points 1 year ago* (last edited 1 year ago) (6 children)

Did the software industry learn nothing from Y2K? Was it too long ago already for people to remember the mess we made for ourselves?

Saving two characters in a file name is not worth the hell you are leaving in your trail by shoving this nonsense in an obscure corner of production code that people are going to forget about until it's too late.

[–] absentbird@lemmy.world 1 points 1 year ago (4 children)

It's just a filename, calm down. The created by date is tracked by the file system and the repo.

[–] 5C5C5C@programming.dev 1 points 1 year ago

Until people start applying the same logic everywhere for consistency, not just in file names.

load more comments (3 replies)
load more comments (4 replies)
load more comments (5 replies)