• flamingo_pinyata@sopuli.xyz
    link
    fedilink
    arrow-up
    10
    arrow-down
    3
    ·
    9 months ago

    After 10 years of doing it for work, I still get frustrated about language issues.

    But semicolons? It’s 2023, why does your language have semicolons at all? If you’re one of those poor sods stuck with Java, still it’s not an issue, all IDEs will warn you, and basically complete half the code for you.

    • soggy_kitty@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      9 months ago

      They pay me more money than all of the other Devs because I’m the only guy willing to take on our existing stacks usage of shudders JavaScript. Most Devs I meet straight up refuse to learn it, let alone code in it.

    • nathris@lemmy.ca
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      9 months ago

      Semicolons are optional in JavaScript unless you are combining multiple statements on a single line, which is generally not something you should be doing anyway.

      I avoid them whenever possible. It encourages people to write poorly formatted code. But then I’m a python dev so I tend to be opinionated when it comes to whitespace.

      • folkrav@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        9 months ago

        Just slap a formatter on there and call it a day. Semicolon or not, IDGAF, let’s just stop with the formatting bikeshedding. There are more important things to think about. They don’t encourage anything if you don’t think about formatting.

        • Aa!@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          9 months ago

          This is one of the things I like most about Go. Formatting is already defined and handled by go fmt. Takes out all format arguments before they start.