O'Reilly logo

Mastering TypeScript by Nathan Rozentals

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 7. Modularization

Modularization is a popular technique used in modern programming languages that allows programs to be built from a series of smaller programs, or modules. Writing programs that use modules encourages programmers to write code that conforms to the design principle called "Separation of Concerns". In other words, each module focuses on doing one thing, and has a clearly defined interface. If we then consume this module by focusing on the interface, we can easily replace this interface with something else, without breaking our code. We will focus more on "Separation of Concerns" and other object-oriented design patterns in the next chapter.

JavaScript, in itself, does not have a concept of modules, but it is proposed for ...

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