Data models in TypeScript, from primitive obsession to clean entities.
6 min readDec 22, 2022
--
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.
Linus Torvalds
Some solutions are unnecessarily complex. Other times they are applied out of place. I present to you a path of…