Workshop - Simplifying Code: Monster to Elegant in Less Than 5 steps
summary
Workshop shows four concrete refactorings with runnable Ruby/Rails exercises and Minitest checks: intentional revealing method, special case objects, replace method with method object, service objects. Steps are explicit — usually fewer than five edits — and each exercise lives in a repo branch with solution files. Patterns fix Fat Models, God Objects, long methods, nil NoMethodError and naming pain by extracting new classes/NullUser objects and one‑line delegations. Tests are required before changes and the extracted service/method objects are shown working against sample data.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:10Welcome
- 6:05Tutes story
- 9:08Four patterns
- 11:45Intentional Reading Method
- 18:07Sandy Metz
- 26:29Method Objects
- 27:50Create a new class
- 30:54Resources
- 31:12Service Objects
- 32:17Service
- 33:16Service Object
- 35:58Follow the rules
- 37:08Refactoring
- 38:12Meta professionals
related talks
33mSo You Want to Start Refactoring?
42mWorkshop / Taming Chaotic Specs: RSpec Design Patterns
34m"Taming your Rails monolith"
34mSimple and Elegant Rails Code with Functional Style
28mFluent Refactoring
28mRefactoring for Rails - using deodorant to prevent code smells
48mRefactoring from Good to Great - A Live-Coding Odyssey
01h 12mRuby Best Practice Patterns
