- 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
推薦閱讀
- Spring 5.0 By Example
- 數據庫系統原理及MySQL應用教程
- 微服務設計原理與架構
- Reactive Programming With Java 9
- Java EE 8 Application Development
- 軟件品質之完美管理:實戰經典
- PLC應用技術(三菱FX2N系列)
- Practical Game Design with Unity and Playmaker
- Scratch3.0趣味編程動手玩:比賽訓練營
- 智能搜索和推薦系統:原理、算法與應用
- Application Development with Parse using iOS SDK
- Learning Grunt
- Julia High Performance(Second Edition)
- SQL Server on Linux
- Java核心編程