By Addy Osmani

ISBN-10: 1449328253

ISBN-13: 9781449328252

In an effort to construct your site's frontend with the single-page program (SPA) version, this hands-on booklet indicates you the way to get the activity performed with Backbone.js. you will the right way to create based JavaScript functions, utilizing Backbone's personal style of model-view-controller (MVC) structure. begin with the fundamentals of MVC, SPA, and resolution, then get your fingers soiled development pattern functions - an easy Todo checklist app, a RESTful publication library app, and a modular app with spine and RequireJS. writer Addy Osmani, an engineer for Google's Chrome crew, additionally demonstrates complicated makes use of of the framework.

Show description

Read Online or Download Developing Backbone.js Applications: Building Better JavaScript Applications PDF

Similar javascript books

Read e-book online Developing Backbone.js Applications PDF

With a view to construct your site’s frontend with the single-page program (SPA) version, this hands-on publication indicates you the way to get the activity performed with spine. js. You’ll tips on how to create based JavaScript functions, utilizing Backbone’s personal taste of model-view-controller (MVC) structure.

Get Create Web Charts with jqPlot PDF

Create net Charts with jqPlot exhibits the right way to convert your info into attention-grabbing, cutting edge, lively, and hugely interactive browser-based charts. This booklet is appropriate for builders of all adventure degrees and desires: if you love quick and powerful recommendations, you should use the jqPlot library to generate charts with striking results and animations utilizing just a couple of traces of code.

Read e-book online Instant Kendo UI Mobile PDF

Useful recipes to benefit the Kendo UI cellular library and its a number of elements for construction cellular purposes successfully review research whatever new right away! a quick, quickly, targeted consultant offering quick effects comprehend a few of the parts at the Kendo UI cellular software framework discover ways to use a few of the widgets within the Kendo UI cellular library that can assist you construct a cellular program swiftly construct purposes that offer local feel and appear with no need to take care of a separate code base intimately The Kendo UI cellular library is a one cease approach to construct cellular functions swiftly.

Additional info for Developing Backbone.js Applications: Building Better JavaScript Applications

Example text

Completed: true }); // // // // // // // Above logs: This model has been initialized. - Values for this model have changed. Title has changed: The listener is triggered when an attribute value changes. - Values for this model have changed. Completed has changed: true - Values for this model have changed. You can also listen for changes to individual attributes in a Backbone model. In the following example, we log a message whenever a specific attribute (the title of our Todo model) is altered.

Get('completed')); // true If you need to read or clone all of a model’s data attributes, use its toJSON() method. This method returns a copy of the attributes as an object (not a JSON string, despite its name). stringify() is passed an object with a toJSON() method, it stringifies the return value of toJSON() instead of the original object. set() sets a hash containing one or more attributes on the model. When any of these attributes alter the state of the model, a change event is triggered on it.

To summarize, the MVC pattern helps you keep your application logic separate from your user interface, making it easier to change and maintain both. Thanks to this sep‐ aration of logic, it is more clear where changes to your data, interface, or business logic need to be made and for what your unit tests should be written. Delving Deeper into MVC Right now, you likely have a basic understanding of what the MVC pattern provides, but for the curious, we’ll explore it a little further. The GoF (Gang of Four) do not refer to MVC as a design pattern, but rather consider it a set of classes to build a user interface.

Download PDF sample

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


by Thomas
4.1

Rated 4.66 of 5 – based on 9 votes