Home Lex Fridman Notes
Lex Fridman · 2025-07-12 · 6h 08m

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.

The gist

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.

Big reveals

  • 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.

Things 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.

Recommended in this episode

Books, products and media the guest or host genuinely endorsed here — with the buy link.

Affiliate link — we may earn a commission at no extra cost to you.

Guest’s ownBook

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 00:01:32
Find it on Amazon
Guest’s ownBook

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 00:01:32
Find it on Amazon
Guest’s ownBook

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 00:01:32
Find it on Amazon
Guest’s ownBook

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 04:27:44
Find it on Amazon
RecommendedBook

Patterns of Enterprise Application Architecture

Martin Fowler

“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 02:13:00
Find it on Amazon
RecommendedBook

Flow: The Psychology of Optimal Experience

Mihaly Csikszentmihalyi

“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 03:03:15
Find it on Amazon
RecommendedProduct

Pagani Zonda

Pagani

“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 04:58:53
Find it on Amazon
RecommendedProduct

Lofree Flow 84

Lofree

“this lowprofile mechanical keyboard called the low free flow 84 which is just the most glorious sounding keyboard I've ever heard” — guest 05:05:40
Find it on Amazon
RecommendedProduct

Logitech MX Master 3

Logitech

“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 05:10:51
Find it on Amazon
RecommendedProduct

Apple Pro Display XDR

Apple

“Apple makes an awesome 6K 32-in XDR screen that I've still haven't found anyone who beaten that I still use” — guest 05:05:10
Find it on Amazon
RecommendedMedia

Fortnite

Epic Games

“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 04:30:51
Find it on Amazon