Refactoring

2026


Date the bug before you park it: fence, drift or silence

A coding agent found a bug mid-refactor and parked it as a known issue with `@unittest.expectedFailure`. Two `git log -S` runs showed nobody had ever decided it, so it was fixed the same night. The obvious `.extend()` fix would have broken an alias. Includes the skill that does the dating.
·8 mins

2021


Keep the configuration out of the code

A C++ factory picked one of many Style subclasses through a growing if/else chain. The subclasses only returned fixed properties, so one JSON resource per configuration replaced the whole hierarchy.
·2 mins