Think about a piece of code you:
Write it down.
We're going to work on that later!
Work Code
OSS Project
@barryosull
@barryosull
Barry O Sullivan
Developer
Knowledge
Useful
Abstractions
Accidental
Complication
x
%
(
)
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.
Refactor
Trash it
Factory
Service
Repo
Value
Object
Entity
Constraint
- 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));
Party
Director
Party
Builder
Party
Factory
Repo
Entity
Constraint
HTTP
Driver
Adapters
Driven
Adapters
Application / Domain
Scratch Refactoring
Increase Developer Knowledge by
Finding Consistent Patterns and
Diagnosing Accidental Complication
Through Scratch Refactoring
@barryosull