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

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
主站蜘蛛池模板: 乡宁县| 建宁县| 信阳市| 东乡族自治县| 鲁山县| 无锡市| 兰州市| 许昌县| 江孜县| 外汇| 万安县| 扶余县| 汕尾市| 浪卡子县| 白山市| 永胜县| 皋兰县| 长春市| 乌鲁木齐县| 忻州市| 前郭尔| 青田县| 昭苏县| 敦煌市| 镇平县| 广东省| 个旧市| 宁波市| 白银市| 永嘉县| 石狮市| 绥棱县| 交城县| 东安县| 宿松县| 宁城县| 桐梓县| 民勤县| 舞阳县| 乐山市| 河北区|