Blow Up Your Views
summary
Claims that Rails view templates are broken by instance variables and coupling and that replacing helpers with object decorators reduces complexity and coupling, demonstrated by a working gem Draper and adoption notes from Hashrocket and Podio. Shows a surprising internal view context of 51,000 characters and an observed ~8,000 objects per request, advocates using decent_exposure to expose methods instead of ivars and client rendering with handlebars to push formatting to the browser and shrink server work.
AI-written summary · about
chapters (12)
- 0:00The state of views
- 2:35Data coupling issues
- 5:15Responsibilities of MVC
- 7:28Using decent exposure
- 10:48The problem with helpers
- 15:42Introduction to decorators
- 20:11The Draper gem
- 20:46Views as API customers
- 22:37Client-side rendering
- 25:28Automatic flushing
- 28:19Summary and Q&A
- 32:41Live code demonstration








