• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    64
    ·
    2 days ago

    I am old. I am still not over JavaScript existing outside of a browser. I’m not sure I ever will be. And that’s from someone who uses a Linux DE that uses JavaScript and XML as part of its GUI.

      • NotSteve_@piefed.ca
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 day ago

        I hate Microsoft but honestly Typescript makes JavaScript one of my favourite languages. Its how it should have been

        • douglasg14b@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          13 hours ago

          Yes, typescript is my favorite language. There’s literally no other language out there that is as expressive and has as strong of a type system as typescript. It is the master of making impossible states unrepresentable through meta programming. Being able to move domain complexity into the type system instead of into the runtime is some of the best ways you can reduce your runtime complexity and defects.

          Though .net is my favorite ecosystem, by far. It’s first party frameworks are unmatched in performance and developer experience. And its ecosystem is incredibly stable, unlike JavaScript. C# Is unfortunately a much less capable language from a type perspective than typescript though.

          If C# got discriminated unions and strings as first class type citizens that would launch it pretty far.

          • expr@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            11 hours ago

            Umm, there are plenty of languages with a stronger, more expressive type system than Typescript. Like Haskell. And there are languages with an even stronger type system than Haskell (dependently-typed programming languages like Idris). Typescript, while having some small innovations and certainly an improvement over the rather sorry state of OOP type systems, is fairly low on the totem pole as far as type systems go. Also, Typescript’s type system is famously not sound.

            There’s a ton of stuff Typescript simply can’t do. Higher-kinded types, GADTs (type narrowing gives you a little bit of their functionality kinda, but misses a lot of stuff), etc… Not to mention that it has a fairly lackluster type inference system.

    • dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 days ago

      If you have an evening (or all weekend), and really want to blow your mind, look up Low Byte Productions on YouTube and look up their JavaScript videos.

    • TheRedSpade@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      I am old. I am still not over JavaScript existing outside of a browser.

      I’m in my mid thirties and didn’t know this was a thing until now.

      • vithigar@lemmy.ca
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        1 day ago

        Even if you don’t count desktop applications like VSCode or Discord or whatever that are written in primarily JavaScript due to those arguably just being packed inside their own little browser engine that they ship with, still yes.

        Node.js is an extremely widely used JavaScript runtime environment that people are using to write server back ends and command line utilities and god knows what else in JavaScript.