Relational databases designed in the 2000s often included separate lookup tables for every possible status: user_statuses, invoice_statuses, ticket_priorities, requiring foreign keys and joins on every query. Storing varchar…
Twelve months ago we converted forty aggregate roots from boilerplate getter methods to PHP 8.4 asymmetric visibility. At the time it felt like an unambiguous cleanup: deleting twenty-four…
A status removed from an enum, and eleven thousand rows still holding its value. Removing an enum case is a schema change disguised as a code change, and…
A catch block added in 2021 for an error that has not occurred since, swallowing a different one. A catch of Throwable is a decision that every possible…
Eight single-property wrappers over a string, none of which validated anything. A value object with no invariant is a type alias that PHP does not have, and the…
A value object made readonly in 2022, and the requirement in 2026 that would have broken a mutable one. The property that mattered was not thread safety or…