Home » Web Development » Backbone.js Patterns and Best Practices (2014)

Backbone.js Patterns and Best Practices (2014)

English | January 24, 2014 | ISBN: 1783283572 | 174 Pages | PDF | 1.03 MB

A onestop guide to best practices and design patterns when building applications using Backtbone.js
About This BookOffers solutions to common Backbone.js related problems that most developers faceShows you how to use custom widgets, plugins, and mixins to make your code reusableDescribes patterns and best practices for large scale JavaScript application architecture and unit testing applications with QUnit and SinonJS frameworks

Who This Book Is For
This book is for JavaScript developers who work with Backbone.js and want to learn the best design patterns to develop complex web applications. Basic knowledge of Backbone.js and JavaScript is essential.
What You Will LearnDevelop custom plugins and mixins to reduce boilerplate in your codeLearn about Backbone view management with nested views, subviews, layout manager, and Marionette viewsUnderstand template management by storing and pre-compiling templatesExplore model validation with validation plugins and learn model serialization and relational data management with nested modelsWork with collections to implement multiple sorting and filtering behaviorCreate solid application architecture with AMD and different popular design patterns
In Detail
Backbone.js is a super light framework that allows you to structure your JavaScript codes in an MV* fashion. This framework is an excellent tool when it comes to creating an organized and modular code base for web apps of any size or complexity. Although lightweight, Backbone.js results in lots of boilerplate. Learning the best practices and design patterns will help you avoid these problems and allow you to ensure that the best standards are followed.
Backbone.js Patterns and Best Practices is packed with examples that will help you work with Backbone.js components. It also gives solutions to common problems faced by developers. It gives a complete overview of plugin development, large scale application architecture, and unit testing as well.
Starting with a discussion of why reducing boilerplate in your JavaScript code is essential, Backbone.js Patterns and Best Practices explains how to enforce reusability in your code by creating plugins and mixins. You will learn about patterns and best practices for Backbone views, models, collections, routers, and events.
You will discover solutions to common problems that developers face through simple examples, and delve into the best open source plugins available to solve these problems when they arise. This book is an excellent collection of design and implementation patterns that will help you structure and develop complex Backbone.js applications easily.