I have a collection of files from the late ´90s and early ´00s. Many of them are .JPG, .MP3, .WAV, instead of .jpg, .mp3, and .wav. Why was that the norm at the time? I usually just change the extension myself.

  • Dæmon S.@catodon.rocks
    link
    fedilink
    arrow-up
    13
    ·
    22 hours ago

    Adding to the replies, uppercase letters have lower hexadecimal values than lowercase in the ASCII table. For example, 0x4C is uppercase L, while 0x6C is lowercase L.

    Mathematically, uppercase + 0x20 = lowercase.

    Alphabetically, 41 to 4f = A to O, then 50 to 5a = P to Z; 61 to 6f = a to o, then 70 to 7a = p to z. (Believe it or not, I’m typing this from meat memory, as I kind of managed to memorize it and I can even 74 79 70 65 20 6c 69 6b 65 20 74 68 69 73 as if it were a second language; it’s thanks to mnemonic shortcuts such as alpha and Omega A to O, “PTZ” p to z, among other crazy pattern matching my ND brain often does).

    Back in the DOS/MS-DOS times, RAM and (floppy) disk were very small (a floppy disk had <2MB, and I’m talking about the “modern” floppy disks from the 2000s), so there was this thing called “code golfing” in which programmers used to do some arcane math-magick to conjure as many bytes as possible from inside a single byte. Things like “packed” game sprite channels, side channel data (wonder how compression algorithms got created?), etc. They wouldn’t and often couldn’t “throw more hardware at the problem” like we’re used to nowadays. Sparing the 3rd most significant bit (01x1 1010, Z if x = 0, z if x = 1) would allow for side-channel data such as visual formatting (e.g. whether the character is selected in a terminal emulator).

    This all likely played a role when they got chosen as the default interval for alphabet letters back then. Also, decimal numbers, 0x30 to 0x39 (resp. 0 to 9) are closer to the uppercase letters than to the lowercase letters, and so are most of the punctuation (which I didn’t get to memorize yet, but I remember they’re scattered across 0x21 to 0x2f then 0x3a to 0x3f then 0x5b to 0x5f).

    This legacy kind of still lingers nowadays, for example, in PC keyboards whose key codes for alphabet letters (afaik) map to the 0x41 to 0x5a range when it gets to the HID driver. Then there are also devices in which program logic is burned into IC chip, such as “old” digital cameras and camcorders, so they ended “frozen” in a time where the file extension was conventionally uppercase.

    (And, no, I’m not a millennial, although I’m almost one, sitting at the very cusp between them and Zs, two generations who saw the transition from analog to digital tech during our childhoods/teens).

    !nostupidquestions@lemmy.world

    • Hueristic_Autistic@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      14 hours ago

      1992 born, I got the tail end of that. My mom was a cobol programmer, while my dad was able to get his hands on recycled hardware. Before the house fire, he had at least 20 towers, bags of parts, a closet full of monitors, keyboards and mice.

      It was trippy to see the growth of technology from windows 95 to now.

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    20 hours ago

    Because DOS/early Windows had a filesystem that had very limited filenames. You had eight characters for the actual filename and three for the file extension. They were stored and displayed in all caps, but matching was always case insensitive.

    That explains both the upper case and the three character extension limit.

  • Swordgeek@lemmy.ca
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    23 hours ago

    Worth mentioning that this wasn’t a problem on other systems. Unix had long, case-sensitive names before DOS existed.

  • lemonSqueezy@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    2 days ago

    Back in the day when affordable homes were very much bigger compared to now. You could splurge a little on hard drives that could store big size letters. Now that affordable homes (tiny condos) are a teeny tiny bit smaller, it makes sense to shrink the size of the letters so that they fit in a smaller space.

  • monketman82@lemmy.world
    link
    fedilink
    arrow-up
    103
    arrow-down
    1
    ·
    3 days ago

    Back in the days of DOS/MS-DOS, all filenames were in uppercase and restricted to 8 letter filename and 3 letter extension.

    Because Windows was always just built on top of DOS and the FAT filesystem, until NT/Win2000, the actual file naming convention renamed the same.

    Windows just held extra metadata to pretend it could have longer filenames.

    • blackbeans@lemmy.zip
      link
      fedilink
      arrow-up
      27
      ·
      3 days ago

      Long filenames were introduced in Windows 95. It was done by means of an extension to the filesystem (VFAT). The long filenames were preserved when you copied it to another computer but didn’t show up when you used older DOS versions.

      • ChicoSuave@lemmy.world
        link
        fedilink
        arrow-up
        16
        ·
        3 days ago

        I wonder if that’s why computers started using longer words and phrases for programs. The grumpy old man that lives in my in head gets ranting during these moments.

        “Back in my day all we had were short names like startup, system, and exit. Now it’s all control panel, system settings, hardware managers. And apps! They’re called them executables!”

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      16
      ·
      3 days ago

      Technically it’s a *FAT filesystem thing, and it still carries over into default Windows behaviour today. If I remember correctly, you have to explicitly tell Windows to distinguish between case in filenames, even on NTFS, which otherwise supports it… and then hope that something in the system wasn’t relying on case-insensitivity, which is now broken.

      I have a few exFAT-formatted USB thumb drives and I find that Linux (an OS that has been case sensitive, or at least, its filesystems have, since the outset) complains that the filename is already in use when renaming files to lower case versions of themselves on those drives. I generally have to rename to something different (maybe add a letter) and then rename back. The case can be changed at either stage, but the intermediate name has to be different.

    • Delascas@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Some of us on here go back before PC-DOS 1.0. The 8.3 naming convention started with CP/M . . DOS was largely stolen from Digital Research.

      Source: one time proud owner of a TRS-80 Model 4 running CP/M.

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    arrow-up
    36
    ·
    3 days ago

    Others have correctly explained that this is because filenames (on DOS) used to have only uppercase letters.

    Interestingly, it’s not completely outdated. Many standalone digital cameras, even ones produced in the 2010s or 2020s, still produce filenames like IMG_1234.JPG or DSC00011.ARW or similar.

    • AskewLord@piefed.social
      link
      fedilink
      English
      arrow-up
      15
      ·
      edit-2
      3 days ago

      isn’t that because they are using FAT file systems on their local storage?

      I haven’t used a newer digital camera, but I recall most of them require a FAT32 format for their memory cards.

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        6
        ·
        3 days ago

        I think you’re right; the point is that those files will then probably be copied on other file systems that could handle long (and lowercase) file names too, so that may be one way to end up with them without the files coming from the 1990s.

  • AmidFuror@fedia.io
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    3 days ago

    It’s because eyeglasses hadn’t been invented yet, so we needed to make file names bigger.

  • 🇨🇦 tunetardis@piefed.ca
    link
    fedilink
    English
    arrow-up
    15
    ·
    2 days ago

    Well sonny, it’s because back then, media files would eat your entire drive in a hurry, so they had to be shouted out as a warning.

  • Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    23
    ·
    3 days ago
    it was the style at the time

    grandpa simpson pointing at his belt

    but actually (as the other comment says) uppercase file extensions were a holdover from when the entire filename could only be uppercase

    • Optional@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      edit-2
      3 days ago

      Of course in those days 640 Megs of RAM was all we needed.

      “There’ll never be a need for more than that”, you’d say.

        • Optional@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          3 days ago

          Yeah it took on a life of its own, including his effort to crush it or explain it away. But I think he said it. Also that it was heavily context-dependent, and ultimately just a way to shit on the man who single-handedly robbed us all of an open-source utopia of informed citizenry by being a greedy bastard.

          • aMockTie@piefed.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            Also not defending Gates, but realistically it wouldn’t have made any sense for him or anyone at Microsoft to say such a thing. The 640K barrier was not chosen by Microsoft or caused by DOS, it was a limitation of the 8088/8086 CPU that IBM used in the original PC.

            It wasn’t until the 80286 that the issue was partially solved, and then the 80386 and on where it was completely solved (though still required a lot of fiddling and manual configuration which was the fault of DOS’ design).

    • bstix@feddit.dk
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      3 days ago

      I liked it better that way.

      The ~ character and roaming folders can go to hell.

    • daggermoon@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      True, but I’d much rather ask some of Lemmy’s tech veterans than a souless fucking website run by an evil megacorp trying to sell me shit, sell my data, and spam me with AI bullshit. Also, I like fun discussions and the fediverse needs more content.