• AnomalousBit@programming.dev
    link
    fedilink
    arrow-up
    49
    arrow-down
    12
    ·
    4 months ago

    JavaScript is so ass, typescript is just putting ketchup on a rotten banana. Better just to choke it down quickly if you have to eat it, IMO.

    • skulbuny@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      3
      ·
      4 months ago

      I wouldn’t say JavaScript is horrible, it’s a fine little language to do general things in if you know JS well. I would say, though, that it is not a great language. Give me F# and I’m happy forever. I do not like typescript that much more than JS.

      • felbane@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        4 months ago

        PHP is better than Javascript these days.

        Fucking PHP.

        The only thing JS really has going for it is ease of execution, since any browser can run your code… though the ubiquity of Python is closing that gap.

        • hswolf@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          4 months ago

          that’s crazy, it’s almost like it was created to run on a browser, who would do such an evil thing?

    • xlash123@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      ·
      4 months ago

      Back when I was still doing JS stuff, switching to TS was so good for the developer experience. Yeah, there’s still JS jank, and types are not validated at runtime, which was a pain in the backend (pun intended), but still I much prefer it to vanilla JS

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        7
        ·
        4 months ago

        You know, you can validate data structures at runtime… and write unit tests… TS is not a substitute for those things.