Views, from the top
summary
Proposes a concrete view system built as a Ruby gem used in production at Icelab; it adds explicit exposures, automatic parts decoration, scopes for partials and a shared context; templates still use Slim; views are objects with injected dependencies, immutable, and unit-testable; the implementation is about 900 lines of Ruby; the claim is six focused facilities replace helpers and clutter and they work on real projects and integrate with dry-rb and Hanami.
AI-written summary · about
chapters (14)
- 0:00Start
- 2:49Server-rendered views
- 3:00Things are out of hand
- 5:54It's too hard to write good view code
- 6:13Let's build a better view system
- 17:22Template & partials - markup
- 17:51Views are complex
- 18:13Minimum viable views
- 18:28Making the easy thing
- 19:20Separation of concerns Encapsulation Immutability
- 19:35Encapsulation Immutability Testability
- 20:10Better OOP = Better views
- 20:25Better OOP = Joyful views
- 20:53Better apps Better Ruby








