In Relentless Pursuit of REST
summary
Argues that following REST trims complexity by turning custom actions into concrete resources and small plain Ruby objects, using Rails routes and the resources helper, not magic DSLs. Shows concrete refactors: PasswordsController replacing edit_password/update_password, a small AddFeaturedFlag service object for featured photos, and a ShipmentsController replacing vague process actions. Moves behavior out of brittle 200–400 line state machines into testable services, produces smaller controllers, easier tests, simpler PRs, and fewer bugs.
AI-written summary · about
chapters (9)
- 0:00Welcome
- 3:59Why REST makes code better and jobs easier
- 5:08Anti-pattern: Custom actions
- 10:45Anti-pattern: Complex actions
- 17:17Anti-pattern: Ambiguous language
- 23:18State machines anti-pattern
- 28:26Domain interactions design
- 30:13Embrace CRUD and REST
- 33:24Q&A
related talks
39mExploring Rails anti-patterns
34mSimple and Elegant Rails Code with Functional Style
41mOff the Tracks - Challenging the Rails Mindset
40mWhat is REST? Why is it Part of the Rails Way?
38mRails hurts, because you're using it wrong. Let's fix that
01h 09mRails 3 ...and the real secret to high productivity
31mThe History of Rails in 10 Blog Posts
40mInto the Heart of Darkness: Rails Anti-Patterns
