Fork me on GitHub

Primitive obsession anti-pattern

The primitive obsession is a kind of a smell that indicates poor code quality. We consider boolean, string, int, and float as primitive types in PHP. They are the building blocks you cannot avoid but they can be arranged into meaningful domain objects instead…

Primitive obsession anti-pattern on Medium.

Written on August 21, 2022