
TypeScript 4 Design Patterns and Best Practices
By :

In this last section, we will learn more about how to program with the concepts of functional and reactive programming in mind. We will explain function composition, immutability, and derived states, and continue exploring advanced functional structures such as lenses, transducers, and monads, which allow us to write composable abstractions. Next, we will introduce the significant concepts of reactive programming and establish the most effective practices for them.
The last two chapters deal with best practices and anti-patterns for developing modern applications. We will identify several concepts we can improve on. We'll learn first how to combine patterns such as Singleton and Façade to reuse the best parts of each pattern. We'll show what the utility types are and how to use them. We'll also take a brief look into domain-driven design and how it helps create better abstractions. In the last chapter, we'll...