News for hackers. Stuff that matters.
Re:A day without JavaScript by dragonwriter on Wednesday June 07, 2017 @09:26AM (#14506192)
> No, a polyfill is not a library

Yes, it is.

> It's a dozen lines, not a thousand

A polyfill can be any size, but there's no size minimum to be a library.

Re:A day without JavaScript by inimino on Sunday June 11, 2017 @12:19PM (#14532531)
Overly-literal response.

A polyfill is a short snippet to implement a missing feature. Notably almost all recent additions to JS and DOM have been designed to be polyfillable where possible. Generally that means under a thousand lines, by the way.

A library in this context means a set of functionality built on top of the platform, like jQuery, with its own API, etc. "Use a library" and "use a polyfill" are not the same advice.

A polyfill is not a library.

Re:A day without JavaScript by AstralStorm on Wednesday June 07, 2017 @12:30PM (#14507727)
Some people are mistaking a book (actually a module) for a library.