Value-Objects

Primitive Obsession

A number without a unit is a guess. Learn to spot domain values hiding in primitives and give them small types that check once and are refused in the wrong place.

November 25, 20268 minutes