Developing Backbone.js Applications: Building Better JavaScript Applications

If you want to build your site’s frontend with the single-page application (SPA) model, this hands-on book shows you how to get the job done with Backbone.js. You’ll learn how to create structured JavaScript applications, using Backbone’s own flavor of model-view-controller (MVC) architecture.

Start with the basics of MVC, SPA, and Backbone, then get your hands dirty building sample applications—a simple Todo list app, a RESTful book library app, and a modular app with Backbone and RequireJS. Author Addy Osmani, an engineer for Google’s Chrome team, also demonstrates advanced uses of the framework.

  • Learn how Backbone.js brings MVC benefits to the client-side
  • Write code that can be easily read, structured, and extended
  • Work with the Backbone.Marionette and Thorax extension frameworks
  • Solve common problems you’ll encounter when using Backbone.js
  • Organize your code into modules with AMD and RequireJS
  • Paginate data for your Collections with the Backbone.Paginator plugin
  • Bootstrap a new Backbone.js application with boilerplate code
  • Use Backbone with jQuery Mobile and resolve routing problems between the two
  • Unit-test your Backbone apps with Jasmine, QUnit, and SinonJS
1109602207
Developing Backbone.js Applications: Building Better JavaScript Applications

If you want to build your site’s frontend with the single-page application (SPA) model, this hands-on book shows you how to get the job done with Backbone.js. You’ll learn how to create structured JavaScript applications, using Backbone’s own flavor of model-view-controller (MVC) architecture.

Start with the basics of MVC, SPA, and Backbone, then get your hands dirty building sample applications—a simple Todo list app, a RESTful book library app, and a modular app with Backbone and RequireJS. Author Addy Osmani, an engineer for Google’s Chrome team, also demonstrates advanced uses of the framework.

  • Learn how Backbone.js brings MVC benefits to the client-side
  • Write code that can be easily read, structured, and extended
  • Work with the Backbone.Marionette and Thorax extension frameworks
  • Solve common problems you’ll encounter when using Backbone.js
  • Organize your code into modules with AMD and RequireJS
  • Paginate data for your Collections with the Backbone.Paginator plugin
  • Bootstrap a new Backbone.js application with boilerplate code
  • Use Backbone with jQuery Mobile and resolve routing problems between the two
  • Unit-test your Backbone apps with Jasmine, QUnit, and SinonJS
29.49 In Stock
Developing Backbone.js Applications: Building Better JavaScript Applications

Developing Backbone.js Applications: Building Better JavaScript Applications

by Addy Osmani
Developing Backbone.js Applications: Building Better JavaScript Applications

Developing Backbone.js Applications: Building Better JavaScript Applications

by Addy Osmani

eBook

$29.49  $38.99 Save 24% Current price is $29.49, Original price is $38.99. You Save 24%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

If you want to build your site’s frontend with the single-page application (SPA) model, this hands-on book shows you how to get the job done with Backbone.js. You’ll learn how to create structured JavaScript applications, using Backbone’s own flavor of model-view-controller (MVC) architecture.

Start with the basics of MVC, SPA, and Backbone, then get your hands dirty building sample applications—a simple Todo list app, a RESTful book library app, and a modular app with Backbone and RequireJS. Author Addy Osmani, an engineer for Google’s Chrome team, also demonstrates advanced uses of the framework.

  • Learn how Backbone.js brings MVC benefits to the client-side
  • Write code that can be easily read, structured, and extended
  • Work with the Backbone.Marionette and Thorax extension frameworks
  • Solve common problems you’ll encounter when using Backbone.js
  • Organize your code into modules with AMD and RequireJS
  • Paginate data for your Collections with the Backbone.Paginator plugin
  • Bootstrap a new Backbone.js application with boilerplate code
  • Use Backbone with jQuery Mobile and resolve routing problems between the two
  • Unit-test your Backbone apps with Jasmine, QUnit, and SinonJS

Product Details

ISBN-13: 9781449328559
Publisher: O'Reilly Media, Incorporated
Publication date: 05/10/2013
Sold by: Barnes & Noble
Format: eBook
Pages: 374
File size: 6 MB

About the Author

Addy Osmani is a writer, speaker, and a JavaScript developer.He is a member of the jQuery core [Bug Triage/Docs/Learning] teams where helps with bugs, documentation, and developer evangelism.

When not working at AOL his personal OS projects include jQuery UI Bootstrap and TodoMVC, which help developers compare JavaScript MVC frameworks. Addy is the author of the popular ebook, Essential JavaScript Design Patterns. His personal blog is http://addyosmani.com/blog/

Table of Contents

Preface; Target Audience; Credits; Reading; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Introduction; 1.1 What Is MVC?; 1.2 What Is Backbone.js?; 1.3 When Do I Need a JavaScript MVC Framework?; 1.4 Why Consider Backbone.js?; 1.5 Setting Expectations; Chapter 2: Fundamentals; 2.1 MVC; 2.2 What Does MVC Give Us?; 2.3 Fast Facts; Chapter 3: Backbone Basics; 3.1 Getting Set Up; 3.2 Models; 3.3 Views; 3.4 Collections; 3.5 RESTful Persistence; 3.6 Events; 3.7 Routers; 3.8 Backbone’s Sync API; 3.9 Dependencies; 3.10 Summary; Chapter 4: Exercise 1: Todos—Your First Backbone.js App; 4.1 Static HTML; 4.2 Todo Model; 4.3 Todo Collection; 4.4 Application View; 4.5 Individual TodoView; 4.6 Startup; 4.7 In Action; 4.8 Completing and Deleting Todos; 4.9 Todo Routing; 4.10 Summary; Chapter 5: Exercise 2: Book Library—Your First RESTful Backbone.js App; 5.1 Setting Up; 5.2 Wiring in the Interface; 5.3 Creating the Backend; 5.4 Talking to the Server; 5.5 Summary; Chapter 6: Backbone Extensions; 6.1 MarionetteJS (Backbone.Marionette); 6.2 Thorax; 6.3 Summary; Chapter 7: Common Problems and Solutions; 7.1 Working with Nested Views; 7.2 Managing Models in Nested Views; 7.3 Rendering a Parent View from a Child View; 7.4 Disposing View Hierarchies; 7.5 Rendering View Hierarchies; 7.6 Working with Nested Models or Collections; 7.7 Better Model Property Validation; 7.8 Avoiding Conflicts with Multiple Backbone Versions; 7.9 Building Model and View Hierarchies; 7.10 Event Aggregators and Mediators; Chapter 8: Modular Development; 8.1 Organizing Modules with RequireJS and AMD; 8.2 Summary; Chapter 9: Exercise 3: Your First Modular Backbone and RequireJS App; 9.1 Overview; 9.2 Markup; 9.3 Configuration Options; 9.4 Modularizing Our Models, Views, and Collections; 9.5 Route-Based Module Loading; 9.6 An Asset Package Alternative for Dependency Management; Chapter 10: Paginating Backbone.js Requests and Collections; 10.1 Backbone.Paginator; 10.2 Paginator.requestPager; 10.3 Paginator.clientPager; Chapter 11: Backbone Boilerplate and Grunt-BBB; 11.1 Getting Started; 11.2 Creating a New Project; 11.3 Other Useful Tools and Projects; 11.4 Summary; Chapter 12: Backbone and jQuery Mobile; 12.1 Mobile App Development with jQuery Mobile; 12.2 Basic Backbone App Setup for jQuery Mobile; 12.3 Workflow with Backbone and jQueryMobile; 12.4 Applying Advanced jQM Techniques to Backbone; Chapter 13: Jasmine; 13.1 Behavior-Driven Development; 13.2 Suites, Specs, and Spies; 13.3 beforeEach() and afterEach(); 13.4 Shared Scope; 13.5 Getting Set Up; 13.6 TDD with Backbone; 13.7 Models; 13.8 Collections; 13.9 Views; 13.10 Exercise; 13.11 Further Reading; 13.12 Summary; Chapter 14: QUnit; 14.1 Getting Set Up; 14.2 Assertions; 14.3 Adding Structure to Assertions; 14.4 Assertion Examples; 14.5 Fixtures; 14.6 Asynchronous Code; Chapter 15: SinonJS; 15.1 What Is SinonJS?; 15.2 Stubs and Mocks; 15.3 Exercise; 15.4 Further Reading and Resources; Chapter 16: Conclusions; Further Learning; A Simple JavaScript MVC Implementation; MVP; MVP or MVC?; MVC, MVP, and Backbone.js; Namespacing; Backbone Dependency Details; Backbone Versus Other Libraries and Frameworks; Resources; Books and Courses; Extensions/Libraries; Colophon;
From the B&N Reads Blog

Customer Reviews