You did your best, but somehow that User object, over time, morphed into a monstrous God object. And your controllers started out nice and clean, but now... not so much. We've all been there. In this series, we'll review a number of ideas for whipping convoluted code into shape.
Overview
Syllabus
- Consider Form Objects
- Consider Use Cases
- Consider Domain Events
- God Object Cleanup #1: Pass-Through
- God Object Cleanup #2: Traits and Socks
- God Object Cleanup #3: Value Objects
- Consider Policies
- Consider Splitting Tasks into Steps
- Consider Strategizing
- Consider Normalizing
- Consider View Models
- Too Many Method Parameters is a Sign
- Consider Decorating
- Consider Fluent Interfaces
- Hands On Refactoring
- Staying True to the Seven Resourceful Methods
- Consider Query Objects
- Consider Refactoring Your Views
- Consider a Guest User Class
- Consider Wrapping it Up
Taught by
Jeffrey Way