DHH argues Ruby's human-first design and 90s simplicity beat complexity, and Rails scales to Shopify.
DHH points to Shopify: on Black Friday it served about one million dynamic requests per second, and it runs roughly 30% of all e-commerce stores on the internet, on Rails, without static typing. Its monolith is around five million lines of code. The hard part of scaling there, he says, is MySQL, not the language.
Answered around 1:20:26It is adding keywords to the language, like 5.days. In Active Record, the part of Rails that talks to the database, each table is a class: class User descends from ActiveRecord::Base, then has_many :comments sets up the relationship and hands you access and factory methods. has_many looks like a Ruby keyword but is not one.
Answered around 1:09:53It makes metaprogramming harder; he pulled TypeScript out of Turbo, one of their front-end frameworks, after trying to write metaprogramming in it. It also forces repetition: declaring User user = new User() types user three times. The tooling and autocomplete arguments do not move him; he catches bugs with unit and integration testing.
Answered around 1:13:38Aesthetically. Python's initializer is def, underscore underscore init underscore underscore, parentheses, self, comma, which DHH finds offensive. Ruby writes def initialize, often with no parentheses at all, no semicolons, and allows user.downgrade unless user.admin?. That question mark means nothing to the computer; it exists purely so the line reads like human language.
Answered around 53:24He gave himself two weeks to write a proof of concept: talk to a database, pull some records, format them, and display them on an HTML page. It took about one weekend. He was completely mesmerized, saying Ruby was made for his brain like a perfectly tailored glove by someone he had never met.
Answered around 50:46Their PHP client projects all started over email, and weeks later a new person had none of the context, while the latest file sat on FTP as final final V06 2.0. They had dropped the ball with customers a couple of times, so they built one page holding everything a project needed, simple enough to need no seminar.
Answered around 46:51In a separate window; he will not let it drive his code, having tried the cursors and windsurfs. Writing his Ubuntu remix in Bash, he kept asking AI for the same conditional and realised he was using it without learning it. He does the typing himself, the way guitar requires fingers on the strings.
Answered around 1:35:07DHH calls it a disaster. He is sympathetic to the antitrust fight generally, but says browsers are the one place without a monopoly problem: Firefox exists, Apple has Safari, and nobody is forced through Chrome. The real targets, he argues, are Google's control of both sides of the ad ledger and mobile toll booths.
Answered around 37:03The GDPR's good intentions produced banners everyone on the internet hates, that make nobody more efficient, save no privacy in any form, and enrich only lawyers, accountants and bureaucrats. The legislation is ten or twelve years old, a failure on every conceivable metric, and still cannot be repealed, which he calls a bankruptcy declaration.
Answered around 39:27Back in 2001 Jason asked a PHP question on the internet, and DHH, a kid in Copenhagen who had spent about eighteen months building gaming websites in PHP unpaid, emailed the answer to Chicago to a man who did not know him. It became paid work, and they are still partners 24 years later.
Answered around 45:38“In many ways, I think the pinnacle of web developer ergonomics is late 90s PHP.”
“It's a monument to good intentions leading straight to hell.”
“That his number one goal was programmer happiness.”
“It is the Coco Chanel of programming languages,”
“Lex AI DHH David Heinemeier Hansson.” https://media.blubrry.com/takeituneasy/content.blubrry.com/takeituneasy/lex_ai_dhh_david_heinemeier_hansson.mp3. Transcript summary by WhipScribe, https://whipscribe.com/transcript-pages/lex-ai-dhh-david-heinemeier-hansson.html.