Waterfall Reconsidered
We all know waterfall is bad. It's outdated, bureaucratic, ineffective, and makes you late for dinner. It's just a stupid thing we did in the bad old days, before we were taught better by a group of consultants at a mountain retreat. Or so the Agilists would have us believe. Today agile apologists claim the true meaning of agile has been distorted. What we commonly think of as Agile - bureaucratic processes, standups, backlogs, product owners, sprints etc etc - is actually Industrial Agile, sometimes or Big-A Agile. But, actually , the original agile (small-a!) is wonderful, and contains only what's in agile manifesto. I will show we can make the exact same argument for waterfall; that there is an original, uncorrupted kernel we have neglected, and that the horrible nasty Industrial Waterfall - held up as a bogeyman by agilists - is a distortion of the initial, elegant idea. You have been lied to, dear reader - and if you would learn more of the truth of small-w waterfall, read forth! Today "Waterfall" is taken to mean a one pass development process. First all the requirements are done, then the specs, then the coding, then the tests - in more or less granularity. You can only go forward between these phases - never backwards. Problem in the specs? Too bad, they've been signed off on. But it did not mean this to the men who coined it. The first mention of "Waterfall" was the 1976 paper Software Requirements: Are They Really a Problem? by Bell & Thayer. In it they argue that software requirements do not just "arise naturally", but need an engineering effort to define well (a finding that still eludes many software teams some 50 years thence), and early in the second page they write of "software development systems"; what we might today call methodologies: ...practicioneers have concluded that a top-down approach is superior to the bottom-up approach of the past. The Military Standard set MIL- STD 490/483 recognized this newer approach by specifying a system requirements document, a "design-to" requirements document that is created in response to the system requirements, and then a "code-to" requirements document for each software module in the design. Each of these is at a lower level of detail than the former, so the system developers are led through a top-down process. The same top-down approach to a series of requirements statements is explained, without the specialized military jargon, in an excellent paper by Royce [5]; he introduced the concept of the "waterfall" of development activities. In this approach software is developed in the disciplined sequence of activities shown in Figure I. Each of the documents in the early phases of the waterfall can be considered as stating a set of requirements. At each level a set of requirements serve as the input and a design is produced as output. This design then becomes the requirements set for the designer at the next level down. Their Figure I is based on the infamous "Waterfall Diagram" (retroactively named) of Royce's 1970 paper Managing the Development of Large Software Systems (Royce, 1970) : (First off, let me state clearly - I've read the Royce paper, yes I know he wasn't arguing for phase-gated development, yes I know he didn't coin the term waterfall, and yes I know the people most angry at the title of the article won't read this far and will still comment that I am ignorant of all the above. Back to the article.) So what impressed Bell & Thayer was not some notion of a rigid gated process, but just how clearly the top-down software development process had been illustrated, showing clearly that higher designs naturally flowed down to lower. Indeed they took it for granted that requirements development must be iterative; writing on page 6: The importance of continually reviewing requirements for their impact on design solutions is obvious, especially in a top-down environment where each iteration through the development cycle affords the opportunity to deal with changing or incorrect requirements, and to factor these changes into the evolving design. So if phase-gating gremlins are not an integral part of waterfall (more lies from the Agile-Industrial complex), what's left is what Bell & Thayer immediately zeroed in on: Top-Down design. The papers I am drawing from were written in the 70s, and many of the terms may be strange to us today. So let's break down a modern top-down design into three phases: REQUIREMENTS DESIGN DEVELOPMENT Note how inherent direction of the whole thing. If there's a change in the design, it likely means more development work. If there's a change in requirements, then the design must change, and hence more development - it quite literally flows as surely as water does. This is of course a heuristic and not an absolute rule; in a well functioning organisation with effective testing an issue in development can definitely propagate its way up and cause higher level designs to be debugged. From Bell & Thayer, page 5: However, reports documenting requirement-related problems or needed change can be generated throughout the development cycle, not just during appropriate requirement reviews. In fact, such information also comes from the design phase and as late as the formal testing phase... While the principal activity may be software design or testing, documented problems at any point in the development cycle may identify the source of the problem as any previous activity, e.g., a requirement error documented on a software problem report written during formal testing. Does it then follow that their waterfall is purely circular? I argue not - there's a directionality to it, and design flows downwards. All software is judged by problems it solves in the real world, how it is to use, and how well developed it is - in that order. That issues lower in the waterfall (ie, slow unmaintainable code) can affect things further up does not change this. Rarely will a technical development issue change high level requirements - there is a direction, a gravity drawing us towards the implementation, and waterfall describes it. As Fred Brooks said in No Silver Bullet : The hardest single part of building a software system is deciding precisely what to build...No other part of the work so cripples the resulting system if done wrong. No other part is more difficult to rectify later. The agile manifesto is a slippery piece of work - hinting at much and saying little - but I think even they acknowledge this: Anyone who's been a contract dev on a day rate will confirm that changing requirements are absolutely a thing to welcome. Bell & Thayer's "waterfall of development activities" exists, whether a team produces artefacts for it or not. A failure to acknowledge a phenomenon does not make it go away. We are told to judge agile in its purist form, and in the most charitable way; but the ideas behind waterfall have a clarity of thought and a clearness of metaphor that far surpasses anything in that dreary "manifesto". So, why not carry the name proudly? Waterfall is just top-down iterative development, and that is an sensible, effective approach. A brave new world of waterfall coaches, waterfall consulting and waterfall conferences await us, if only we would reach out our hands to grasp it.