Taming legacy (on a live project)
summary
Claims that gradual refactoring plus measurable gates lets a live product keep shipping: CI metrics track counts like legacy templates vs twig templates and number of child classes of legacy controllers, plotted over time so regressions are visible; merge conflicts consume under 1% of an iteration when rules are followed, with occasional spikes to ~2–4% when rules are broken. Technique is to install Symfony alongside, use service decoration and facades, bridge the ORM with Doctrine data mappers and hydrators, and open‑source the resulting bundles.
AI-written summary · about
chapters (14)
- 0:00Introduction to legacy refactoring
- 1:06Project constraints and legacy challenges
- 3:15Refactoring strategy and iterations
- 5:02Stopping legacy creation with metrics
- 7:52Measuring legacy with static analysis
- 9:41Defining legacy and good practices
- 11:06Small steps and low-hanging fruit
- 12:28Introducing Symfony alongside legacy
- 14:15Breaking Doctrine dependency
- 17:55Open-sourcing refactoring tools
- 18:38Refactoring goals and risks
- 18:58Synchronizing teams with merge policy
- 20:24Merge conflicts and team discipline
- 22:30Key lessons and conclusions
