• AmazingAwesomator@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 days ago

    i think i am old. i grew up using DOS, and really hated spaces in filenames and folders because they appreared truncated at the first space with a tilde and index of that file/folder representation.

    ex: C:\folder name is bad\ == C:\folder~1

    i hated that so much that when i got to windows 3.1 i refrained from using spaces (some command line was still necessary in w3.1)

    i have jept that habit through the years, so when i moved from windoes to linux, my natural instincts of snake_case_folder_names made it so i didnt have to change : D

    • Onomatopoeia@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      17 days ago

      Yea, Win 3.1 didn’t support long names - that came with Win95. Win 3.1 was a shell on DOS.

      But I understand - it all blends together after um… 40 years (ouch!).

    • db2@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      I think you’re misremembering a little. Long filenames was introduced in Win95.

    • aaaaaaaaargh@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      That’s not even DOS I think. As far as I know Win 95 came up with this monstrosity in an attempt to circumvent the 8.3 character limitations present in older versions of DOS.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      One of the fun things about modern Windows is that ~1 shit still appears every once in a rare while. Gotta love just stacking more and more shit on top of ancient systems in the name of backwards compatibility!

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 days ago

      agreed, “still worth it”

      I do, however, tend to keep spaces out of my folder names so i can just use quotes at the end.

      /Images/Halloween/Projections/“Creepy Crawlies.mp4”

  • Lyra_Lycan@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    17 days ago

    Windows is stupid as shit, trying to shift+right click > open Powershell in a path containing a space results in it throwing an error, and you have to paste the path in yourself anyway

  • Korne127@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Can’t relate. I use shell all the time, and I always use spaces in file paths, especially to make sure scripts I make still work then

  • lemming741@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days ago

    Microsoft intentionally made programs install to C:\Program Files on Windows 95+ to force programmers to deal with spaces in filenames.

    Someone make one of those “statements made by the utterly deranged” memes about it, please and thank you.

  • asdfranger@lemmynsfw.com
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 days ago
    Oh\ come\ on,\ it\'s\ not\ that\ bad
    

    Some shells enclose those types of files within inverted commas. Such that:

    > ls
    file\ name.md
    

    is instead

    > ls
    'file name.md'
    

    (I use fish)

          • Revan343@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            17 days ago

            On its own, the backtick is primarily used in computing, and so doesn’t have an old-timey-English name, nor does the Jargon File mention a Commonwealth Hackish name for it. While there are a variety of other names, I don’t think any of them are specific to the UK

            When used with a letter, it marks a grave accent; this was its original purpose on a typewriter

        • Luc@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          17 days ago

          In dutch I’ve heard them be called flying commas unapologetically (vliegende comma’s — ironically has one in it because many plurals need it, it doesn’t mark possession)

  • notarobot@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 days ago

    Don’t try svelte kit. This is pseudocode but it’s valid. The only symbol show here that is not real is the / that I’ve placed at the end of folder to show that they are folders. There are other special cases

    routes/
    +page.ts
    (admin)/
      +page.ts
      [user]/
        +page.ts
        [[community]]/
          ±page.ts
        posts/
          [...postIds@]/
            +page.ts
    
      • notarobot@lemmy.zip
        link
        fedilink
        arrow-up
        0
        ·
        16 days ago

        Im trying it out yet. It seems fun, the tutorial is amazing. I don’t think I’d want to do large enterprise projects with it

        • dogs0n@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          16 days ago

          Have you noticed issues that you think would arrise at scale, etc for an enterprise project?

          I’m using it for a small/medium sized project and it’s great and has not got in the way once. Wondering how you feel, since I don’t have experience with much enterprise code.

          • notarobot@lemmy.zip
            link
            fedilink
            arrow-up
            0
            ·
            16 days ago

            Oh. No. You win. Mine is a gut feeling that modeling all routes with folders would become a paid. To navigate and manage, while you have actual experience

  • zitrone 🍋@lemmings.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    15 days ago

    i y’all just started using fish shell, you’d have proper shell completions and argument splitting that doesn’t care about spaces in file names

    • Dr. Moose@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      17 days ago

      Hyphens > underscores for filenames because all web standards prefer hyphens so if you ever want to network your files its a much smoother experience!

      • livingcoder@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        This is what I need, an explicit reason that makes one choice better than another. If hyphens make for a smoother experience, then I’ll reconsider my default behavior.

        Thanks for pointing out this benefit.

      • SaharaMaleikuhm@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        17 days ago

        They suck hard. I use the renpy engine and there you reference file names directly but always lower case and spaces and hyphens turn to underscores. That can cause issues, so I just do underscores in my file names. Don’t give damn about the web.

    • BassTurd@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      I prefer lowercase with hyphens, but I’m transitioning into a team that does everything camelCase, which is the second best case, but I still strongly dislike it.