Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Modular Programming with JavaScript

You're reading from   Modular Programming with JavaScript Modularize your JavaScript code for better readability, greater maintainability, and enhanced testability

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781785880650
Length 274 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. What Are Modules and Their Advantages? FREE CHAPTER 2. Review of Important JavaScript OOP Concepts 3. Module Design Pattern 4. Designing Simple Modules 5. Module Augmentation 6. Cloning, Inheritance, and Submodules 7. Base, Sandbox, and Core Modules 8. Application Implementation – Putting It All Together 9. Modular Application Design and Testing 10. Enterprise Grade Modular Design, AMD, CommonJS, and ES6 Modules Index

Chapter 7. Base, Sandbox, and Core Modules

So far in this book, we have mostly looked at different techniques for creating and enhancing modules. However, our focus has been on the smaller pieces of the application.

In this chapter, we are going to take a holistic view of our application as a complete functioning body. We will see how its various pieces can be put together to create a robust and flexible ecosystem to deliver our ultimate goal, which is a working Single-Page Application (SPA).

As you read through different sections of this chapter, keep in mind that all the pieces of the application are designed to work together in concert, while still adhering to the principles of maintainability and extensibility of a modular design.

In this chapter, we will cover:

  • Base module and its design
  • Sandbox and the principles behind sandboxing of our components
  • Core and its related modules
  • Components and how they are added to the application
  • Plug-and-play, progressive enhancement, and graceful...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime