• lemmytellyousomething@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    25 days ago

    Why are they even named like this?

    When I read code, I want to be able to read it…

    Is this from a time when space was expensive and you wanted to reduce the space of the source files on the devs PC???

    For me (with a native language != english), this made it a lot harder to get into programming in the first place.

    • lukstru@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      24 days ago

      I recently held a science slam about this topic! It’s a mix of the first computer scientists being mathematicians, who love their abbreviations, and limited screen size, memory and file size. It’s a trend in computing that has been well justified in the past, but has been making it harder for people to work together. And the need to use abbreviations has completely gone with the age of auto completion and language servers.

      • papabobolious@feddit.nu
        link
        fedilink
        arrow-up
        0
        ·
        23 days ago

        It’s been really holding me back in learning coding. I felt pretty comfortable at first learning javascript, but as I got further the code was increasingly hard to look back to and understand, to the point I had to spend a lot of time understanding my own code.

        Does it truely matter after the code has been compiled if it has more full words or not?

        • lukstru@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          23 days ago

          It matters as soon as a requirement change comes in and you have to change something. Writing a dirty ass incomprehensible, but working piece of code is ok, as long as no one touches it again.

          But as soon as code has to be reworked, worked on together by multiple people, or you just want to understand what you did 2 weeks earlier, code readability becomes important.

          I like Uncle Bobs Clean Code (with a grain of salt) for a general idea of what such an approach to make code readable could look like. However, it is controversial and if overdone, can achieve the opposite. I like it as a starting point though.

  • umbraroze@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    24 days ago

    I can’t remember it, but I read one Microsoft blog post (in Vista era?) about how one team at Microsoft would develop some amazing new Windows component. They’d proudly name it AmazingNewService.dll. And then the operating system team would come in and say “that’s all fine and good, but you have to conform to the naming convention.” 8+3 filenames. First two letters probably “MS”, because of reasons. …and 15 years later, people still regularly go “What the fuck is MSAMNSVC.DLL?”

    • JasonDJ@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      23 days ago

      Why are they still so hung up on 8.3 long after Win95?

      I get not wanting to have spaces in a filename. Those suck.

      Is there something low-level that still doesn’t like long filenames?

      • umbraroze@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        23 days ago

        Well this was Vista era, they were probably doing that to ensure some sort of expectation from particularly tricky legacy apps. Windows prefers not to break old apps if at all possible.