Re: Prollyfills and the global namespace / multi-fills

> The idea with Hitch was to be a prollyfill framework
> giving you places to encapsulate and a global object
> upon which to hang proposed things.
>
> As someone who writes web sites and apps I value
> the sites I write not suddenly breaking when a new
> browser is released much more than an unforseeable
> perf bump - the risk is just too great.

I agree with you here.

I think good guidelines are:
- create a module if possible (people could decide to import it on the 
global namespace, but that's an opt-in)
- when you use some global namespace, use a prefix (no code should use your 
function by mistaking it for a native implementation)

Received on Wednesday, 3 July 2013 17:10:42 UTC