官术网_书友最值得收藏!

Chapter 1. What Are Modules and Their Advantages?

In this very first chapter, I will provide you with an overview of the modular design approach in application development as it relates to JavaScript applications.

I will also mention parallels between the modular style of application architecture and the real-life examples of this conceptual design.

Hopefully, as you read along, you'll be able to relate to at least some aspects of the modular design approach and start to see why this style of organizing your code can be extremely beneficial.

The main objective of this chapter is to create a familiar context for you, and to get you started on thinking the modular way as you create and organize your code. Soon, you will see that this approach can organically grow into a well-defined application architecture methodology.

We will start the chapter with a brief discussion on how we can organize our code based on specialization. Then we will look at how we can define modules based on the functionality that they provide.

The topics that are covered in this chapter are:

  • The simple rule to creating modules
  • A real life example of modules
  • A look at a non-modular example
  • Re-factoring into a more modular approach
  • Designing in a modular way
主站蜘蛛池模板: 广西| 万全县| 芮城县| 铜川市| 门头沟区| 繁昌县| 虹口区| 河东区| 临沧市| 女性| 永德县| 平邑县| 东海县| 嘉祥县| 广东省| 东宁县| 轮台县| 监利县| 昌江| 龙口市| 灵寿县| 永修县| 揭西县| 冕宁县| 图片| 榆中县| 诏安县| 台前县| 宾川县| 犍为县| 淮阳县| 醴陵市| 上饶市| 新巴尔虎右旗| 五峰| 鹿邑县| 云梦县| 沅陵县| 库伦旗| 博兴县| 海晏县|