- TypeScript Design Patterns
- Vilic Vane
- 156字
- 2021-07-14 10:23:18
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
推薦閱讀
- C#程序設計實訓指導書
- Apache Spark 2.x Machine Learning Cookbook
- DevOps入門與實踐
- 實戰低代碼
- 小程序,巧運營:微信小程序運營招式大全
- Effective Python Penetration Testing
- Python Web數據分析可視化:基于Django框架的開發實戰
- HTML5+CSS3 Web前端開發技術(第2版)
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- Go語言開發實戰(慕課版)
- Java 9 Programming By Example
- Python函數式編程(第2版)
- Hack與HHVM權威指南
- 從零開始學UI:概念解析、實戰提高、突破規則