I dont care if youre rich. Youre just a rich retard

I dont care if youre rich
Youre just a rich moron

The Kind of Tired That Sleep Won’t Fix Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

The Kind of Tired That Sleep Won’t Fix Shirt $21.68

  1. 2 years ago
    Anonymous

    shut the frick up phone poster

    • 2 years ago
      Anonymous

      looks like a tablet to me

  2. 2 years ago
    Anonymous

    what's wrong with const isOdd = num => !!(num%2)?

    • 2 years ago
      Anonymous

      Nothing is wrong with that
      Except why does it have two exclamation points?

      • 2 years ago
        Anonymous

        That way you force true or false instead of returning the result of num % 2.

      • 2 years ago
        Anonymous

        To turn 1 to true, moron

        • 2 years ago
          Anonymous

          That way you force true or false instead of returning the result of num % 2.

          Nothing is wrong with that
          Except why does it have two exclamation points?

          this would not pass code review since !! is overly clever

          should probably be something like Boolean(num%2) for the sake of readability/clarity

          • 2 years ago
            Anonymous

            It should be `n mod 2 == 1` to clearly show how this works, rather than relying on the reader knowing some quirk of the language on truthy / falsy non Boolean type values

            Alternatively stop being moronic and learn how to read """smart""" code

          • 2 years ago
            Anonymous

            Should developers dumb down their work to the lowest possible level so even the very stupid or mentally damaged can read it?

          • 2 years ago
            Anonymous

            No. If it works and it's not in some obscure duct taped method put together then it's good.

    • 2 years ago
      Anonymous

      0.5 is now odd?

      • 2 years ago
        Anonymous

        Here's v1.1: const isOdd = n => !!(n%2&&!(n%1))

    • 2 years ago
      Anonymous

      comparing with is-odd module
      doesn't throw an error if num isn't a number
      >> isOdd("3")
      <- true

      doesn't throw an error if num is float
      >> isOdd(3.1)
      <- true
      >> isOdd(4)
      <- false
      >> isOdd(4.1)
      <- true

      doesn't throw an error if num excess max safe integer
      welcome to the zoo that JS is

      • 2 years ago
        Anonymous

        Either use

        Here's v1.1: const isOdd = n => !!(n%2&&!(n%1))

        or move on to TypeScript because you're too shit at writing code.

        • 2 years ago
          Anonymous

          though not sure that just returning a float isn't odd is correct
          still following happens
          >> isOdd("3")
          <- true

          come on anon you can do it

          • 2 years ago
            Anonymous

            3 is odd, moron.

          • 2 years ago
            Anonymous

            "3" is a string

          • 2 years ago
            Anonymous

            "3" can be compared to a number in JS. It's part of the spec. If you want strict typecasting, again use TypeScript. Jesus fricking Christ.

      • 2 years ago
        Anonymous

        Numbers > max safe integer are all even integers, so it should clearly return false for those.

      • 2 years ago
        Anonymous

        Bros i bet like 99% no 100% thats right. 100% of these webshitters are not dealing with inputs.

    • 2 years ago
      Anonymous

      reinventing the wheel is moronic, use the library

      • 2 years ago
        Anonymous

        I don't want to bloat up my codebase with 120KB of shit.

    • 2 years ago
      Anonymous

      extremely moronic and slow
      use bitwise operations

  3. 2 years ago
    Anonymous

    >400k weekly downloads
    JS babbies are something else

    • 2 years ago
      Anonymous

      >JS babbies are something else
      if that something else is lazy, poorly educated and dangerously incompetent.. then yes, they sure are. there's a lot of fricking morons out there that are so lazy that they'd rather import a dependency than code it themselves, no matter how small the routine is.

      • 2 years ago
        Anonymous

        >dangerously incompetent
        there is nothing dangerous about web dev

        • 2 years ago
          Anonymous

          >bro just import modules for every mundane task nothing can go wrong you can trust JS soidevs

      • 2 years ago
        Anonymous

        You know that screenshot of interview questions where the guy asked people to write a program that finds odd numbers and most didn't know how to do it?

  4. 2 years ago
    Anonymous

    I don’t give a shit you stupid piece of shit enjoy the ride YOU are on THE HIGHWAY now

  5. 2 years ago
    Anonymous

    #define isOdd(n) (1 == (n) % 2)

    • 2 years ago
      Anonymous

      Uhm, sorry sweatie, that is not valid JS.

    • 2 years ago
      Anonymous

      >doesn't work for negatives

  6. 2 years ago
    Anonymous

    Resume:
    Author of code repository on <site> with over 368,000 downloads per week.

    • 2 years ago
      Anonymous

      >meanwhile all the code they wrote is

      what's wrong with const isOdd = num => !!(num%2)?

      and an export function for it

  7. 2 years ago
    Anonymous

    What if I'm not rich?

  8. 2 years ago
    Anonymous

    Every single time this comes up all the donner kruger morons give an implementation that doesn't work on negative numbers. Always makes me laugh.

  9. 2 years ago
    Anonymous

    In this thread I learned that 1.5 is odd and -1 is even.

  10. 2 years ago
    Anonymous

    > node.js inherits from web not having a functional standard library, making supply chain attacks feasible
    except in node, people don't even need to make it a "framework". The whole npm is a framework

  11. 2 years ago
    Anonymous

    Introduce a massive security vulnerability to save under 10 characters of code. Very JS pilled.

  12. 2 years ago
    Anonymous

    Do Java tards really not know how to check if an int is odd?

    • 2 years ago
      Anonymous

      >Java
      You're moronic yourself, sub 70 IQ fellow.

  13. 2 years ago
    Anonymous

    #define IS_ODD(N) (N & 1)

    • 2 years ago
      Anonymous

      Not JS.

  14. 2 years ago
    Anonymous

    I think i found the culprit
    https://www.spreadsheetweb.com/isodd-excel-function/
    Maybe its just accountants using googlesheets or something

  15. 2 years ago
    Anonymous

    Just fricking
    Math.floor(Math.abs(num))%2==0
    Jesus christ

Your email address will not be published. Required fields are marked *