Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
A talk from RubyConfTH 2023, held in Bangkok, Thailand on October 6-7, 2023. Find out more and register for updates for our next conference at https://rubyconfth.com/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video features a talk by Radoslav Stankov at RubyConfTH 2023, where he discusses the use of the ViewComponent gem for creating a component-driven UI in Ruby on Rails applications. Stankov shares his journey from working on a social app called ProduHun to developing a SaaS tool named Angry Building, which he aims to transform into Happy Building. He emphasizes the importance of simplifying UI development by employing ViewComponents to encapsulate logic and improve developer experience. Key points covered in the talk include: - **Introduction to ViewComponent**: Developed by GitHub, ViewComponent allows developers to create encapsulated view classes, promoting better organization and maintainability. - **Getting Started**: Stankov highlights the straightforward implementation of ViewComponents, complemented by a preview system akin to Rails action mailers, allowing easy testing and visualization of components. - **Differentiating Components from Partials and Helpers**: He provides a mental checklist for deciding when to use components versus partials or helpers, noting that shared partials between controllers indicate a need for a component. - **Practical Code Examples**: Stankov presents several examples of UI components including a stats component for displaying numerical data, a filter form component that captures relevant parameters, and a page header component integrating breadcrumb navigation. - **Using Slots for Flexibility**: He showcases how slots within components can enhance reusability and flexibility by dynamically inserting other components and HTML. - **Managing Complexity**: The Talk emphasizes separating UI logic from domain-specific logic, using components to maintain clarity and consistency in applications. - **Conclusion**: Stankov concludes by asserting the value of ViewComponents in simplifying UI code and enhancing overall application architecture, encouraging developers to explore the benefits of this approach in their projects. This talk not only illustrates practical applications of the ViewComponent gem but also advocates for sustainable and manageable coding practices in modern web development, thereby fostering a more enjoyable developer experience.
Suggest modifications
Cancel