As far as I know there are these;

  • Camel case = coolFileName
  • Snake case = cool_file_name
  • Kebab case = cool-file-name
  • Pascal case = CoolFileName
  • Dot notation = cool.file.name
  • Flat case = coolfilename
  • Screaming case = COOLFILENAME

Personally I prefer the kebab/dot conventions simply because they allow for easy “navigation” with (ctrl+arrow keys) between each part. What are your preferences when it comes to this? Did I miss any schemes?

  • thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    3 months ago

    Underscore to delineate different parts, hypen to delineate words.

    Like: my-resume_draft.pdf

    And to make it consistent and easier to reuse parts for project names and such, I have a command line utility written for it. It caches the parts and uses a template system (support for generating current datetime in parts)

    Available here (is in AUR too):

    https://github.com/Atreyagaurav/nameit

    • luca
      link
      fedilink
      arrow-up
      15
      arrow-down
      2
      ·
      3 months ago

      You can go-to_hell.

    • sntx@lemm.ee
      link
      fedilink
      arrow-up
      9
      ·
      3 months ago

      Thats what I do as well. It makes it easy to seperate between logical units.