After Jason talked about his side project last week, he tells us he had to abandon Stripe checkout and did something else instead, and Chris announced he just did a Stripe Checkout video for GoRails this week. Joining us on today’s episode, we have Joel Hawksley, an Engineer at GitHub and creator of ViewComponent. We learn what ViewComponents are, how Joel came up with the idea, and his latest experiment and vision for it, which is a big one. Joel tells us some ideas he has for Cuprite, and Andrew talks about how Percy is a nice tool to use. Also, for those of you who haven’t used the components library or maybe haven’t started thinking about building Rails apps in terms of components, Joel is here to help answer some questions Andrew has for him.
] Joel tells us about himself and what he does at GitHub.
] Find out what ViewComponents are and how Joel came up with this idea.
] Jason wonders if there are any experiments that Joel has tried that didn’t work out with ViewComponent or things that were experiments that were really successful. [00:10:52
] Joel fills us in on his latest experiment and his vision for it.
] Joel tells us about generating the styled component in React inline and he brings up a problem with view caching with styled components where he needs help from people.
] Andrew talks about a gnarly Tailwind class he did.
] Joel fills us in on some cool things they started experimenting with. He also mentions looking at Cuprite and having some wild ideas for it.
] Andrew and Joel chat about using Percy.
] Andrew asks Joel when to reach for the partial over the component.
] Since the last time they talked, Joel said that they had a lot of success in building components out of smaller components, and Andrew wants to know if this is still the case.
] Learn more about using partial components.
] Find out what Joel thinks makes a good component.
] Andrew asks Joel if some cool things he’s seen with ViewComponents that other people have done.
] Jason wonders if Joel has any predictions and where does he think this is going.
] Jason brings up ViewComponent and a PR that was opened to get it into Rails, and then he found out that it isn’t going to be put into Rails, and Joel explains in depth the reason behind this.
] RailsConf 2021 is coming up and Joel tells us what he’ll be talking about.
] Find out where you can follow Joel online.Panelists:
Jason CharnesChris OliverAndrew MasonGuest:
Joel HawksleySponsor:HoneybadgerLinks:Joel Hawksley Website The Ruby Blend Podcast-Episode 9: ViewComponent at GitHub with Joel HawksleyStripe Checkout in Rails with the Pay gem by Chis OliverReact on Rails-GitHubCSS encapsulation #677-GitHubStyled componentsCSS Modules-GitHubPrimer ViewComponentsCuprite-GitHubPercyRailsConf 2021