CHAPTER 3

image

Modular JavaScript Development

Modularity is a quality that you expect applications to have whether they are single page applications (SPAs) or just modern web applications. Modular code helps to create big and scalable applications. It also enables reusability and extensibility of your application’s parts. The lack of modular code can be the difference between a successful application and an unsuccessful one.

In the last part of Chapter 2, “JavaScript for SPAs,” you learned that ECMAScript 6 will include the option to create modules. Until modules are a part of JavaScript, we need ways to emulate modular behavior. That is where this ...

Get Pro Single Page Application Development: Using Backbone.js and ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.