
Refactoring: origins, book, and AI

How AI will change software engineering – with Martin Fowler
Topic 15 of 23
Published Nov 19, 2025 · Clip 56:38–1:07:33 (10:55)
Martin recounts discovering refactoring at Chrysler watching Kent Beck take tiny steps in Smalltalk, which blew his mind; since Kent was busy with the XP book, Martin wrote Refactoring (1999) in Java, building careful notes and mechanics for each refactoring. He credits Ralph Johnson's University of Illinois crew and their Smalltalk refactoring browser as the origin, and notes JetBrains' IntelliJ and ReSharper made automated refactoring mainstream. He defines refactoring strictly as tiny behavior-preserving changes that compose, describes the motivation for the 2019 second edition (switching to JavaScript for a broader audience), and argues that with AI producing lots of questionable-quality code that works, the refactoring mindset of small, composable steps will become increasingly important — though LLMs can't refactor on their own yet, promising work combines LLMs with deterministic tools.