Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Stop Using Native HTML5 (v5)

Kyle Simpson
November 07, 2012

Stop Using Native HTML5 (v5)

No, don't stop using HTML5, just stop using the native HTML5 JavaScript API's directly. They're still in flux, there's still bugs that need to be shim'd, etc. Your code needs to use these features, but it needs to be more robust.

What you need is to use in your apps is a thin facade (wrapper API) around those features, so that as things change, bugs come and go, etc, all that needs to change is the internals of your facade, and not your actual app code.

"h5ive" is a project to build these thin facade APIs for the various HTML5 native APIs. We'll examine why we need something like this, and how h5ive will help us build more robust HTML5 apps.

Kyle Simpson

November 07, 2012
Tweet

More Decks by Kyle Simpson

Other Decks in Programming

Transcript

  1. “Perfection is achieved, not when there is nothing more to

    add, but when there is nothing left to take away.” -- Antoine de Saint-Exupery facade design Goldilocks.
  2. xhr

  3. xhr

  4. what’s left? History Web Workers Web Socket Geolocation <audio> /

    <video> File / FileSystem PeerConnection/WebRTC Web DBs BlobBuilder Blob URL FormData Device APIs Server-Sent Events appCache ...