Refactoring
Martin Fowler
http://martinfowler.com/books/refactoring.html
Slide 15
Slide 15 text
“Legacy”
/leɡəsē/
• Requires an EOL version of PHP
• No automated tests
• Has outdated dependencies
• No autoloading
• No sign of “single responsibility”
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
“Legacy”
We’ll assume
…means any code that
can be improved
(at least for this talk)
@SammyK #mwphp17 joind.in/talk/82979
Slide 18
Slide 18 text
Expectations
@SammyK #mwphp17 joind.in/talk/82979
Slide 19
Slide 19 text
elePHPant
How to eat an
Slide 20
Slide 20 text
ZERO
Step
@SammyK #mwphp17 joind.in/talk/82979
Slide 21
Slide 21 text
Around
Poke
@SammyK #mwphp17 joind.in/talk/82979
Slide 22
Slide 22 text
Around
Poke
• Composer &/or autoloading?
• Documentation? (Look for hidden docs!)
• Framework/Dependencies? (How out-dated?)
• How is database layer implemented?
• How is config handled?
• How are front-end assets handled?
• Are there tests?
• Production env (PHP version)