Creating a Manageable JavaScript Code Base

  • James Sugrue


Now you know how to build Backbone applications, introduce a build system, and ensure quality code with test frameworks. The last piece of the puzzle is keeping the code in a maintainable state. JavaScript applications are often criticized for becoming a mess of spaghetti code over time, and left unchecked, it could happen to your Backbone app, too. This chapter brings you some tips to help ensure your code remains understandable, modular, and testable over its lifetime. In this chapter, we’ll introduce RequireJS as a way to ensure your application is truly modular, and we’ll discuss some useful design patterns that enforce structure and clarity in your Backbone applications.


Design Pattern Command Line Library Module Callback Function Path Section 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© James Sugrue 2013

Authors and Affiliations

  • James Sugrue
    • 1
  1. 1.CorkIreland

Personalised recommendations