Bloggposter merket som:
backbone.js

Step by step from jQuery to Backbone

I’ve seen many struggle when they first meet Backbone.js. In this blog post I gradually refactor a bit of code from how I used to write JavaScript before, into proper Backbone.js code using models, collections, views and events. This process aims at teaching you the core abstractions in Backbone.js.

Writing reusable Backbone.js components

In this blog post I show how functionality can easily be reused across Backbone.js models, collections and views in a very powerful way. This technique helps decouple code and make each component more focused on its primary task.

Integration testing Backbone.js

Throughout my last project we have had an interesting approach to testing our Backbone.js code. Instead of unit testing each and every bit of the application, we mock out Ajax requests and test that the application works end-to-end.