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

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
主站蜘蛛池模板: 武强县| 梅河口市| 阿城市| 军事| 抚远县| 雷州市| 宜章县| 毕节市| 正安县| 安多县| 大新县| 黎川县| 太保市| 台湾省| 玉龙| 白朗县| 洪湖市| 长泰县| 阿拉善盟| 吴桥县| 犍为县| 遂昌县| 故城县| 沂水县| 白沙| 长武县| 弋阳县| 南汇区| 安多县| 延边| 永春县| 丹寨县| 运城市| 洛阳市| 会理县| 西吉县| 赞皇县| 安化县| 秦安县| 旅游| 巴林右旗|