• dis_honestfamiliar@lemmy.world
    link
    fedilink
    arrow-up
    22
    arrow-down
    9
    ·
    2 months ago

    I wish death upon it, but it just won’t die. I guess that’s cuz it’s the only frontend. Or at least the only frontend that allows DOM manipulation.

    • jimmy90@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      2 months ago

      thanks to wasm any language is a browser running language. JS is relegated to some token binding boilerplate as part of any framework and with things like servo/tauri rendering html will be pure rust

      • dis_honestfamiliar@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Document ObjectModel. Think using code to add a JavaScript to make a drodown menu appear like for a navigation bar. That would be manipulation. And I think there’s so much more Angular and React do with DOM that I don’t know enough to explain it.

    • masterspace@lemmy.ca
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      21
      ·
      edit-2
      2 months ago

      It’s because it’s a great language. Legitimately cannot understand why anyone would dislike it, especially with the the ES5+ editions and the advent of Typescript.

      I started with C#, and have used Python, Java, PHP, and Ruby in professional capacities and still find Typescript to be my favourite by a significant margin.

      • AlecSadler@sh.itjust.works
        link
        fedilink
        arrow-up
        12
        ·
        2 months ago

        I worked for a company that refused to use TypeScript because it “slowed devs down”. It was…a laughable period in my life.

        • count_dongulus@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          2 months ago

          Which is faster, getting a squiggle instantly or discovering a silly bug at runtime later? So happy I could write code in Typescript and be confident it would do what I expected when it ran without digging out the debugger.

      • arendjr@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        As much as people like to make fun of JS/TS, I think you’re right, especially compared to the languages you mentioned. It’s my second-favorite language after Rust.

        I think I would put Swift above it as well, except I don’t really use it since it’s too domain-specific in practice.

        • leisesprecher@feddit.org
          link
          fedilink
          arrow-up
          4
          ·
          2 months ago

          The newest iteration of the language might be okay, but the ecosystem is an absolute mess.

          Working with npm projects is always a pain, everything changes all the time for no reason, and often enough in subtle ways you can’t anticipate.

          Plus, there’s just an army of not very good and/or inexperienced developers vomiting their incompetence into the ecosystem.

          Languages are not isolated. Java doesn’t force abstractFactoryBuilders, yet hundreds of developers follow that pattern. So Java in practice is rather verbose.

          • count_dongulus@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 months ago

            The language and its standard libraries lead developers towards common patterns. Javascript’s standard library is pretty sparse excluding browser-only web apis, so there are tons of external libraries to fill the gap for better or worse.