O'Reilly logo

Better Backbone Applications with MarionetteJS by Joseph Zimmerman, Smashing Magazine

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 2: Modules

At the beginning of chapter 1, I mentioned the two meanings that composite architecture had in the context of Marionette. The first meaning referred to application components built in a hierarchical module structure. Now that we’ve covered the root node of that hierarchy, let’s look at how we start to branch out into a hierarchy of modules.

What Are Modules?

Before we get into the details of how to use Marionette’s module system, we should make sure we have a decent definition of what a module is. A module is an independent unit of code that ideally does one thing. A module is used in conjunction with other modules to create an entire system. The more independent a unit of code is, the more easily it can be exchanged or internally ...

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