In this workshop, we'll focus exclusively on the open-closed principle (the O in SOLID). Using real-life code, line by line, we'll refactor a confusing class into something far more manageable and extendable. Once finished, we'll have gained the luxury of introducing new functionality, not by modifying existing code, but by instead writing a new class.
Overview
Syllabus
- What We Are Refactoring
- Low-Hanging Refactors
- Remove Conditionals and Embrace the Pipeline
- Extract What Changes into a Service Provider
- Discussing Responsibility
Taught by
Jeffrey Way