Data models in TypeScript, from primitive obsession to clean entities.
Data is the raw material of our programs. We must pay attention to its definition, cohesion, and correctness. Often we find information that is scattered, redundant, or missing. This leads us to dirty and error-prone developments.
Bad programmers care about the code. The good ones care about data structures and their relationships.
Some solutions are unnecessarily complex. Other times they are applied out of place. I present to you a path of…