Herbicide (with Marco Roth)

17/06/2025 29 min Episodio 45
Herbicide (with Marco Roth)

Listen "Herbicide (with Marco Roth)"

Episode Synopsis

In this episode of Dead Code, Jared talks with Marco Roth about Herb, a new fault-tolerant parser for HTML and ERB designed to improve the developer experience in the Rails ecosystem. Unlike tools like Deface or Nokogiri, Herb doesn’t auto-correct or mask errors—it parses templates exactly as written, enabling better diagnostics, formatting, and linting for server-rendered views, especially in Hotwire, Turbo, and Stimulus contexts. Built in C for portability and speed, Herb can be used across Ruby, JavaScript, and browsers via WebAssembly. Marco created it after running into limitations with existing tooling while building the Stimulus LSP. Future plans include deeper integration with tools like Ruby LSP and possibly enabling LiveView-style reactive rendering in Rails. Developers can try it today via a VS Code extension or the interactive web playground.Links:DefaceSpreeSolidusNokogiriRuboCopPrismHerbHerb PlaygroundHerb VS Code ExtensionHotwireTurboStimulusStimulusReflexPhoenix LiveViewRuby LSPEpisode 10 with Kevin Newton on PrismEpisode 38 with Carson Gross on HTMX Dead Code Podcast Links:MastodonXJared’s Links:MastodonXtwitch.tv/jardonamronJared’s Newsletter & WebsiteEpisode Transcript Hosted on Acast. See acast.com/privacy for more information.