Book Image

Backbone.js Essentials

By : Jeremy Walker
Book Image

Backbone.js Essentials

By: Jeremy Walker

Overview of this book

<p>This 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.</p> <p>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.</p>
Table of Contents (20 chapters)
Backbone.js Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we explored several advanced techniques for using Backbone. First, we learned how many of Backbone's properties can be replaced with methods, and in particular, how the model property of a Collection class can be used in this way to generate different types of Models. We then learned how to override a class constructor to gain access to and/or manipulate its arguments before initialize, and how to use mixins to share methods between otherwise unrelated classes. Finally, we examined how to use the Backbone object itself to implement the pub/sub pattern, and how Backbone Views can be used to "wrap" components from other JavaScript libraries.

In the next chapter, we'll look at some of the performance implications of Backbone and how you can avoid the most common performance pitfalls.