Home Lex Fridman Episode
Lex Fridman · 2025-07-12

DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting | Lex Fridman Podcast #474

Ruby on Rails creator DHH on programming aesthetics, AI, leaving the cloud, fighting Apple, small teams, racing, and family.

DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting | Lex Fridman Podcast #474
The guest

David Heinemeier Hansson (DHH): Creator of the Ruby on Rails web framework and co-owner/CTO of 37signals (Basecamp, Hey). He is a New York Times best-selling author with Jason Fried and a class-winning Le Mans 24-hour endurance race car driver.

What this episode covers

DHH traces his path from failing to learn programming three times as a kid to discovering PHP and then falling in love with Ruby, explaining at length why he values beautiful, human-readable code, dynamic typing, and metaprogramming. He walks through the Rails doctrine (convention over configuration, the integrated monolith, optimizing for programmer happiness) and argues small teams beat large ones, that managers and microservices are usually unnecessary, and that productivity matters far more than raw compute cost. He shares his contrarian moves: leaving AWS to run his own hardware and save millions, and going to war with Apple over the 30% App Store cut. The conversation ranges widely into AI and the future of programming careers, the WordPress/WP Engine open-source dispute, his Le Mans racing career, and reflections on money, marriage, and fatherhood as the things that actually matter.

Recommended on this episode

BookRecommendedISBN verified

Patterns of Enterprise Application Architecture

Martin Fowler

“one of the greatest books... you must pick it up immediately”
“one of the greatest books for anyone working on business systems and if you had not read it you must pick it up immediately”— guest
BookRecommended

Flow: The Psychology of Optimal Experience

Mihaly Csikszentmihalyi

“I was really lucky to read the book Flow”
“I was really lucky to read the book Flow by Mihi Chicken Mihayi early on... his main work over his career was essentially the concept of flow”— guest
ProductRecommended

Pagani Zonda

Pagani

“The greatest car for me of all time”
“The greatest car for me of all time is the Pagani S... It's truly a masterpiece that stood the test of time... I'm never ever going to sell it.”— guest
ProductRecommended

Lofree Flow 84

Lofree

“the most glorious sounding keyboard I've ever heard”
“this lowprofile mechanical keyboard called the low free flow 84 which is just the most glorious sounding keyboard I've ever heard”— guest
ProductRecommended

Logitech MX Master 3

Logitech

“which I love how it feels in my hand”
“I use a uh Logitech uh what's it called? The MS3 mouse which I love how it feels in my hand. I don't love how it looks.”— guest
ProductRecommended

Apple Pro Display XDR

Apple

“an awesome 6K 32-in XDR screen that I've still haven't found anyone who beaten”
“Apple makes an awesome 6K 32-in XDR screen that I've still haven't found anyone who beaten that I still use”— guest
MediaRecommended

Fortnite

Epic Games

“I really love Fortnite. It's a phenomenal game.”
“I have a thousand hours logged in Fortnite since 19, I think, all of it with my kids... I really love Fortnite. It's a phenomenal game.”— guest

The guest's own work

BookBy the guestISBN verified

Rework

Jason Fried and David Heinemeier Hansson

“he is a New York Times best-selling author together with his co-author Jason Frerieded of four books rework remote getting real and it doesn't have to be crazy at work”— Lex Fridman
BookBy the guest

Remote

Jason Fried and David Heinemeier Hansson

“author together with his co-author Jason Frerieded of four books rework remote getting real and it doesn't have to be crazy at work”— Lex Fridman
BookBy the guest

Getting Real

37signals (Jason Fried and David Heinemeier Hansson)

“of four books rework remote getting real and it doesn't have to be crazy at work”— Lex Fridman
BookBy the guestISBN verified

It Doesn't Have to Be Crazy at Work

Jason Fried and David Heinemeier Hansson

“This is one of the key points we make in it doesn't have to be crazy at work, the latest book we wrote, is that there's enough time.”— guest

Also referenced (named, not recommended)

BookReferenced

Learn to Program

Chris Pine

“There's a book called learn to program by pine that uses Ruby essentially to just teach basic programming principles that I've seen heavily recommended.”— guest
BookReferencedISBN verified

Man's Search for Meaning

Viktor Frankl

“man's search for meaning. Victor Frankle talks about this as well that we can endure any hardship if there is a reason why”— guest
ProductReferenced

Apple Magic Keyboard

Apple

“I used to defend the Apple Magic Keyboard. Like it's it's great. It's actually a great keyboard.”— guest
ProductReferenced

Apple Magic Mouse

Apple

“I actually was a magic mouse stand for the longest time. I thought it was genius that Apple integrated the trackpad into a mouse... that magic mouse is beautiful”— guest
MediaReferenced

Metropolitan Street Racer

Bizarre Creations

“Metropolitan Street Racer on the Dreamcast was one of those games that really sucked me into... It's just a great game.”— guest
MediaReferenced

Gorilla Tag

Another Axiom

“My oldest loves playing Gorilla Tag... That's basically the hottest VR game. Wonderful. That's great.”— guest
MediaReferenced

The Lawnmower Man

Brett Leonard

“in 95, one of my favorite movies, one of my favorite bee movies came out. The Lawn Mower Man. Incredible movie about virtual reality”— guest
MediaReferenced

Chimp Empire

Netflix

“when I watched the Netflix documentary Chimp Empire and how, you know, there's a hierarchy of chimps, all of that looks eerily similar to us humans”— Lex Fridman
ProductReferenced

Claude Code

Anthropic

“When I use uh Claude's code, the terminal version of uh Claude, which is actually my preferred way of using it, I just I get too impatient.”— guest

Big reveals from this episode

  • DHH was first hired as a professional programmer by Jason Fried in 2001 after answering a PHP question Jason posted online; the first version of Basecamp took him just 400 billed hours to build solo.
  • On Black Friday, Shopify (running on Ruby and Rails) handled about 1 million dynamic requests per second, which DHH cites as proof that Ruby's dynamic typing scales.
  • DHH moved seven major 37signals applications out of AWS in just over six months, cutting infrastructure spend by half to two-thirds (a projected ~$10 million savings over five years) without hiring a single extra person.
  • When 37signals launched Hey, Apple approved the app then demanded 30% of all signups or removal; DHH refused and went public the week before WWDC, forcing a truce.
  • DHH credits Tim Sweeney and Epic, who spent over $100 million in legal fees, for the only serious legal wound inflicted on Apple's App Store model, enabling apps to link out for direct billing.
  • Jeff Bezos invested in Basecamp by buying secondary shares directly from DHH and Jason (none of the money went into the company), giving them the security to turn down venture capital.
  • DHH publicly weighed in against WordPress founder Matt Mullenweg's battle with WP Engine, arguing you cannot give away open-source gifts and then demand a cut of others' success after the fact.
  • The year before DHH's class win, a fellow Danish driver in the same car died at Le Mans after hitting a tree at full speed and pulling 90 Gs.

Worth remembering

  • At age 14, DHH ran a bulletin board system from his Copenhagen bedroom with three telephone lines, trading pirated software and demo-scene releases.
  • DHH discovered Ruby around 2003 through articles by Dave Thomas and Martin Fowler, who used it as pseudo-code; he found Ruby had existed since 1993, created by Matz, whose number one design goal was programmer happiness.
  • The Shopify monolith is about 5 million lines of code; DHH estimates the same logic in Go or Java would have been 25 to 50 million lines.
  • Basecamp and Hey are each just over 100,000 lines of Ruby code, with Basecamp spanning roughly 420 screens.
  • Gmail ships about 28 megabytes of uncompressed JavaScript; when Hey launched it shipped only 40 kilobytes solving the same email-client problem.
  • DHH notes Apple's board has an average age around 75 and its executive team is above 60, arguing this makes them slow to adapt to AI.
  • DHH cites John Carmack's id Software, where about eight people with essentially no managers created Quake, as evidence great innovation comes from tiny teams.
  • DHH has logged about 1,000 hours in Fortnite since 2019, almost all of it playing with his kids.
  • After leaving Apple, DHH switched to Linux (Ubuntu-based 'Omakub'), a Lofree Flow 84 mechanical keyboard, and Neovim with LazyVim, replacing his beloved 20-year editor TextMate.
  • DHH bought his server fleet from Dell, and uses a 'white glove' data-center company (Summit, formerly Deft) so no one from 37signals physically touches the hardware.