Contents
Chapter 1: An Introduction to Backbone.js
Design Patterns for Web Applications
How Backbone Supports Model View *
Other JavaScript Model View * Frameworks
Backbone Adoption in the Real World
Five Reasons to Use Backbone in Your Project
Three Reasons Backbone Might Not Be Right for You
Testing Your Setup: Backbone Project Structure
Some Tips for Your Development Environment
Chapter 2: Getting Object-Oriented
Making JavaScript Object-Oriented
Creating a Simple Object in JavaScript
Controlling Access to Methods and Properties
Object-Oriented Frameworks for JavaScript
Chapter 3: Backbone Models and Collections
Adding Functions to Your Model
Exchanging Data with the Server
Exchanging Data with the Server
Chapter 4: Backbone View and Templating Libraries
Using Handlebars with Backbone
Which Templating Library to Use?
Listen to Events on Other Objects
Chapter 6: From Start to Finish: A Complete App Example
First Steps: Dealing with Authentication
Making the Profile Model Reusable
Changing the Behavior on the Timeline
Adding Events to the Timeline View
Creating a Pop-up Dialog for Profiles
Sharing Models Between Backbone Objects
Chapter 7: The Backbone Ecosystem
Models and Collection Extensions
Chapter 8: Testing Your Backbone.js Application
The Advantages of Test-Driven Development
Putting Forward the Case for Test-Driven Development
Chapter 9: Using Grunt for Your Build Process
Adding Grunt to Existing Projects
Chapter 10: Extending Backbone with Marionette and Thorax
Getting Started with Marionette
A Simple Marionette Application
An Introduction to Thorax Types
Using Thorax for the Twitter Example
Chapter 11: Best Practices with Backbone
Maintain a Clear Separation of Concerns
Add Error Handling Patterns to Your Application
Unbind Events When Closing Views
Use listenTo for Event Handling
Use a Pattern to Close Views Correctly
Reduce Template Bloat with Partials
Precompile Templates in Handlebars
Sharing Common Code Between Views
Updating a Parent View from a Subview
Minimize Requests on Page Load
Use Document Fragment for Rendering Collections
Use Models to Store Extra Data
Chapter 12: Creating a Manageable JavaScript Code Base
Using RequireJS to Create Modular Applications
Including RequireJS in a Backbone Application
Using Yeoman to Get Started Quickly
Design Patterns for Backbone Applications
3.22.77.149