• humanspiral@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago

        They ended up with Javascript trademark (afaik, because the name was too close to Java) too. Sued node.js over something related.

        • BatmanAoD@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          Apparently the JS name was selected and announced in partnership with Sun from the very beginning, and Sun had the copyright over both Java and JapaScript up until the acquisition by Oracle. I had no idea, but that makes perfect sense.

          • humanspiral@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            Sun, afaiu, was part of a large committee on js without any particular leadership. They got the committee to agree to giving it trademark by complaining/threatening that the name was too close to java. Sun got trademark 4 years after Netscape started support for js. ECMAscript was mostly the same committee without SUN ownership/trademark.

  • brb@sh.itjust.works
    link
    fedilink
    arrow-up
    20
    ·
    3 days ago

    Except for some reason “2” is interpreted as a month, and the year is set to 2001.

    Aight I’m out

    • humanspiral@lemmy.ca
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      “12.1” is interpreted as the date December 1st, and as before for dates with no year the default is 2001 because of course.

      it gets better and more coherent the deeper you go :P

  • lunarul@lemmy.world
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    edit-2
    3 days ago

    If you’re not very familiar with JS, watch the Wat talk before taking the quiz to know what to expect from this wonderful language.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          2 days ago

          It unquestionably is excellent. Can you name another language in common use with a type system that’s close to the expressiveness of Typescript?

          • expr@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            1 day ago

            Let’s not get ahead of ourselves. Typescript has a decent type system, but it’s hardly state of the art. It’s impressive how they’ve managed to mostly corral JavaScript into something much more sane, but at the end of the day it still suffers greatly from the limitations of JavaScript. They’ve essentially retrofitted some type theory onto JavaScript to make it possible to express JavaScript nonsense in the type system, but there’s plenty of things that would have been designed differently had they been making something from scratch. Not to mention that the type system is unsound by design, which by itself puts it behind languages designed from the ground up to have sound type systems.

            There’s many, many things missing from the type system, like higher-kinded types, type-driven deriving/codegen, generalized algebraic data types (aka GADTs), type families (and relatedly, associated types), existentially-quantified types, and much more.

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          4
          ·
          3 days ago

          How? It’s easy not to run into the common issues by using TS. What’s so bad about it that we should throw away the existing ecosystem?

          Please give arguments instead of platitudes.

  • Macallan@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 days ago

    I got a 4/28 and got told I would have scored higher if I guessed at random. Ouch. (I am not a dev)

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      I mean, for what it’s worth, I’m a seasoned dev and just did a run where I tried to answer everything as it makes sense to me (which is “throws an error” or “invalid date” for all of them) and I also got a score of 4/28.

      …and two of those points were given to me, because the quiz interpreted my answer differently than I meant it.

      In other words, this quiz exists to highlight that JavaScript’s Date functions make no sense.

  • Thinker@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 days ago

    Thank god Temporal is finally in Stage 3, and already rolled out in Firefox. I can’t wait to be done with JS’s Date forever.