O'Reilly logo

Instant Backbone.js Application Development by Thomas Hunter II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installation

To use Backbone.js, you will need at least Backbone itself, a utility library, which binds to the global variable _ (the underscore character), and a selector engine, which binds to the global variable $. The de facto utility library is Underscore.js, and the de facto selector engine is jQuery.

The purpose of a utility library is to make up for some of the shortcomings of JavaScript. These libraries provide several functions to make programming faster. One such example is the foreach function, something you might have missed coming from the world of PHP development. The purpose of the selector engine is to provide a common method for querying DOM elements. Different browsers implement these in different ways, using a couple of different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required