Encapsulating Views by Joel Hawksley
Unlike models and controllers, Rails views are not encapsulated. This makes them hard to reason about and difficult to test, leading us to use abstractions such as presenters and decorators. In this talk, we'll explore the inner workings of how Rails compiles and executes views today, the lessons we've learned building encapsulated views at GitHub over the past year, and how you can do the same with the support for 3rd-party component frameworks coming in Rails 6.1.
__________
Joel is a software engineer at GitHub. He works on the Design Systems team, leading the development of ViewComponent.
Watch video RailsConf 2020 CE - Encapsulating Views by Joel Hawksley online, duration hours minute second in high quality that is uploaded to the channel Confreaks 04 May 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 7,492 times and liked it 206 visitors.