Chapter 5. Embracing modularity and dependency management

This chapter covers

  • Working with code encapsulation
  • Understanding modularity in JavaScript
  • Incorporating dependency injection
  • Using package management
  • Trying out ECMAScript 6

Now that we’re done with the Build First crash course, you’ll notice a decline in Grunt tasks, though you’ll definitely continue to improve your build. In contrast, you’ll see more examples discussing the tradeoffs between different ways you can work with the JavaScript code underlying your apps. This chapter focuses on modular design, driving down the code complexity of applications by separating concerns into different modules of interconnected, small pieces of code that do one thing well and are easily ...

Get JavaScript Application Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.