• dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      As if Javascript wasn’t complex enough, let’s introduce TypeScript and Coffescript and then write transpilers so we can convert said languages back into Javascript, which we could have done in the first place.

  • towerful@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Use stringly-typed everything, and always padStart your numbers.
    Saves running into issues with numbers outside the 52-bit integer range.
    And padding start means you don’t have to worry about pesky sort functions.

    Just don’t do maths. Simple.

    Maybe you could do a manual sort.
    Provide a “captcha” prompt, and ask which comes first in the list… You know, to make sure the user is a human! And you get free sorting.

    • kuneho@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Provide a “captcha” prompt, and ask which comes first in the list… You know, to make sure the user is a human! And you get free sorting.

      I mean, this strangely is a compelling idea…

      • TWeaK@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I always try to prove myself human with wrong answers. Typically the first screen is an AI training screen, then the next screen is one the computer knows but wants to see if you know. By answering the first one wrong and the second correct, I’m hoping to poison the data.

        • coloredgrayscale@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Iirc they require 5 votes with the same response. Your effort won’t do anything, other than flag you as unreliable.

          Afaik 4chan (of course) did that poisoning correctly, “classifying” the unknown words as “penis” (of course).