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

Chapter 2. The Challenge of Increasing Complexity

The essence of a program is the combination of possible branches and automated selections based on certain conditions. When we write a program, we define what's going on in a branch, and under what condition this branch will be executed.

The number of branches usually grows quickly during the evolution of a project, as well as the number of conditions that determine whether a branch will be executed or not.

This is dangerous for human beings, who have limited brain capacities.

In this chapter, we are going to implement a data synchronizing service. Starting by implementing some very basic features, we'll keep adding stuff and see how things go.

The following topics will be covered:

  • Designing a multi-device synchronizing strategy
  • Useful JavaScript and TypeScript techniques and hints that are related, including objects as maps and the string literal type
  • How the Strategy Pattern helps in a project
主站蜘蛛池模板: 陇南市| 宿州市| 新乐市| 麻江县| 辽中县| 濮阳市| 乐安县| 淄博市| 剑河县| 鹰潭市| 亚东县| 汝阳县| 将乐县| 富民县| 延长县| 钦州市| 宁强县| 论坛| 泸定县| 鄂尔多斯市| 平遥县| 宁陕县| 商洛市| 哈巴河县| 揭阳市| 郑州市| 民乐县| 土默特左旗| 浦城县| 留坝县| 瓦房店市| 米易县| 大同市| 三门县| 报价| 岱山县| 英吉沙县| 田阳县| 桦川县| 缙云县| 大荔县|