~/talk

ViewComponents in the Real World

Talkat rubyday 2021 · on Wednesday, 2021-04-07· [ruby-on-rails, ruby]
slides:none on file

Claims that ViewComponent makes view code reusable testable and encapsulated get concrete: Rails 6.1 support for renderable objects, a custom ERB annotator, a System-test conversion shim, and a command-line viewfinder tool for tracing templates. Results include 100x faster tests versus controllers, a 15× growth in components, automated linters that block regressions, an N+1 fix saving ~100ms, and CI matrix builds that combine coverage to enforce 100% coverage. Watch for code, tools, numbers, and what actually changed.

AI-written summary · about

  1. 0:00ViewComponents at GitHub
  2. 2:36Design system at scale
  3. 5:00Identifying templates with HTML
  4. 7:06Controller to system tests
  5. 9:58Tracking template usage
  6. 16:20Missing abstraction in Rails
  7. 17:44ViewComponents in Rails
  8. 19:57Consistency with ViewComponents
  9. 21:00Performance in views
  10. 23:08Mailers with ViewComponents
  11. 25:14Slots for complex layouts
  12. 29:05Storybook for components
  13. 30:29Rollout strategies
  14. 33:16Documenting ViewComponents
  15. 36:10Linters and RuboCop
  16. 37:56Team rollout experience
  17. 40:06Open sourcing lessons
  18. 42:58Rails conventions
  19. 45:05Rails and Ruby innovations
  20. 47:52Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.