Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
kuneho@lemmy.world to Programmer Humor@programming.dev ·
edit-2
3 years ago

JavaScript always know my truest of desires

lemmy.world

message-square
36
link
fedilink
434

JavaScript always know my truest of desires

lemmy.world

kuneho@lemmy.world to Programmer Humor@programming.dev ·
edit-2
3 years ago
message-square
36
link
fedilink

  • towerful@programming.dev
    link
    fedilink
    arrow-up
    24
    ·
    3 years 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.

    • dave@feddit.uk
      link
      fedilink
      arrow-up
      37
      ·
      3 years ago

      Use stringly-typed everything

      Instructions unclear. Now 1+2=12.

      • LordTrychon@sh.itjust.works
        link
        fedilink
        arrow-up
        16
        ·
        3 years ago

        I got 000001000002.

    • kuneho@lemmy.worldOP
      link
      fedilink
      arrow-up
      21
      ·
      3 years 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.eeBanned
        link
        fedilink
        arrow-up
        16
        ·
        edit-2
        2 years ago

        Removed by mod

        • coloredgrayscale@programming.dev
          link
          fedilink
          arrow-up
          5
          ·
          3 years 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).

          • TWeaK@lemm.eeBanned
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            2 years ago

            Removed by mod

            • ImpossibleRubiksCube@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              2 years ago

              deleted by creator

        • somePotato@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          3 years ago

          Based

        • trashcan@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          3 years ago

          o7

    • RobotToaster@infosec.pub
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago

      Just don’t do maths. Simple.

      That’s a good rule for life in general, really.

    • oessessnex@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Turn JavaScript into Bash with these easy steps…

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 976 users / day
  • 3.02K users / week
  • 7.02K users / month
  • 16.6K users / 6 months
  • 526 local subscribers
  • 28.2K subscribers
  • 1.94K Posts
  • 64.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.13
  • BE: 0.19.13-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org