"Beauty of style and harmony and grace and good rhythm depends on simplicity."
By understanding the concept of divide and conquer, we should agree that the modularization of code is tremendously important. Modules are small, simple, and well-encapsulated packages that have a singular focus with well-defined functions; they can be used in conjunction with other modules to create an entire system. In
Marionette.js, a module provides a high-level piece of functionality and manages objects that really provide implementation details.
Let's define a module with no functionality to continue with the examples from the book store, where we will create the module that will contain the cart and order history subapplications: ...