News for hackers. Stuff that matters.
Re:Devs unknowingly use “malicious” modules snuck into offic... by seanp2k2 on Monday September 18, 2017 @03:51AM (#15274069)
ES6 does not fix the left-pad issue; there is a propensity to use a package to get one small function vs using a library of common helper functions (which is somewhat what e.g. ES6 helps with...less need for underscore or similar). You pretty much don't need jquery now, but so many things depend on it for convenience / backward compatibility / because it's so insanely battle-tested that you know that it will work or at least have a StackOverflow explaining why a particular thing does a thing in a weird way.
Re:Devs unknowingly use “malicious” modules snuck into offic... by Ajedi32 on Monday September 18, 2017 @09:40AM (#15275796)
> ES6 does not fix the left-pad issue

Actually, for that particular problem... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:Devs unknowingly use “malicious” modules snuck into offic... by Can_Not on Monday September 18, 2017 @02:59PM (#15278529)
> there is a propensity to use a package to get one small function vs using a library of common helper functions

Lodash functions are available in both forms.