Code and the Coding Coders who Code it · Drew Bragg
Marco Roth joins us to unveil Herb, his revolutionary toolchain for Rails views that's reshaping how we work with HTML and ERB. Having identified a critical gap in the Rails ecosystem—robust tooling for the view layer—Marco decided to build the solution himself, learning C along the way to create a parser with unparalleled cross-platform compatibility. Far from just another syntax checker, Herb represents a comprehensive vision for modernizing Rails views. Marco walks us through his layered approach, starting with immediate editor feedback for markup errors and ambitious plans for reactive views inspired by Phoenix LiveView. The most exciting prospect? Allowing developers to write modern, interactive applications without abandoning Ruby for JavaScript frameworks. "I want to bring back some awesome experiences from JavaScript to the Rails ecosystem so we can keep doing Ruby," Marco explains, highlighting how Herb could transform ActionView after two decades of relative stagnation. We also explore Marco's approach to managing multiple ambitious projects alongside a consulting career, his upcoming conference schedule (including RailsWorld, FrienlyRB, and Euruko), and his work on Ruby Events—a catalog of over 7,000 Ruby talks that serves as an invaluable community resource. Marco shares insights into his development process, the challenges of mapping tag helpers to HTML, and his recent implementation of Tailwind class sorting in the Herb formatter. Whether you're frustrated with Rails' front-end limitations or simply curious about innovative tools reshaping the Ruby ecosystem, this conversation offers a fascinating glimpse into the future of web development with Rails. Marco's work reminds us that with the right tooling, we can build modern, reactive applications while maintaining the developer happiness that drew us to Ruby in the first place. 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:01Speaker 1Hello everyone, Welcome to another episode of Code and the Coding Coders who Code it.
0:04Speaker 1I'm your host, Drew Bragg, and I'm joined today by the one and only Marco Roth.
0:08Speaker 1Marco, for anyone who somehow is not familiar with your work, would you please do a brief introduction?
0:15Speaker 2Yeah, my name is Marco.
0:16Speaker 2I have been doing Rails for the past decade or so and over the last few years I've been focusing a lot on open source and now conference talks, and I've been mostly dabbling in the Hotwire and JavaScript ecosystems and have it be more to what I like to write myself.
0:35Speaker 2So I don't have to go into the deep rabbit holes of SPAs and React and all of these kind of stacks.
0:41Speaker 2But that's what I want to do.
0:43Speaker 2I want to just bring back some of these awesome experiences that we have in JavaScript back to the Rails and Ruby ecosystems so we can keep doing Ruby and Rails for the time being.
0:54Speaker 1Awesome.
0:54Speaker 1So the way this episode is going to work for anyone new to the show is I'm going to ask Marco three questions.
0:59Speaker 1I'm going to ask him what he's working on, what kind of blockers he has.
1:02Speaker 1If he doesn't have a current blocker, he can talk about a recent one he had, the steps he took to solve it, etc.
1:08Speaker 1And then, to wrap up the show, we'll ask him what's something cool, new or interesting that he's recently learned or discovered or built.
1:16Speaker 1It doesn't have to be coding-related, but this is Code Encoder, so it totally can be.
1:20Speaker 1So, margo, you are a busy man with a lot of things going on, but when someone asks you what you're working on, how do you answer it?