-
Book Overview & Buying
-
Table Of Contents
TypeScript 5 Design Patterns and Best Practices - Second Edition
By :
In this chapter, we provided a list of recommendations and best practices when developing large-scale TypeScript applications. Those practices stem from a combination of experience, traditional patterns, industry best practices, and recommended modern architectural practices. Making use of multiple design patterns makes those abstractions more flexible and dynamic.
Utility types provide several common and very useful type transformations to help us avoid code duplication when writing types. Understanding when and how to use DDD offers a robust architectural approach for how to design software applications. Additionally, leveraging the concepts of the SOLID principles can help create easier software designs to understand, maintain, and extend when implemented correctly.
Adopting the MVC architecture can greatly improve the organization and maintainability of your applications. MVC allows for a clear separation of concerns by dividing the application into three interconnected...