As part of the devs farewell message on their site, they have included malicious code to make each visitor sends 2,000 requests to the dbzer0 servers in an attempt to DDOS and take the instance offline.

  • Windex007@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 hour ago

    (100 - 1 + 1) ??

    How do you know the stage at the developer conference is level? The js speaker is drooling out of both sides of his mouth.

      • HereIAm@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        21 minutes ago

        That would make sense, but the “+ 1 - 1” both inside the patenethis don’t, as he also has the “+ 1” outside. I assume ( making an ass of me along the way) he tried to write the formula you described from memory, but cocked it up a bit.

        • aura@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 minute ago

          it’s not exactly the formula i posted but the principle is kinda the same

          if u see it like this:

          let min = 1
          let max = 100
          let random = Math.floor(Math.random() * (max - min + 1)) + min
          

          the diff is that it’s inclusive of max (bc of +1) and it always returns an integer (bc of Math.floor)

          btw not defending this abomination of a man in javascript language or anything lol