Upload
dominic-barker
View
60
Download
2
Embed Size (px)
Citation preview
Model, View, Whatever.
*Document Object Model - not me!
or how I learned to stop worrying and love the DOM*
We ♥
Single PageApplications
• Complex UI
• Feel really fast
• Comparable to native mobile apps
• Can work offline
• Cool MVC MVW frameworks galore
But…
• Javascript :(
• Initial page load
• Duplicated code
• < noscript />
• IE <9 Internet Explorer
• Deep linking
• Error handling
• SEO
Another way is possible.
• 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
• Real forms!
• Real links!
• No duplicated templates!
• No white screen of death!
• Error recovery for free!
• Cheap integration tests!
• Maximum dev gibberish: Isomorphic Application
Dom Barker Software Engineer @ Quill Content
@mostlyharmlessd www.dombarker.co.uk
www.github.com/dakuan www.npmjs.com/~dakuan