Live data from Hacker News

A day without JavaScript

sonniesedge.co.uk

411–412 of 412 posts

Re: A day without JavaScript

#411

Earlier quoted context omitted.

No, a polyfill is not a library. It's a dozen lines, not a thousand.

> 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.

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

#412

Earlier quoted context omitted.

Simply don't target old browsers. If people don't use JS, or don't have a modern browser, feel free to go elsewhere. I don't target edge cases as I don't get paid to.

I really envy the industry where you work on. In my industry you can't just ignore half a billion of outdated Android phones and Government seats.

I presume you get paid for this specifically?
Post reply on HN