
Lessons from Martin Fowler
Martin Fowler writes about agile development, refactoring, testing, continuous integration, software architecture and technical debt on martinfowler.com. The items below are sentences Fowler wrote in articles and bliki pages there. — Martin Fowler: Agile Software Development.
Part 1: Refactoring and Code Quality
- On What Refactoring Is: In the page “Agile Software Development,” Fowler wrote: "Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior". — Martin Fowler: Agile Software Development.
- On Preparatory Refactoring: In the page “Opportunistic Refactoring,” Fowler wrote: "One is a preparatory refactoring, where before you begin to implement something you see that this task would be easier if an existing class's API was structured differently. You first refactor it to how it ought to be and then start adding your functionality". — Martin Fowler: Opportunistic Refactoring.
- On the Camp Site Rule: In the page “Opportunistic Refactoring,” Fowler wrote: "This opportunistic refactoring is often referred to as following the camp site rule - always leave the code behind in a better state than you found it". — Martin Fowler: Opportunistic Refactoring.
- On Refactoring Only When Tests Are Green: In the page “Opportunistic Refactoring,” Fowler wrote: "you should only refactor when your tests are green". — Martin Fowler: Opportunistic Refactoring
- On Refactoring as Daily Work: In the page “Refactoring,” Fowler wrote: "Refactoring isn't a special task that would show up in a project plan. Done well, it's a regular part of programming activity". — Martin Fowler: Refactoring.
- On Whether Refactoring Needs a Place in the Plan: In the page “Opportunistic Refactoring,” Fowler wrote: "Certainly there is a place for planned efforts at refactoring, even setting aside a day or two to attack a gnarly lump of code that's been getting in everyone's way for a few months". — Martin Fowler: Opportunistic Refactoring
- On Small Steps: In the page “Agile Software Development,” Fowler wrote: "Since each refactoring is small, it's less likely to go wrong. The system is kept fully working after each refactoring". — Martin Fowler: Agile Software Development.
Part 2: Agile and Iterative Development
- On Adaptive Methods: In the article “The New Methodology,” Fowler wrote: "Agile methods are adaptive rather than predictive". — Martin Fowler: The New Methodology.
- On People-First Orientation: In the article “The New Methodology,” Fowler wrote: "In this essay I explore the reasons for agile methods, focusing not so much on their weight but on their adaptive nature and their people-first orientation". — Martin Fowler: The New Methodology.
- On Productivity and Business Value: In the bliki entry “Cannot Measure Productivity,” Fowler wrote: "any true measure of software development productivity must be based on delivered business value". — Martin Fowler: Cannot Measure Productivity.
- On Imposing Agile: In the article “The New Methodology,” Fowler wrote: "imposing agile methods on reluctant people is fundamentally at odds with the whole notion of agile development". — Martin Fowler: The New Methodology.
- On Semantic Diffusion: In the page “Agile Software Development,” Fowler wrote: "like any popular technique, agile software development has suffered from semantic diffusion, so much of what we see under the name of agile doesn't bear much resemblance to what the early pioneers were doing". — Martin Fowler: Agile Software Development.
- On Fashion: In the page “Agile Software Development,” Fowler wrote: "As a methodology or design approach becomes fashionable, then we see a lot people using it, or teaching it, who are focusing on the fashion rather than the real details". — Martin Fowler: Agile Software Development
- On Planning and Agile: In the page “Semantic Diffusion,” Fowler wrote: "I've run into people who think agile methods mean you shouldn't do any planning". — Martin Fowler: Semantic Diffusion
- On Pretending to Be Predictable: In the article “The New Methodology,” Fowler wrote: "One of the big dangers is to pretend that you can follow a predictable process when you can't". — Martin Fowler: The New Methodology.
Part 3: Testing and Test-Driven Development
- On Having the Tests: In the page “Self-Testing Code,” Fowler wrote: "The important point of self-testing code is that you have the tests, not how you got to them". — Martin Fowler: Self-Testing Code.
- On Writing a Test First: In the page “Self-Testing Code,” Fowler wrote: "The usual reaction of a team using self-testing code is to first write a test that exposes the bug, and only then to try to fix it". — Martin Fowler: Self-Testing Code
- On Running Tests Frequently: In the page “Self-Testing Code,” Fowler wrote of debugging: "By running the test suite frequently, at least several times a day, you're able to detect such bugs soon after they are introduced, so you can just look in the recent changes, which makes it much easier to find them". — Martin Fowler: Self-Testing Code.
- On Doing Enough Testing: In the bliki entry “Test Coverage,” Fowler wrote: "I would say you are doing enough testing if the following is true: You rarely get bugs that escape into production, and You are rarely hesitant to change some code for fear it will cause production bugs". — Martin Fowler: Test Coverage.
- On Suspicion of 100% Coverage: In the bliki entry “Test Coverage,” Fowler wrote: "I would be suspicious of anything like 100% - it would smell of someone writing tests to make the coverage numbers happy, but not thinking about what they are doing". — Martin Fowler: Test Coverage
- On Coverage in the Upper Eighties: In the bliki entry “Test Coverage,” Fowler wrote: "If you are testing thoughtfully and well, I would expect a coverage percentage in the upper 80s or 90s". — Martin Fowler: Test Coverage
- On the Test Pyramid: In the bliki entry “Test Pyramid,” Fowler wrote: "Its essential point is that you should have many more low-level UnitTests than high level BroadStackTests running through a GUI". — Martin Fowler: Test Pyramid.
- On Red-Green-Refactor: In the bliki entry “Test Driven Development,” Fowler wrote: "Write a test for the next bit of functionality you want to add. Write the functional code until the test passes. Refactor both new and old code to make it well structured". — Martin Fowler: Test Driven Development.
Part 4: Software Architecture and Design
- On the Important Stuff: In the article “Who Needs an Architect?,” Fowler wrote: "if architecture is the important stuff, then the architect is the person (or people) who worries about the important stuff". — Martin Fowler: Who Needs an Architect?.
- On Hard-to-Change Decisions: In the article “Who Needs an Architect?,” Fowler wrote quoting an email from Johnson: "One of the differences between building architecture and software architecture is that a lot of decisions about a building are hard to change". — Martin Fowler: Who Needs an Architect?.
- On Puffing Up Design: In the article “Who Needs an Architect?,” Fowler wrote: "In a sense, I define architecture as a word we use when we want to talk about design but want to puff it up to make it sound important". — Martin Fowler: Who Needs an Architect?.
- On the Design Payoff Line: In the bliki entry “Design Stamina Hypothesis,” Fowler wrote: "at some point (the design payoff line) it overtakes the cumulative functionality of the no-design project and will continue to do better". — Martin Fowler: Design Stamina Hypothesis.
- On Yagni and Extra Complexity: In the bliki entry “Yagni,” Fowler wrote: "I also argue that yagni only applies when you introduce extra complexity now that you won't take advantage of until later". — Martin Fowler: Yagni
- On the Limits of People: In the article “Who Needs an Architect?,” Fowler wrote of software: "In short, it is limited by properties of people, not by properties of the world". — Martin Fowler: Who Needs an Architect?.
- On the First Law of Distributed Objects: In the article “Microservices and the First Law of Distributed Objects,” Fowler wrote: "I coined what I called the First Law of Distributed Object Design: “don't distribute your objects”". — Martin Fowler: Microservices and the First Law of Distributed Objects.
- On Empiricism: In the article “Microservices and the First Law of Distributed Objects,” Fowler wrote: "I am by nature an empiricist, one that believes that empirical evidence trumps theory, even if that theory is rather better worked out than my gut feel". — Martin Fowler: Microservices and the First Law of Distributed Objects
- On Complexity Between Services: In the article “Microservices and the First Law of Distributed Objects,” Fowler wrote: "While small microservices are certainly simpler to reason about, I worry that this pushes complexity into the interconnections between services". — Martin Fowler: Microservices and the First Law of Distributed Objects
- On Comprehensiveness of Diagrams: In the article “Is Design Dead?” Fowler wrote: "For diagrams comprehensiveness is the enemy of comprehensibility". — Martin Fowler: Is Design Dead?.
Part 5: Microservices and Continuous Integration
- On Monoliths That Got Too Big: In the page “Monolith First,” Fowler wrote: "Almost all the successful microservice stories have started with a monolith that got too big and was broken up". — Martin Fowler: Monolith First.
- On Monolith Size: In the page “Microservice Premium,” Fowler wrote: "the biggest factor is that of sheer size - people finding they have a monolith that's too big to modify and deploy". — Martin Fowler: Microservice Premium
- On Microservices From Scratch: In the page “Monolith First,” Fowler wrote: "Almost all the cases where I've heard of a system that was built as a microservice system from scratch, it has ended up in serious trouble". — Martin Fowler: Monolith First.
- On Defining Microservices: In the article “Microservices,” written with James Lewis, Fowler wrote: "an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API". — Martin Fowler: Microservices (with James Lewis).
- On the Microservice Premium: In the page “Monolith First,” Fowler wrote: "Microservices are a useful architecture, but even their advocates say that using them incurs a significant MicroservicePremium, which means they are only useful with more complex systems". — Martin Fowler: Monolith First.
- On Managing a Suite of Services: In the page “Monolith First,” Fowler wrote: "This premium, essentially the cost of managing a suite of services, will slow down a team, favoring a monolith for simpler applications". — Martin Fowler: Monolith First
- On Integrating Frequently: In the article “Continuous Integration,” Fowler wrote: "The essence of it lies in the simple practice of everyone on the team integrating frequently, at least daily, against a controlled source code repository". — Martin Fowler: Continuous Integration.
- On Reasoning About Trade-Offs: In the article “Continuous Integration,” Fowler wrote: "Few things come without a cost, and decisions about architecture and process are usually a matter of trade-offs". — Martin Fowler: Continuous Integration
- On Fixing the Build: In the article “Continuous Integration,” Fowler wrote quoting Kent Beck: "nobody has a higher priority task than fixing the build". — Martin Fowler: Continuous Integration.
- On Imperfect Tests: In the article “Continuous Integration,” Fowler wrote: "Imperfect tests, run frequently, are much better than perfect tests that are never written at all". — Martin Fowler: Continuous Integration.
- On Doing It More Often: In the page “Agile Software Development,” Fowler wrote: "if it hurts, do it more often". — Martin Fowler: Agile Software Development.
Part 6: Technical Debt and System Health
- On Cruft: In the page “Technical Debt,” Fowler wrote: "Software systems are prone to the build up of cruft - deficiencies in internal quality that make it harder than it would ideally be to modify and extend the system further". — Martin Fowler: Technical Debt.
- On Being Afraid to Refactor: In the page “Self-Testing Code,” Fowler wrote: "you also end up afraid to refactor the system, thus increasing TechnicalDebt, and getting into a steadily worsening spiral where every change makes people more fearful of more change". — Martin Fowler: Self-Testing Code
- On Zero Tolerance for Cruft: In the page “Technical Debt,” Fowler wrote: "areas of high activity need a zero-tolerance attitude to cruft, because the interest payments are cripplingly high". — Martin Fowler: Technical Debt
- On Speeding Delivery With Debt: In the page “Technical Debt,” Fowler wrote: "Taking on debt to speed delivery only works if you stay below the design payoff line of the DesignStaminaHypothesis, and teams hit that line in weeks rather than months". — Martin Fowler: Technical Debt.
- On Reckless Debt: In the page “Technical Debt Quadrant,” Fowler wrote: "A mess is a reckless debt which results in crippling interest payments or a long period of paying down the principal". — Martin Fowler: Technical Debt Quadrant.
- On Deliberate and Prudent Debt: In the page “Technical Debt,” Fowler wrote: "I found it useful to think about whether the debt is acquired deliberately and whether it is prudent or reckless". — Martin Fowler: Technical Debt
- On Building a Monolith as a Sacrificial Architecture: In the page “Monolith First,” Fowler wrote: "Few people look at this as an approach to be proud of, yet there are advantages to building a monolith as a SacrificialArchitecture". — Martin Fowler: Monolith First.
- On Blue-Green Deployment: In the bliki entry “Blue Green Deployment,” Fowler wrote: "approach does this by ensuring you have two production environments, as identical as possible". — Martin Fowler: Blue Green Deployment.
Part 7: AI, Tooling, and "Vibe Coding"
- On Vibe Coding: In the page “Vibe Coding,” Fowler wrote: "Vibe coding is building a software application by prompting an LLM, telling it what to build, trying it out, prompting for changes - but without looking at any of the code that the LLM generates". — Martin Fowler: Vibe Coding.
- On Disposable Software: In the page “Vibe Coding,” Fowler wrote: "the resulting software often shows problems with maintainability, correctness, and security - so is best used for disposable software written for a limited audience". — Martin Fowler: Vibe Coding
Part 8: People, Organization, and Career
- On Distribution as a Complexity Booster: In the article “Microservices and the First Law of Distributed Objects,” Fowler wrote: "I do think distribution is a complexity booster". — Martin Fowler: Microservices and the First Law of Distributed Objects.
- On Code Smells: In the bliki entry “Code Smell,” Fowler wrote: "A code smell is a surface indication that usually corresponds to a deeper problem in the system". — Martin Fowler: Code Smell