DHH’s new way of writing code
The Pragmatic Engineer
68,991 views • 2 days ago
Video Summary
The video explores how AI agents are revolutionizing software development, enabling individuals and smaller teams to tackle projects previously considered impossible. David Heinemeier Hansson (DHH) shares his journey from skepticism to embracing AI, highlighting how enhanced tools have led to increased ambition and productivity. He emphasizes the continued importance of craft, aesthetics, and thoughtful design in software development, even with AI's capabilities. The discussion also touches on the evolving role of designers and the potential shift in demand for software engineers, suggesting that those who excel in complex system building, possess good judgment, and understand business needs will be most valuable.
A particularly striking insight is the realization that AI is not just about automating existing tasks but about unlocking entirely new avenues of exploration and creation. This "exploding pie" of possibilities allows for ventures into projects, like optimizing the fastest 1% of requests (P1), that were previously deemed impractical or too costly, ultimately reshaping the landscape of software engineering and innovation.
Short Highlights
- Software engineering is viewed as a craft, where aesthetics and beauty often correlate with correctness, as seen in mathematics and physics.
- AI agents have enabled ambitious internal projects that were previously unconceplable, such as optimizing the fastest 1% of requests (P1).
- Ruby on Rails and Amachi are well-suited for agent workflows due to their token efficiency and readability of generated code.
- Designers at 37 Signals are integrated into the product development process, acting as product managers and implementers, not just visualizers.
- The advancement of AI models like Opus 45 and agent harnesses has transformed the development workflow, making "agent-first" the new paradigm for starting projects.
- The cost of exploring new ideas and hunches has dramatically decreased, leading to increased ambition and the tackling of previously unconsidered projects.
- A significant shift is occurring where senior developers are experiencing substantial productivity gains (5x-10x) by leveraging AI agents, changing their role from direct implementers to high-level overseers and validators of AI-generated code.
- The definition of a "great programmer" is evolving, with emphasis shifting from pure implementation skills to understanding complex systems, possessing taste, business acumen, and the ability to work with AI.
- The speaker believes we are nearing "peak programmer" in terms of the number of individuals needed for equivalent output, but the demand for highly skilled, adaptable engineers who can leverage AI and manage complex systems will remain.
- The core drive for many, including the speaker, remains a deep love for computers and building things, amplified by AI's ability to make this pursuit more exciting and productive.
Key Details
Software as a Craft and the Pursuit of Truth [0:04]
- Aesthetics are deeply valued, with the belief that beautiful code is likely correct, drawing parallels to principles in mathematics and physics.
- The impact of AI is being explored, particularly in enabling work that would not have been undertaken otherwise.
"When something is beautiful, it's likely to be correct."
The AI Revolution and a 180-Degree Turn [0:17]
- The speaker, David Heinemeier Hansson (DHH), initially expressed skepticism about AI coding tools on a podcast six months prior.
- Over winter break, DHH experienced a significant shift, adopting an "AI-first" approach to his work.
- AI tools are now making his team more ambitious than ever.
"What have changed is..."
Building Software and the AI Advantage [1:08]
- DHH, creator of Ruby on Rails and co-founder of 37signals, is now embracing AI agents for software development.
- The current conversation focuses on how DHH and his team build software with AI, and why Ruby on Rails and Amachi are well-suited for agent workflows.
- Taste, beautiful software, and quality craftsmanship are becoming increasingly important, with skilled designers and engineers in high demand.
"And how AI tools are making them more ambitious than ever before."
From Scratch to Distribution: The Amachi Project [2:31]
- DHH started building on the internet in 1994 and has been continuously building ever since.
- Amachi, a new Linux distribution, was conceived as a summer project during downtime from racing.
- Despite a crowded Linux market, Amachi found success by offering a unique "spin" and resonating with users who appreciate its specific design.
"There's room for something new and it's a great reminder that all the ideas in the world may be taken and it doesn't matter because your spin on it isn't."
Scratching an Itch: The Genesis of Ruby on Rails [4:09]
- Ruby on Rails was born out of DHH's need for better tooling for web applications when he started building Basecamp in 2003, as existing Ruby lacked such frameworks.
- The philosophy of scratching one's own itch has led to successful projects that resonate with a larger community.
- Amachi, in just over six months, has attracted 400 contributors and tens of thousands of users.
"With with Rails, you were literally scratching your own itch."
Business Built on Passion: 37signals and Linux [6:54]
- 37signals has built its business for over 20 years on Ruby on Rails.
- The company now runs Linux on the majority of developer machines due to their own distribution, Amachi.
- A deliberate shift was made from an open choice for developers to standardize on Linux for technical roles, aligning with the production environment.
"So we pivoted from an early invitation to play around that was what when I first switched to Linux just said like hey if you want to check it out check it out."
The Genesis of Basecamp and Hey.com [8:38]
- 37signals was founded in 1999, evolving from a web design firm to a software company with the launch of Basecamp in 2004.
- Basecamp remains their most important product, a testament to the power of a strong initial idea.
- Hey.com, an email service launched in 2020, aimed to challenge Gmail's dominance by addressing user frustrations with existing email systems.
"And that's now 22 years ago, a little more than that."
The Apple Battle and Hey's Success [12:02]
- Hey.com faced significant challenges with Apple's App Store approval process, demanding a 30% toll fee.
- Despite initial resistance, a resolution was reached, allowing Hey.com to launch and ultimately become an enormous success, ironically boosted by the media attention Apple's actions generated.
- The core mission of Hey.com was to make email "lovable again" by providing a more controlled and pleasant inbox experience.
"And ultimately they didn't want to approve your your app unless we paid the toll fee, the 30%."
The Art of Building: Design and Intent [19:13]
- The development of products like Hey.com, taking around two years, highlights the importance of thorough product definition and design before scaling up the team.
- Developers often underestimate the time required for conceptualization and refinement beyond a basic prototype.
- Designers at 37signals are deeply involved in product strategy, defining not just aesthetics but also functionality and user experience.
"But figuring out what you actually want to build takes a lot longer and arriving at something that's worth publishing takes longer still."
Designers as Product Managers and Implementers [23:27]
- Designers at 37signals are integral to the product process, functioning as product managers by identifying what to build and how it should work.
- They also handle implementation, including CSS and HTML, and increasingly, they are guiding AI in generating the full design.
- This integrated approach, combining product, design, and implementation hats, leads to a deeper understanding of the medium and more harmonious end products.
"Designers at 37 Signals are not just here to make a spec look pretty. They're here to find what the spec should be."
The Aesthetics of Code and Civilization [28:33]
- Aesthetics are considered a form of truth; beautiful systems often indicate correctness and are more likely to bring happiness.
- Conversely, poorly functioning systems and "shitification" (decline from good to bad) contribute to societal malaise.
- Ruby is highlighted as a language that produces beautiful code, balancing breadth and focus.
"When something is beautiful, it's likely to be correct."
AI's Impact: Opinions vs. Circumstances [32:31]
- DHH's fundamental opinions on AI have not changed, but the capabilities and usability of the tools have dramatically improved.
- Early AI tools like autocomplete were perceived as intrusive and annoying, hindering rather than helping the development process.
- The advent of agent harnesses and more powerful models like Opus 45 marked a turning point, enabling AI to perform complex tasks and generate high-quality, mergeable code.
"What have changed is the circumstances and the facts."
The Agent-First Revolution [40:01]
- The release of Opus 45 in late November/early December led to a significant shift, with DHH now starting "agent-first" on all projects.
- This period saw a collective shock across the industry as developers experienced the newfound capabilities of AI agents.
- The integration of agent-based workflows with command-line interfaces (CLIs) and tools like OpenClaw is redefining software development.
"I'm starting agent first on everything."
The Value of Craftsmanship in the Age of AI [44:35]
- The shift to an agent-first workflow brings code quality and security to the forefront, with tools like Sonar providing essential verification layers.
- Despite AI's advancements, the ability to critically examine and validate AI-generated code, along with taste and judgment, remains paramount.
- The value of senior developers is amplified as they can now leverage AI to achieve unprecedented productivity gains.
"When shifting to agent first work, one thing that inherently comes up is the quality of the code."
The Future of Software Engineering Roles [48:53]
- The ability of agents to autonomously sign up for services and integrate with existing systems like Basecamp and Hey.com demonstrates a new level of capability.
- While AGI is not yet here, the focus is on building practical tools like CLIs that enhance agent accessibility and interoperation.
- The core Unix philosophy of small, interoperable tools is being validated and extended through AI agent capabilities.
"If it can sign up for Hey, and can sign up for Fizzy, let me invite it to Base Camp."
The Unsettling Shift and the Value of Humans [53:06]
- The rapid advancement of AI simultaneously evokes excitement and anxiety about the future, particularly concerning the role of human programmers.
- The "bitter lesson" suggests that AI's capabilities will continue to surpass human expectations, challenging our understanding of specialized knowledge.
- A bifurcation is occurring: AI is empowering senior developers to achieve immense productivity, while the role of junior programmers may become more precarious without significant oversight.
"And then also a little bit anxious about where it's all going to go."
The Evolving Role of Software Engineers [54:44]
- The most successful AI acceleration is currently seen with senior engineers who can critically evaluate AI output.
- Companies are realizing that junior programmers cannot yet ship AI-generated code to production without rigorous review.
- Senior developers are leveraging AI to multiply their productivity, shifting their focus from pure implementation to oversight, architecture, and strategic decision-making.
"The most successful and applicable agent acceleration that I've seen at 37 signal has been from the most senior people."
The Unpredictable Trajectory of AI [59:03]
- The development of AI mirrors the evolution of self-driving cars, with rapid progress and unexpected inflection points.
- While AI demonstrates remarkable capabilities in certain domains, its application within specific company ecosystems and complex, unmapped landscapes still requires human guidance.
- The industry is experiencing immense growth, with an unprecedented amount of software being produced, leading to strain on existing infrastructure.
"The point is like there will be pockets where but those pockets will be smaller."
The Changing Hiring Landscape and the Value of Craftsmanship [1:03:04]
- The increasing role of AI in implementation suggests a shift where the value of software engineers will lie more in product management, system design, and strategic thinking.
- Companies are moving beyond hiring solely for coding languages to valuing empathy, communication, and business sense.
- The stereotype of the solitary coder is fading, replaced by engineers who can collaborate effectively and understand customer needs.
"It's product management. It's so funny for me too because historically I've not necessarily had the highest esteem for product management as a function."
The Enduring Love of Computers and the Mission of Building [1:42:03]
- DHH's primary motivation remains a deep love for computers and the act of building, which has been a lifelong passion.
- Wealth is not seen as a final destination but as a means to pursue purpose and continue engaging in meaningful work.
- The current era of AI is seen as a flourishing of this passion, offering new and exciting ways to play with computers and create.
"My drive continues to be a deep love of computers. This is simply the best way, the most fun way to spend my time."
Other People Also See