• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    edit-2
    17 hours ago

    Not having to use JS is below all of those.

    I hate how that’s the language everything is slowly converging to. Even if you don’t work on websites, you always have this fear in the back of your mind that one day your project will be infected.

    It’s not even easy like people claim it is. I find JS significantly more difficult than Java because there are way more things that can go wrong and troubleshooting is way more frustrating. Just because the app will launch even with errors in the code does not make it easier in the long run. Compile time errors are good actually.

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      arrow-up
      10
      ·
      16 hours ago

      Js is indeed painful. I find the right approach is to simply treat it as a compile target. I’ve worked with ClojureScript when I had to do front end work, and I find it’s a huge improvement because it has sane language semantics. You have things like proper equality, comparison by value, immutable data structures, and so on. It’s not perfect because you still have to deal with stuff like source maps to get errors out of minified bundles, and you have to interop when you deal with Js libraries, but it’s a huge improvement overall I’ve found.