Developing Backbone.js Applications - By Addy Osmani (@addyosmani) Available free for open-source reading below or for purchase via the O'Reilly store.
Pull requests and comments always welcome. Prelude Not so long ago, “data-rich web application” was an oxymoron. Today, these applications are everywhere and you need to know how to build them. Traditionally, web applications left the heavy-lifting of data to servers that pushed HTML to the browser in complete page loads. Think of the Ajax shopping cart which doesn’t require a refresh on the page when adding an item to your basket. The rise of arbitrary code on the client-side which can talk to the server however it sees fit has meant an increase in client-side complexity. Thankfully, there are a growing number of JavaScript libraries that can help improve the structure and maintainability of your code, making it easier to build ambitious interfaces without a great deal of effort.
Target Audience Acknowledgements Credits Target Version Reading What Is MVC? What is Backbone.js? Backbone Events vs. Ember Bindings: A Benchmark. Backbone and Ember. Ember and Backbone are both promising JavaScript frameworks but have completely different philosophies.
In this post, I'll compare the two, both from a practical and philosophical perspective. I'll defer to real world experience with Backbone and SproutCore (Ember's predecessor), as well as basic experiments with Ember (full disclosure: haven't built a large Ember app yet). I'll also supplement claims with quotes from a fantastic conversation from Freenode #documentcloud on February 3rd, 2011. For quote context, wycats is Yehuda Katz, one of the lead developers on Ember, and jashkenas is Jeremy Ashkenas, one of the lead developers on Backbone. Before I go into too much detail, it's pretty clear that both frameworks have the same goal: to help developers build apps. 1:09 PM wycats backbone apps are apps So we have a roughly apples-to-apples comparison.
Backbone at a glance Backbone is a minimalist framework that builds on top of ideas from jQuery to give some structure to web applications. Présentation comparée de Backbone JS et Ember JS. Le 15 février dernier s'est tenue une soirée sur les frameworks JavaScript au LyonJS.
Romain Philibert a présenté le framework Backbone JS tandis que Damien Mathieu s'est attaqué à Ember JS. Backbone JS La première présentation portait donc sur Backbone JS. Pour l'historique, ce framework est né du besoin de son auteur (Jeremy Ashkenas) qui travaille à la réalisation du site DocumentCloud.