
Architecture Should Emerge from Code

Hibernate Creator: Why Developers Hate ORM (And How We're Fixing It) - Gavin King
Topic 10 of 11
Published Sep 22, 2025 · Clip 1:16:03–1:31:02 (14:59)
Gavin argues architecture advice lacks logical or empirical foundation: nobody has maintained more than two or three projects for 10 years, so expert advice reflects narrow contexts. His radicalized position is that architecture should emerge naturally from the code through obsessive, iterative refactoring guided by DRY, with layers introduced only when they demonstrably improve the code. He criticizes issue-report-driven development for producing systems full of special cases that can't be reasoned about, and attacks DDD's aggregate concept as treating relational databases like document databases. He concludes that developers should trust their own reasoned intuitions, as he did at 26 when he rejected entity beans.