News for hackers. Stuff that matters.
Re:NPM package 'isarray' is downloaded 40M times a week by seattle_spring on Sunday November 08, 2020 @10:27AM (#25026301)
The biggest insight in that thread is how big of a jerk "PublicByte" is. I sure hope I never have th misfortune of working with that person or anyone like him.
Re:NPM package 'isarray' is downloaded 40M times a week by amadeuspagel on Sunday November 08, 2020 @10:37AM (#25026391)
Yeah, github desperately needs moderation. Maintainers should be able to flag issues, and prevent people who more then x flags from filing issues.
Re:NPM package 'isarray' is downloaded 40M times a week by OJFord on Sunday November 08, 2020 @10:48AM (#25026463)
It added some moderation tooling in the last year or so, I'm not sure about that specifically though.
Re:NPM package 'isarray' is downloaded 40M times a week by andrew_ on Sunday November 08, 2020 @10:40AM (#25026409)
Blocking works nicely and prevents further interactions.
Re:NPM package 'isarray' is downloaded 40M times a week by jchook on Sunday November 08, 2020 @10:54AM (#25026527)
Some seriously relevant psychoanalysis of this behavior in this article (also on HN front page) about toxic workplaces: https://articles.tilt365.com/identify-destructive-leadership...
Re:NPM package 'isarray' is downloaded 40M times a week by gonzo41 on Sunday November 08, 2020 @10:33AM (#25026347)
Yeah that person really dialed things up to 11 there. But I think it's a tone that stems from a legitimacy thing with javascript having a super low barrier to entry.
Re:NPM package 'isarray' is downloaded 40M times a week by hn_throwaway_99 on Sunday November 08, 2020 @10:39AM (#25026400)
Did you actually read the function in this library. While yes it's a single line I'm convinced that anyone who thinks this is an "obvious" implementation hasn't actually read the code.
Re:NPM package 'isarray' is downloaded 40M times a week by gonzo41 on Sunday November 08, 2020 @10:44AM (#25026435)
Actually I did read the function, and I thought about the cycles that toString.call(arr) == '[object Array]' costs.
Re:NPM package 'isarray' is downloaded 40M times a week by seattle_spring on Sunday November 08, 2020 @11:02AM (#25026588)
... which only gets called if the native implementation of `isArray` is not found.
Re:NPM package 'isarray' is downloaded 40M times a week by karmakaze on Sunday November 08, 2020 @11:37AM (#25026856)
ES5 is a low requirement. I'd rather use a lib that did a better job than one that returns true for the string '[object Array]' or have the app decide for itself what its own types are.
Re:NPM package 'isarray' is downloaded 40M times a week by hn_throwaway_99 on Sunday November 08, 2020 @10:57AM (#25026560)
Is there some other implementation you think would work?
Re:NPM package 'isarray' is downloaded 40M times a week by disown on Sunday November 08, 2020 @11:30AM (#25026799)
Please use harrassment free language. You've broken a few comment rules. Can you review the community guidelines and refrain from breaking the rules?

https://news.ycombinator.com/newsguidelines.html