~/talk

Reformat, Refactor, Replace: A practical guide for dealing with legacy software

Talkat Laracon AU 2019 · on Thursday, 2019-10-31· [php]
slides:none on file

Practical playbook: enforce a style and CI rule that fails builds on PHP‑CS regression and marks files changed >20% for cleanup, run PHP‑CS‑Fixer then refactor into Composer/autoloaded namespaces, delete dead code, and split the monolith with a strangler‑fig approach starting with users. Concrete results: 1.5 million lines deleted in one commit, 9604 mysql_ references converted to PDO over six months*, tools used: PHP‑Stan, Psalm, Rector, PHPUnit; outcome is incremental safety and eventual replacement. Slides: https://laracon.com.au/slides/2019/samuel-levy.pdf

AI-written summary · about

  1. 0:00Start
  2. 3:51Secure Buying
  3. 4:59Ways To Secure Buy-In
  4. 12:34Namespace and Group Classes
  5. 13:59Split Monoliths into Smaller Pieces
  6. 17:35Replacing Legacy Software
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.