Comparative Analysis of JavaScript Framework: This slides contains brief about Single Page Architecture and Existing gaps in framework like Angular, Backbone, Knockout.js and proposed solutions.
1. Comparative Analysis of
JavaScript Framework
VS VS
By Nishant Kumar
Tech Author @Mozilla
UI Engineering Lead @ Cloud Startup
Teaching Assistant @Bits Pilani, Pilani
4. Single Page Application (SPA) Architecture - Definition
“A single page application is a web app that fits on
a single page with a goal of providing a more fluid
user experience”
from Wikipedia
“..A web app which handle majority of user
interaction with app on the page (client end)
without reaching to server every time…”
from me
9. Overview: JavaScript Frameworks
“This describes a given structure of "how" you should
present your code. Pretty much like a code-template, along
some helpers, constructors etc. to solve/simplify a specific
problem or bring your architecture in "order".
From
14. Gaps in Existing Frameworks
• Backbone lacks support for two-way data binding, meaning you will have to write a lot of boilerplate to
update the view whenever your model changes, and to update your model whenever the view changes.
• Views in Backbone manipulate the DOM directly, making them really hard to unit-test, more fragile and
less reusable.
• Angular embeds its directive into html , which becomes very difficult to maintain as the size of the
application grows. (Separation of concern between view and model is violated)
• jQuery or another DOM parsing framework in directives may be painful to use (need more tests)
because of the way angular compiles templates.
• Manual Serialization : Doesn’t provide model synchronization with server
• No Routing : URL map doesn’t support