O'Reilly logo

Getting Started with Backbone Marionette by Arturo Soto, Raymundo Armendariz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Divide and Conquer – Modularizing Everything

After explaining in detail in Chapter 4, Managing Views, how to implement regions in Marionette.js to manage your views, it is time to understand how to deal with complex JavaScript projects and learn how to create a framework that would be extensible in subapplications and should require minimal effort to scale.

The following list contains the main topics that we will cover in this chapter and that we should consider while building modular and scalable single-page apps using Marionette.js:

  • Divide and conquer
  • Modules
  • Subapplications
  • Memory management

Applying the divide and conquer principle

Complexity is the enemy of software, and building complex JavaScript applications can easily get out of hand. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required