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

Model, View, Whatever.

Model, View, Whatever.

Some ideas to help you build complex javascript applications that don't ruin the internet.

Dominic Barker

January 08, 2015
Tweet

More Decks by Dominic Barker

Other Decks in Programming

Transcript

  1. Model, View, Whatever. *Document Object Model - not me! or

    how I learned to stop worrying and love the DOM*
  2. • Complex UI • Feel really fast • Comparable to

    native mobile apps • Can work offline • Cool MVC MVW frameworks galore
  3. • Javascript :( • Initial page load • Duplicated code

    • < noscript /> • IE <9 Internet Explorer • Deep linking • Error handling • SEO
  4. • Render a full working web page on the server

    • For all routes, not just the first hit of index page • Bind SPA afterwards • SPA uses the same markup • Client and server use same templates
  5. • Real forms! • Real links! • No duplicated templates!

    • No white screen of death! • Error recovery for free! • Cheap integration tests! • Maximum dev gibberish: Isomorphic Application