• z3bra@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    I’ve recently started writing JS recently, after writing C, go, shell and ruby for years.

    Ended up with this gem in my code:

    var total = +qty + +pool[0] - +pool[1];
    

    I hate it.

  • DarkenLM@artemis.camp
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Anything is a nail if you hammer it hard enough.

    Though modern JS is way better than what it was before, and in my opinion is evolving in a good direction. It also pays my bills, so I couldn’t complain even if I wanted.

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      3
      arrow-down
      3
      ·
      2 years ago

      It’s a slight improvement, but you’re still inheriting the whole Js ecosystem, tooling, and most of the quirks of Js. There are far better languages you can use on the server, so I really don’t understand the appeal of using a Js based backend.