• LousyCornMuffins@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 days ago

      are we just talking digital because i’ve inherited archives. my current one only goes back to the 1950s but in the next decades i expect to get some going back centuries.

    • absentbird@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      Here you go gramps:

      (shortD) => {
          return parseInt(shortD.slice(0, 2), 10) > 50 ? "19" + shortD : "20"+shortD;
      }
      
      • 5C5C5C@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        6 days ago

        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.

          • seralth@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            6 days ago

            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.