• Dr. Moose@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      18 hours 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!

      • SaharaMaleikuhm@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        14 hours 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.

        • Dr. Moose@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          12 hours ago

          Yeah I prefer underscores too but kebab case is definitely better for web and general ergonomics. Dash doesnt require a shift hold! Tho I still mix these depeding on tool or existing idioms. One thing for sure is that spaces and capital letters are stupid and we should do less of them.

      • livingcoder@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        18 hours 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.

    • BassTurd@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      23 hours 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.