Primitive Obsession
Primitive obsession occurs when developers use primitive data types instead of small custom classes or structured types. Primitive obsession prevents related logic from being co-located with the data concept it belongs to. Primitive obsess…
1 sources - 4 claims
Primitive obsession occurs when developers use primitive data types instead of small custom classes or structured types. Primitive obsession prevents related logic from being co-located with the data concept it belongs to. Primitive obsession can make a codebase fragile, hard to read, and difficult to extend over time. Primitive obsession forces readers to rely on context that is not captured in the code's types.