• RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I work on a proprietary language that translates everything to uppercase before compiling. So having a specific case is useless. The standard functions all have wacky cases. Some from the same module may use CamelCase, while it’s brother use snake_case.

    … I just use Rust’s style. Simple, easy.

  • shastaxc@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    This is why I spend a good amount of time setting up linters on new repos before even starting to make the application. It saves a ton of time in peer reviews because no one has to think about formatting. Some people may not like the rules chosen but official direction from the boss is “get over it”. There are 0 comments on PRs about formatting which only ever annoys people and is a waste of good dev time.

      • jroid8@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        It IS fine, I though the comic was referring snake_case as disgusting. I was uncomfortable too at first but I got used to it

        • Croquette@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          7 months ago

          I used to be a PascalCase guy myself, but that changed recently when I had to use React (coming from embbeded C)

          I am working with a C embedded framework that uses snake_case, and switching between the two, I realized that it is a lot easier to find information with snake_case for me.

  • Australis13@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I felt that. I have a colleague whose coding style is different to mine and whenever they work on code that I originally wrote, I have to resist the temptation to modify things to camelCase.

    • mesamune@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Linters make these kind of things easier. Then you get mad at the tool rather than your coworker.