Think about a piece of code you:
Write it down.
We're going to work on that later!
Barry O Sullivan
Refactor a piece of code without worrying about it running.
The goal is to explore the code and gain understanding, not to write working code.
- See which concepts work and which don't
- Spotted what's muddying the water
- An idea on how to isolate concepts
- Able to plan an iterative step forward
public function save($class_name, $post, $id)
$rc = new \ReflectionClass("\\Elections\\". $class_name . "Director"); $director = $rc->newInstanceArgs(array($id));
Application / Domain
Increase Developer Knowledge by
Finding Consistent Patterns and
Diagnosing Accidental Complication
Through Scratch Refactoring