Overview > Concepts > Project Management Concepts > Iteration

Topics

Why Iterate?

Traditionally, projects have been organized to go through each discipline in sequence, once and only once. This leads to the waterfall lifecycle:

This often results in an integration 'pile-up' late in implementation when, for the first time, the product is built and testing begins. Problems which have remained hidden throughout Analysis, Design and Implementation come boiling to the surface, and the project grinds to a halt as a lengthy bug-fix cycle begins.

A more flexible (and less risky) way to proceed is to go several times through the various development disciplines, building a better understanding of the requirements, engineering a robust architecture, ramping up the development organization, and eventually delivering a series of implementations that are gradually more complete. This is called an iterative lifecycle. Each pass through the sequence of process disciplines is called an iteration .

Therefore, from a development perspective the software lifecycle is a succession of iterations , through which the software develops incrementally. Each iteration concludes with the release of an executable product. This product may be a subset of the complete vision, but useful from some engineering or user perspective. Each release is accompanied by supporting artifacts: release description, user documentation, plans, and so on, and updated models of the system.

The main consequence of this iterative approach is that the sets of artifacts , described earlier, grow and mature over time, as shown in the following diagram.

Information set evolution over the development phases.

What is an Iteration? To top of page

An iteration encompasses the development activities that lead to a product release &#151a stable, executable versions of product, together with any other peripheral elements necessary to use this release. So a development iteration is in some sense one complete pass through all the disciplines: Requirements, Analysis & Design, Implementation, and Test, at least. It is like a small waterfall project in itself. Note that evaluation criteria are established when each iteration is planned. The release will have planned capability which is demonstrable. The duration of an iteration will vary depending on the size and nature of the project, but it is likely that multiple builds will be constructed in each iteration, as specified in the Integration Build Plan for the iteration. This is a consequence of the continuous integration approach recommended in the Unified Process for EDUcation (UPEDU): as unit-tested components become available, they are integrated, then a build is produced and subjected to integration testing. In this way, the capability of the integrated software grows as the iteration proceeds, towards the goals set when the iteration was planned. It could be argued that each build itself represents a mini-iteration, the difference is in the planning required and the formality of the assessment performed. It may be appropriate and convenient in some projects to construct builds on a daily basis, but these would not represent iterations as the UPEDU defines them&#151except perhaps for a very small, single person project. Even for small multi-person projects (for example, involving five people building 10,000 lines of code), it would be very difficult to achieve an iteration duration of less than a week. For an explanation of why, see <a href="../gdlines/md_prpln.htm">Guidelines: Software Development Plan</a>.</p> <h4>Release</h4> <p>A release can be internal or external. An internal release is used only by the development organization, as part of a milestone, or for a demonstration to users or customers. An external release (or delivery) is delivered to end users. A release is not necessarily a complete product, but can just be one step along the way, with its usefulness measured only from an engineering perspective. Releases act as a forcing function that drives the development team to get closure at regular intervals, avoiding the &quot;90% done, 90% remaining&quot; syndrome.</p> <p>Iterations and releases allow a better usage over time of the various specialties in the team: designers, testers, and so forth. Regular releases let you break down the integration and test issues and spread them across the development cycle. These issues have often been the downfall of large projects because all problems were discovered at once during the single massive integration step, which occurred very late in the cycle, and where a single problem halts the whole team.</p> <p>At each iteration, artifacts are updated. It is said that this is a bit like &quot;growing&quot; software. Instead of developing artifacts one after another, in a pipeline fashion, they are evolving across the cycle, although at different rates.</p> <h4>Minor milestone</h4> <p>Each iteration is concluded by a minor milestone, where the result of the iteration is assessed relative to the objective success criteria of that particular iteration.</p> <h3><a class="Reff" name="XE_iteration__and_phases"></a><a name="Iteration and phases"> </a>Iteration and Phases <a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p align="center"><img border="0" src="../../references/bestprac/images/im_prar6.gif" width="382" height="128"></p> <p class="picturetext">Each iteration within a phase results in an executable release of the system.</p> <p>Each phase in the UPEDU can be further broken down into iterations. An iteration is a complete development loop resulting in a release (internal or external) of an executable product, a subset of the final product under development, which grows incrementally from iteration to iteration to become the final system.</p> <h3>Iteration pattern: Incremental Lifecycle <a name="XE_incremental_lifecycle"></a><a name="XE_lifecycle_patterns__incremental_lifecycle"></a><a name="Incremental"> </a><a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p>&quot;The incremental strategy determines user needs, and defines the system requirements, and then performs the rest of the development in a sequence of builds. The first build incorporates parts of the planned capabilities, the next build adds more capabilities, and so on until the system is complete.&quot; [DOD94]</p> <p>The following iterations are characteristic: <ul> <li>a short Inception iteration to establish scope and vision, and to define the business case</li> <li>a single Elaboration iteration, during which requirements are defined, and the architecture established</li> <li>several Construction iterations during which the use cases are realized and the architecture fleshed-out</li> <li>several Transition iterations to migrate the product into the user community</li> </ul> <p align="center"><img src="/images/co_lfcl1.gif" width="321" height="122"></p> <p>This strategy is appropriate when: <ul> <li>The problem domain is familiar.</li> <li>Risks are well-understood.</li> <li>The project team is experienced.</li> </ul> <h3>Iteration pattern: <a name="XE_evolutionary_lifecycle"></a><a name="XE_lifecycle_patterns__evolutionary_lifecycle"></a><a name="Evolutionary"></a> Evolutionary Lifecycle <a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p>&quot;The evolutionary strategy differs from the incremental in acknowledging that user needs are not fully understood, and all requirements cannot be defined up front, they are refined in each successive build.&quot; [DOD94]</p> <p>The following iterations are characteristic: <ul> <li>a short Inception iteration to establish scope and vision, and to define the business case</li> <li>several Elaboration iterations, during which requirements are refined at each iteration</li> <li>a single Construction iteration, during which the use cases are realized and the architecture is expanded upon</li> <li>several Transition iterations to migrate the product into the user community</li> </ul> <p align="center"><img border="0" src="/images/co_lfcl2.gif" width="322" height="132"></p> <p>This strategy is appropriate when: <ul> <li>The problem domain is new or unfamiliar.</li> <li>The team is inexperienced.</li> </ul> <h3>Iteration pattern: <a name="XE_incremental_delivery_lifecycle"></a><a name="XE_lifecycle_patterns__incremental_delivery_lifecycle"></a><a name="Incremental Delivery"> </a>Incremental Delivery Lifecycle <a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p>Some authors have also phased deliveries of incremental functionality to the customer [GIL88]. This may be required where there are tight time-to-market pressures, where delivery of certain key features early can yield significant business benefits.</p> <p>In terms of the phase-iteration approach, the transition phase begins early on and has the most iterations. This strategy requires a very stable architecture, which is hard to achieve in an initial development cycle, for an &quot;unprecedented&quot; system.</p> <p>The following iterations are characteristic: <ul> <li>a short Inception iteration to establish scope and vision, and to define the business case</li> <li>a single Elaboration iteration, during which a stable architecture is baselined</li> <li>a single Construction iteration, during which the use cases are realized and the architecture fleshed-out</li> <li>several Transition iterations to migrate the product into the user community</li> </ul> <p align="center"><img border="0" src="/images/co_lfcl3.gif" width="318" height="131"></p> <p>This strategy is appropriate when: <ul> <li>The problem domain is familiar: <ul> <li>the architecture and requirements can be stabilized early in the development cycle</li> <li>there is a low degree of novelty in the problem</li> </ul> </li> <li>The team is experienced.</li> <li>Incremental releases of functionality have high value to the customer.</li> </ul> <h3>Iteration pattern: <a name="XE_grand_design_lifecycle"></a><a name="XE_lifecycle_patterns__&quot;grand_design&quot;_lifecycle"></a><a name="&quot;Grand Design&quot;"></a>&quot;Grand Design&quot; Lifecycle <a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p>The traditional waterfall approach can be seen as a degenerated case in which there is only one iteration in the construction phase. It is called &quot;grand design&quot; in [DOD94]. In practice, it is hard to avoid additional iterations in the transition phase.</p> <p>The following iterations are characteristic: <ul> <li>a short Inception iteration to establish scope and vision, and to define the business case</li> <li>a single very long Construction iteration, during which the use cases are realized and the architecture fleshed-out</li> <li>several Transition iterations to migrate the product into the user community</li> </ul> <p align="center"><img border="0" src="/images/co_lfcl4.gif" width="319" height="119"></p> <p>This strategy is appropriate when: <ul> <li>a small increment of well-defined functionality is being added to a very stable product</li> <li>the new functionality is well-defined and well-understood</li> <li>The team is experienced, both in the problem domain and with the existing product</li> </ul> <h3>Iteration pattern: <a name="XE_lifecycle_patterns__hybrid_strategies"></a><a name="Hybrid Strategies"> </a>Hybrid Strategies <a href="#MostTop"><img src="../../images/top.gif" alt="To top of page" class="nobrd" border="0" width="26" height="20"></a></h3> <p>In practice few projects strictly follow one strategy. You often end up with a <strong>hybrid, </strong>some evolution at the beginning, some incremental building, and multiple deliveries. Among the advantages of the phase-iteration model is that it lets you accommodate a hybrid approach, simply by increasing the length and number of iterations in particular phases: <ul> <li>For complex or unfamiliar problem domains, where there is a high degree of exploration: increase the number of iterations in the elaboration phase and its length.</li> <li>For more complex development problems, where there is complexity translating the design into code: increase the number of iterations in the construction phase and its length.</li> <li>To deliver software in a series of incremental releases: increase the number of iterations in the transition phase and its length.</li> </ul> </div> </div> </div> <footer> <a class="btn" href="/mailto:[email protected]?subject=Feedback:www.upedu.org"> Feedback <i class="icon-envelope"></i> </a> &copy; 2014 Polytechnique Montreal </footer> <script src="/vendors/jquery/jquery-1.8.2.js"></script> <script src="/vendors/bootstrap/js/bootstrap.min.js"></script> </body> </html>