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

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
主站蜘蛛池模板: 白河县| 伊宁县| 新丰县| 临夏县| 革吉县| 连江县| 鹿泉市| 乐至县| 涿州市| 灵川县| 泾源县| 丹巴县| 报价| 成武县| 揭阳市| 朝阳县| 咸丰县| 镇康县| 翼城县| 蓬安县| 托克逊县| 二连浩特市| 六盘水市| 榆林市| 宜君县| 吴忠市| 密云县| 汤原县| 南城县| 温州市| 汉川市| 阳信县| 绥化市| 锦屏县| 扶风县| 通州区| 祁东县| 仁化县| 靖州| 罗江县| 四平市|