ViewComponents in the Real World - Joel Hawksley

Поділитися
Вставка
  • Опубліковано 17 тра 2021
  • With the release of 6.1, Rails added support for rendering objects that respond to render_in, a feature extracted from the GitHub application. This change enabled the development of ViewComponent, a framework for building reusable, testable & encapsulated view components. In this talk, we’ll share what we’ve learned scaling to hundreds of ViewComponents in our application, open sourcing a library of ViewComponents, and nurturing a thriving community around the project, both internally and externally.
  • Наука та технологія

КОМЕНТАРІ • 4

  • @SupeRails
    @SupeRails 2 роки тому +3

    33:44 we need more extractors! (people who extract cool stuff from existing apps and share it in public with the world)!

  • @konung5
    @konung5 2 роки тому +2

    HI. Interesting presentation. Thank you.
    However, I was wondering, why did you decide to implement ViewComponents, and not use and existing project like Cells gem?
    What are the benefits of using ViewComponent vs Cells or Hanami Views?
    P.S.:
    Cells has been around for ages - really solid, and fast. Tests are blazing fast, and it's been used in production by 100's of projects. And implemented a lot of the same ideas you mentioned.

  • @SupeRails
    @SupeRails 2 роки тому +2

    13:00 100 times faster than controller tests :)

  • @lukegordon4734
    @lukegordon4734 Рік тому

    On the off chance someone from this project has insight, how did they go about implementing `assert_query_counts` that they talk about at 15:00?