Data models in TypeScript, from primitive obsession to clean entities.

Alberto Basalo
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

Alberto Basalo

Advisor and instructor for developers. Keeping on top of modern technologies while applying proven patterns learned over the last 25 years. Angular, Node, Tests