5 Initiation ↑

No. 37 — Just Enough Design Up Front

When addressing the question of how much design should be completed before coding starts, there are several factors to consider.

  1. Design changes are generally harder and more expensive to make after software code has been written.

  2. Architects and designers are sometimes better qualified to perform design than other team members, and it is easier to confine design tasks to these few individuals before more developers get involved.

  3. Some overarching design decisions need to be made in order to enable more detailed work to proceed.

  4. The wisdom of a design can only be fully validated once it is implemented in working software.

  5. Work done later in the effort can draw upon the skills, experience and wisdom available from the larger team.

  6. The team will learn more about the problem space as the work progresses, and so deferred design decisions can take advantage of these greater learnings.

  7. Early design decisions often turn out to have been based on mistaken assumptions, or on evolving business conditions that then change before the software is ready for delivery and use.

  8. When design is done early, there is a tendency to provision for features that later turn out to be unneeded. This is one reason why agile practitioners try to follow the “YAGNI” dictum: until proven otherwise, assume that “You Ain’t Gonna Need It”.

  9. Developers will be more fully engaged in the work if they are focused on the overall purpose of the effort, and are allowed sufficient autonomy to make some design decisions as they work.

  10. If designs become large and complex before any of their elements have been validated by working code, then the number of invalid elements embedded in the design may be too numerous and widespread to allow the resulting system to ever function correctly.

If we consider only the first three factors, then we will do all of our design work using models and documents before writing a single line of code. This is sometimes referred to as Big Design Up Front (BDUF).

If we consider only the last seven factors, then we may be tempted to rely entirely upon emergent design, without any up-front architecture. This is often referred to as “cowboy development,” since we are always shooting from the hip, without ever stopping to take careful aim at our target.

When we take all of these considerations into account, though, we generally find it best to do some early design work, but allow the full design to emerge as the work progresses.

This is why it is usually best to practice JEDUF: Just Enough Design Up Front.

The advantages of such an approach are not confined to software development. Here is an example of how Frank Gehry and his team designed and built the Peter B. Lewis Building at Case Western Reserve University, as described in A Perfect Mess: The Hidden Benefits of Disorder, by Eric Abrahamson and David H. Freeman:

The school approved the design and brought in a small army of contractors to build it. The contractors duly admired, in a shocked and fretful way, the model of the God-awfully complex structure they were about to undertake, and then asked for the blueprints, to which Gehry’s team replied that there weren’t any.

To capture the building’s emotional content, Gehry maintains, everyone working on the building should keep creating throughout the construction process.

Freed from the constraints of a blueprint’s rigid specifications… the contractors and architects were able to collaboratively rethink the design and construction techniques in any way necessary to achieve the project’s goals. That led to an eruption of innovation.

Not only was the finished building a stunning hit, completed on time and within budget, but most of the contractors were so pleased with the invention into which they had been pushed that they ended up changing the way they do business.

Early stages of design are often referred to as architecture. When we discuss the architecture of a system, there are at least five different (albeit related) areas that must be considered.

Note that, even with some upfront architecture, development teams may still need to schedule some periods of concentrated architectural work later in the project. This is sometimes referred to as extending the architectural runway, with the idea that the architecture is necessary to support the user functionality, and so as the functional development proceeds, it gets closer to the end of the existing runway, necessitating the dedication of resources to further building out the architecture in order to allow the continued functional work to proceed smoothly.

For additional details on this topic, see the Pagan Tuna post, “Agile Architecture.”


Words from Others on this Topic

We need to adopt the attitude that the internal structure of a system will require continuous improvement as the system evolves. Refactoring — improving the design as the system develops — is not just for commercial software. Without continuous improvement, any software system will suffer. Internal structures will become calcified and fragile. In a surprisingly short time, the system will cease to be useful.

Mary and Tom Poppendieck, Lean Software Development: An Agile Toolkit, 2003

Prototypes and prototyping are not substitutes for analysis and design, not excuses for sloppy thinking.

Larry Constantine and Lucy Lockwood, Software for Use: A Practical Guide to the Models and Methods of Usage-Centered Design, 1999

A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over beginning with a working simple system.

John Gall, Systemantics: How Systems Really Work and How They Fail, 1975

The final goal of any engineering activity is some type of documentation. When a design effort is complete, the design documentation is turned over to the manufacturing team. This is a completely different group with completely different skills from the design team. If the design documents truly represent a complete design, the manufacturing team can proceed to build the product. In fact, they can proceed to build lots of the product, all without any further intervention of the designers. After reviewing the software development life cycle as I understood it, I concluded that the only software documentation that actually seems to satisfy the criteria of an engineering design is the source code listings.

Jack W. Reeves, “What is Software Design?”, 1992


Next: Deliver Early and Often