Code and the Coding Coders who Code it · Drew Bragg
What if you could keep Rails pages fast, accessible, and SEO‑friendly, yet still get modern interactivity without shipping a mountain of JavaScript? We sit down with Cameron Dutro to unpack Live Component, a server‑first approach that breathes life into ViewComponent by treating state as data, rendering on the server, and morphing the DOM with Hotwire. No fragile ID wiring. No React by default. Just clear state, small payloads, and focused updates. We trace the path that led here: experiments rendering Ruby in the browser with Ruby.wasm, Opal, and even a TypeScript Ruby interpreter, and why those payloads and debugging pain pushed the work back to the server. Cameron explains the Live Component mental model—initializer‑defined state, slots, and a sidecar Stimulus controller—plus how targeted re‑renders make forms and micro‑interactions feel instant. We talk transports (HTTP vs WebSockets), serialization best practices for Active Record data, and where React still shines for high‑intensity builders and editors. Beyond the code, we dig into the bigger web story: how DX‑first choices often punish users on slower devices and networks, and why a balanced, server‑driven approach can close that gap. You’ll hear real‑world tradeoffs, debugging techniques that feel like home to Rails devs, and a clever fix born from a Snake game that surfaced timing issues and led to a preempt option for queued renders. If your team wants dynamic islands without adopting a full SPA, this conversation offers a practical roadmap. Explore Live Component at livecomponent.org and the GitHub org at github.com/livecomponent. If this resonated, follow, share with a Rails friend, and leave a review so more builders can find it. Send us some love. Honeybadger Honeybadger delivers best-in-class error tracking, intelligent logging, and Just Enough APM™. Judoscale Autoscaling that actually works. Take control of your cloud hosting. Disclaimer: This post contains affiliate links. If you make a purchase, I may receive a commission at no extra cost to you. Support the show
0:00SPEAKER_01Hello everyone and welcome to another episode of Code and the Coding Coders Who Code It.
0:04SPEAKER_01I'm your host, Drew Bragg, and I'm joined today by Cameron Dutro.
0:07SPEAKER_01Cameron, for anyone who's not familiar with you, would you please do a quick introduction for the listeners?
0:12SPEAKER_00Big fan of the show, so thanks for having me on.
0:14SPEAKER_00Yeah, I'm Cameron Dutro.
0:15SPEAKER_00I work on the Core Dashboard team at Cisco Meraki and have been working with Ruby on Rails and Ruby more generally for the last 15, 16 years.
0:25SPEAKER_00Started out at Twitter working on the Translation Center, which is a Ruby app or a Rails app, and then just have kind of stuck with it since then and excited to chat with you today.
0:34SPEAKER_01Anyone who is new to the show, the way this is going to work is I'm going to ask Cameron three questions.
0:39SPEAKER_01There will be more, but three basic questions.
0:42SPEAKER_01What are you working on?
0:43SPEAKER_01What kind of blockers do you have?
0:45SPEAKER_01What's something cool, new, or interesting you want to share with the audience?
0:49SPEAKER_01Doesn't have to be coding related, but it is code and the code encoders, etc.
0:54SPEAKER_01So it absolutely can be code related.
0:56SPEAKER_01So, Cameron, what are you working on?