O'Reilly logo

hapi.js in Action by Matt Harrison

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. Building modular applications with plugins

This chapter covers

  • Defining plugins and why you should use them
  • Creating and loading plugins
  • Building applications in a modular way using plugins
  • Communicating and sharing data between plugins

When building software we strive for modularity at many different layers. We package reusable statements into functions and functions into modules and classes. More recently we’ve started using tools like Browserify and React to split our front end into modules and components too.

Modularizing helps us to draw a line around something and says this does X, without anyone else (or our future selves) having to worry about how it does X. When working on a modular application, the cognitive load ...

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