Traditional Gang of Four Abstract Factory classes in PHP often require five interfaces and six boilerplate classes just to instantiate the right parser for a file extension. First-class…
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…
Replacing virtual getter methods with PHP 8.4 property hooks makes data transfer objects and read models remarkably expressive. The trap is placing a dynamic instantiation inside a hook…
A profile taken specifically to check whether a year of converting methods to properties had a cumulative cost. A diffuse cost spread across two hundred call sites is…
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…