▲ 806 ▼ Data Organization (lemmy.ml) submitted 1 year ago by cm0002@piefed.world to c/programmer_humor@programming.dev 127 comments fedilink hide all child 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; } permalink fedilink source parent hideshow 8 child comments replies: [–] 5C5C5C@programming.dev 13 points 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. permalink fedilink source parent hideshow 6 child comments replies: [–] Clent@lemmy.dbzer0.com 3 points 1 year ago Their grandchildren will be pissing on their graves over it. I often wonder what files may outlive me. People have kept old physical remnants. There are obviously famous examples but there are far more mediocre examples. All the unique content I've created fits on a modestly sized hard drive so keeping it around would be trivial compared to maintaining all those physical remnants. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 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. permalink fedilink source parent hideshow 4 child comments replies: [–] seralth@lemmy.world 4 points 1 year ago (2 children) And you assume that changes to filesystems, new filesystems being created or other such things won't at some point create a edge case that creates a problem? When you could just be safe? Sounds stupid as fuck to me to blindly trust nothing will happen to create problems. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 3 points 1 year ago They've never had to recover a hard drive. It's okay, they'll learn the hard way. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 1 year ago I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script. Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times. If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that. permalink fedilink source parent [–] 5C5C5C@programming.dev 1 point 1 year ago Until people start applying the same logic everywhere for consistency, not just in file names. permalink fedilink source parent [–] shnizmuffin@lemmy.inbutts.lol 1 point 1 year ago LOL! permalink fedilink source parent
[–] 5C5C5C@programming.dev 13 points 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. permalink fedilink source parent hideshow 6 child comments replies: [–] Clent@lemmy.dbzer0.com 3 points 1 year ago Their grandchildren will be pissing on their graves over it. I often wonder what files may outlive me. People have kept old physical remnants. There are obviously famous examples but there are far more mediocre examples. All the unique content I've created fits on a modestly sized hard drive so keeping it around would be trivial compared to maintaining all those physical remnants. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 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. permalink fedilink source parent hideshow 4 child comments replies: [–] seralth@lemmy.world 4 points 1 year ago (2 children) And you assume that changes to filesystems, new filesystems being created or other such things won't at some point create a edge case that creates a problem? When you could just be safe? Sounds stupid as fuck to me to blindly trust nothing will happen to create problems. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 3 points 1 year ago They've never had to recover a hard drive. It's okay, they'll learn the hard way. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 1 year ago I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script. Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times. If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that. permalink fedilink source parent [–] 5C5C5C@programming.dev 1 point 1 year ago Until people start applying the same logic everywhere for consistency, not just in file names. permalink fedilink source parent
[–] Clent@lemmy.dbzer0.com 3 points 1 year ago Their grandchildren will be pissing on their graves over it. I often wonder what files may outlive me. People have kept old physical remnants. There are obviously famous examples but there are far more mediocre examples. All the unique content I've created fits on a modestly sized hard drive so keeping it around would be trivial compared to maintaining all those physical remnants. permalink fedilink source parent
[–] absentbird@lemmy.world 1 point 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. permalink fedilink source parent hideshow 4 child comments replies: [–] seralth@lemmy.world 4 points 1 year ago (2 children) And you assume that changes to filesystems, new filesystems being created or other such things won't at some point create a edge case that creates a problem? When you could just be safe? Sounds stupid as fuck to me to blindly trust nothing will happen to create problems. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 3 points 1 year ago They've never had to recover a hard drive. It's okay, they'll learn the hard way. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 1 year ago I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script. Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times. If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that. permalink fedilink source parent [–] 5C5C5C@programming.dev 1 point 1 year ago Until people start applying the same logic everywhere for consistency, not just in file names. permalink fedilink source parent
[–] seralth@lemmy.world 4 points 1 year ago (2 children) And you assume that changes to filesystems, new filesystems being created or other such things won't at some point create a edge case that creates a problem? When you could just be safe? Sounds stupid as fuck to me to blindly trust nothing will happen to create problems. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 3 points 1 year ago They've never had to recover a hard drive. It's okay, they'll learn the hard way. permalink fedilink source parent [–] absentbird@lemmy.world 1 point 1 year ago I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script. Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times. If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that. permalink fedilink source parent
[–] shnizmuffin@lemmy.inbutts.lol 3 points 1 year ago They've never had to recover a hard drive. It's okay, they'll learn the hard way. permalink fedilink source parent
[–] absentbird@lemmy.world 1 point 1 year ago I understand you feel very strongly about four digit years, but I really don't see any situation that I couldn't sort out with a simple script. Usually I don't put dates in file names in the first place, but when I do I use the UTC timestamp; a date without a timezone is inherently fuzzy, and it's easier to compare and differentiate numerical times. If someone used two digit years in their naming convention I wouldn't even blink, let alone get the woodchipper, life is too short to get angry over stuff like that. permalink fedilink source parent
[–] 5C5C5C@programming.dev 1 point 1 year ago Until people start applying the same logic everywhere for consistency, not just in file names. permalink fedilink source parent