[deleted]
An easier way of using polyfills
21–30 of 80 posts
Re: An easier way of using polyfills
#22[deleted]
edit: it does seem to be googleable now, but I think the search engines are taking hints from wikipedia.
Re: An easier way of using polyfills
#23While a neat idea in theory, I have some qualms about this. User agent detection sounds great, until you have a user that spoofs their agent. I often do so for various reasons, and from time to time I forget to turn it off after I've finished what I was doing. If this service becomes common, then I will be given broken webpages seemingly at random. The other option, a polyfill covering specific features and served to…
Polyfills won't break your page and random, worse case you get worse performance over native. However the point of a polyfill is to do exactly what the native method would have done if it existed
Re: An easier way of using polyfills
#24While a neat idea in theory, I have some qualms about this. User agent detection sounds great, until you have a user that spoofs their agent. I often do so for various reasons, and from time to time I forget to turn it off after I've finished what I was doing. If this service becomes common, then I will be given broken webpages seemingly at random. The other option, a polyfill covering specific features and served to…
Re: An easier way of using polyfills
#25Re: An easier way of using polyfills
#26How big is the "full" set of polyfills anyway? Probably small enough that a single download isn't an issue on even dialup?
--
That aside, polyfill ALL the things. Hopefully making it easier makes it common, which lets devs use a nicer version of Javascript.
Re: An easier way of using polyfills
#27While a neat idea in theory, I have some qualms about this. User agent detection sounds great, until you have a user that spoofs their agent. I often do so for various reasons, and from time to time I forget to turn it off after I've finished what I was doing. If this service becomes common, then I will be given broken webpages seemingly at random. The other option, a polyfill covering specific features and served to…
Users that spoof their user agent are likely to either be tech-savvy people who either know what they are doing or who are hiding who they are, like a bot. I'm more worried about supporting older users on old machines who barely know the difference between Internet Explorer and the internet than in supporting someone who knows exactly what a UA is and how to spoof it.
Basically they're crafting the UA to appear like Chrome or Firefox.
Re: An easier way of using polyfills
#28[deleted]
People fought the terminology for a while, but were overwhelmed. The only purpose it seems to serve is to make a simple discussion about a simple concept completely confusing to people not 'in the know', and in addition the confusing word in question is nearly ungoogleable. Greek does make things sound more mathematical/formal, though, so there's that. edit: it does seem to be googleable now, but I think the search e…
Re: An easier way of using polyfills
#29[deleted]
I don't see what's stupid about that. Are you suggesting that anytime we want to talk about polyfills, we should instead write the following? #include "config.h" // ... #if !HAVE_FOOBAR void foobar(...) // missing: implement ourselves { } #endif Because that's nuts. This usage is actually more useful than the one that's a contraction of "polygon filling."