Build amazing high-performance web applications using Backbone.jsAbout This Book Construct top-notch web applications by mastering the powerful tools provided by Backbone.js Gain insights into how to simplify data management and create single-page web applications with powerful user interfaces This is a fast-paced guide on how to test, document, and leverage third-party libraries, and helps you get the most out of Backbone.js Who This Book Is ForIf you are a developer with baseline JavaScript proficiency and are familiar with the jQuery library, then this book is ideal for you. Whether you've tried building complex web applications before and been frustrated by the challenge of doing so without the proper tools, or whether you've only built simple websites and are now looking to create full-featured web applications, this book has everything you need to get ahead of the curve.
What You Will Learn Architect a single-page web application using Backbone.js Easily transmit data to and from a server-side API (RESTful or not) using Backbone's Models and Classes Add and modify DOM elements with Backbone Views, and create browsable client-side pages with Routers Document your Backbone.js logic, with or without popular tools such as JSDoc or Docco, to ensure long-term maintainability Prevent bugs and ease refactoring by testing your code with frameworks such as QUnit, Mocha, or Buster and auxiliary tools such as Sinon Use Backbone.js's sister library, Underscore, to realize the full power of a Backbone application Explore advanced Backbone techniques and save time and effort by using the most powerful third-party tools available In DetailThis book offers insight into creating and maintaining dynamic Backbone.js web applications. It delves into the the fundamentals of Backbone.js and helps you achieve mastery of the Backbone library.
Starting with Models and Collections, you'll learn how to simplify client-side data management and easily transmit data to and from your server. Next, you'll learn to use Views and Routers to facilitate DOM manipulation and URL control so that your visitors can navigate your entire site without ever leaving the first HTML page. Finally, you'll learn how to combine those building blocks with other tools to achieve high-performance, testable, and maintainable web applications.
It explains the use case of the different components of Backbone, and actually made me understand some programming patterns that I found no real use case for before.
However, the problem this book has is that there are no practical activities related to the use of Backbone.
All s just concepts and theory, not a single exercise to follow along is shown.
He just throws the nippets of code, which might be more useful when you want to maybe reinforce the theory, or look up certain information, but no academic value, no step by step to see a real progress.
All in all, a book worth reading if you want to learn about Backbone.js
This is the second book about Backbone and, honestly, the more I read, the less I understand about it; but I believe that's absolutely only my fault.
Although the book explains each of the Backbone classes in deep, it never really connects one to another. It seriously lack a whole description on how to build an app from start to finish. Even if you know everything about collections and models (and that they represent a table and a record, respectively), how to create a View and how to route things around, you seriously lack the idea behind connecting one to another -- although Views are shown using Models directly, it should actually go on how to draw several models from a collection in a single step, for example.
So, although good for understanding Backbone classes, it lacks on the general building of a Backbone app.
This a good introduction in the use of the Backbone.js framework, without being an introduction to programming. It gave a solid understanding about Backbone.js to help me maintain an existing code base. The author also provides further reading and more in depth references for deeper dives.