Skip to main content

Creating a Manageable JavaScript Code Base

  • Chapter
  • First Online:
Beginning Backbone.js
  • 760 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 James Sugrue

About this chapter

Cite this chapter

Sugrue, J. (2013). Creating a Manageable JavaScript Code Base. In: Beginning Backbone.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6335-7_12

Download citation

Publish with us

Policies and ethics