- 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
推薦閱讀
- Java應用開發與實踐
- Mastering Kotlin
- Learning AWS Lumberyard Game Development
- Java:Data Science Made Easy
- Java面向對象程序開發及實戰
- Building Mapping Applications with QGIS
- Python數據可視化之Matplotlib與Pyecharts實戰
- Node Cookbook(Second Edition)
- Oracle實用教程
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Get Your Hands Dirty on Clean Architecture
- LabVIEW入門與實戰開發100例(第4版)
- JavaScript Unit Testing
- Python AI游戲編程入門:基于Pygame和PyTorch
- MATLAB/Simulink建模與仿真