52
frogstair
21d

People who use js outside of frontend should be sterilized

Why would anyone use this shit

Comments
  • 11
    The sequel
  • 27
    I am fucking screaming
  • 2
    @frogstair ... They're taking the piss aren't they?
  • 5
    What does this have to to with the language though? Other languages with package managers got the same shit.
  • 0
    oh hey, a repost.
    check if x isn't 0 as well, as that results in an "even" rating in lots of langs, and iirc JS is like that too
  • 5
    @Parzi but zero is an even number so that is correct. The modulo line checks it correctly. If zero is undesired however it should have been caught by input validation. Separation of concerns yo.

    And yeah a repost but valid meme.
  • 1
    @LotsOfCaffeine they might but someone is actually using it
  • 2
  • 1
  • 1
    Imagine using modulo instead of bitmasks.
  • 1
    Fine slay JS all you want, I don't use it anywhere, but I love TypeScript, actually prefer writing microservices in TS than Python
  • 1
    I think I heard the defence is that this is "just a dummy package to test <insert whatever the current popular javascript package manager is> is working", but I'm completely out of touch.
  • 0
    @sjwsjwsjw I don't think this is a dummy
    Some sources:
  • 0
  • 2
    @frogstair poor choice of words on my end

    The claim I heard was it's a small petty package that people supposedly only use it as a joke outside of dependency, but really I'm not qualified in modern javascript development at all.
  • 3
    Some of these packages are in fact jokes like

    https://github.com/jezen/...

    yet that doesn't explain the success of the like like `is-odd` ^^

    Though strangely I feel I have to play devil's advocate here.

    One can always argue that those helper function increase readability for a certain kind of developers (to say that one must use modulo in these situations is also a form a gate-keeping) and the package at least offers some extra checks.

    So anything that adds readability to some folks is a good thing or we all would still be typing assembler code or would be punching cards.

    That this all could lead to yet another left-pad debacle is a complete different story ^^
  • 3
    That's an awful lot of sterilisation
  • 1
    OMG, I knew that whole JS/frontend/npm/react thing was getting out of hand, but seeing THAT !!!!!!!!!!
  • 0
    arr.filter(is-even);
    arr.filter(is-odd);
Add Comment