
TypeScript 4 Design Patterns and Best Practices
By :

SOLID is an acronym for the first five Object Oriented Priniciple (OOP) design principles: single responsibility principle, open-closed principle, Liskov substitution principle, interface segregation principle, and dependency inversion principle coined by Robert C. Martin in his 2000 paper Design Principles and Design Patterns, available at https://fi.ort.edu.uy/innovaportal/file/2032/1/design_principles.pdf.
These principles exhibit a strong correlation with OOP languages and how to structure your programs with maintenance and extensibility in mind. Adopting these practices can contribute to producing code that is easier to refactor and to reason about.
To start with, we'll take a deep dive into these principles with some representative examples in TypeScript, and we will then make some conclusions.
A class should have one, and only one, reason to change.
– Robert C. Martin
...