A little backbone for your app Developing javascript heavy applications can rapidly turn into a complicated and rather unpleasant endeavour. Luckily many well established frameworks like jQuery, Prototype or MooTools make it relatively easy abstract away the complexities of working on the DOM.
Other complete solutions have appeared to help structure the application logic and to help in those tasks less related with building the interface (examples are GWT, YUI, Cappuccino and SproutCore). They are well integrated and aim to create desktop-like web apps. A lot of built-in functionality is offered though somewhat they do it at the expense of flexibility (integrating with third party code) and they have a rather steep learning curve.
Backbone.js represents a middle ground between the full fledged application frameworks and the handmade application code. It provides a series of useful building blocks to help build the application without requiring too much of an investment in the framework from the start. Developers can cherry pick whichever parts are needed and integrate them easily with other libraries.
The library applies the principles of the Model-View-Controller pattern and implements classes and code to:
Moreover Backbone.js:
Last, but not least, Backbone.js is very easy to use together with other libraries dedicated to deal with the DOM and offers built-in integration with jQuery or Zepto (Moo tools integration is available through a fork of the library).
The talk will show an overview of the library and its main ideas and concepts, then we’ll explore its most interesting capabilities through the use of code examples.
References:
- http://documentcloud.github.com/...
- http://documentcloud.github.com/...
20 more videos from JSDay 2011
Sign in to add slides, notes or videos to this session