Concerns, Decorators, Presenters, Service Objects, Helpers, Help Me Decide!
summary
Shows concrete refactors on a microblog app: moves email and finder code into concerns, pushes presentation HTML+URL logic into Draper decorators, collapses many controller instance variables into a single presenter object, and experiments with a micropost create service object then abandons most of that work in favor of model validations. Code lives on GitHub, tests and pull requests verify the changes, and RubyMine with VIM bindings speeds the refactor.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:57Organizational Conventions Matter
- 10:26Scenario
- 11:51Concerns: How
- 15:11Draper Decorators: Alternatives
- 18:58Business Case
- 20:01Service Objects?
- 20:21Service Objects Example
- 22:33Single Purpose Controller








