Waterfall model explained

The waterfall model is the process of performing the typical software development life cycle (SDLC) phases in sequential order. Each phase is completed before the next is started, and the result of each phase drives subsequent phases. Compared to alternative SDLC methodologies such as Agile, it is among the least iterative and flexible,[1] as progress flows largely in one direction (like a waterfall) through the phases of conception, requirements analysis, design, construction, testing, deployment, and maintenance.[2] The waterfall model is the earliest SDLC methodology.[3] When first adopted, there were no recognized alternatives for knowledge-based creative work.[4]

History

The first known presentation describing the use of such phases in software engineering was held by Herbert D. Benington at the Symposium on Advanced Programming Methods for Digital Computers on 29 June 1956.This presentation was about the development of software for SAGE. In 1983, Benington republished his paper with a foreword explaining that the phases were on purpose organized according to the specialization of tasks, and pointing out that the process was not in fact performed in a strict top-down fashion, but depended on a prototype.[5]

Although the term "waterfall" is not used in the paper, the first formal, detailed diagram of the process is often[6] cited as coming from a 1970 article by Winston W. Royce.[7] [8] However, he commented that it had major flaws stemming from how testing only happened at the end of the process, which he described as being "risky and [inviting] failure". The rest of his paper introduced five steps which he felt were necessary to "eliminate most of the development risks" associated with the unaltered waterfall approach. Royce's five additional steps (which included writing complete documentation at various stages of development) never took mainstream hold, but his diagram of what he considered a flawed process became the starting point when describing a "waterfall" approach.[9] [10]

The earliest use of the term "waterfall" may have been in a 1976 paper by Bell and Thayer.[11]

In 1985, the United States Department of Defense adopted the waterfall model in the DOD-STD-2167 standard for working with software development contractors. This standard referred for iterations of a software development[12] to "the sequential phases of a software development cycle" and stated that "the contractor shall implement a software development cycle that includes the following six phases: Software Requirement Analysis, Preliminary Design, Detailed Design, Coding and Unit Testing, Integration, and Testing".[13]

Phases

The model describes a linear sequence of steps. Although various different versions can be found, the following describes the essence.[14] [15] [16] [17]

Preliminary analysis

Conduct with a preliminary analysis, consider alternative solutions, estimate costs and benefits, and submit a preliminary plan with recommendations.

Systems analysis, requirements definition

Decompose project goals into defined functions and operations. This involves gathering and interpreting facts, diagnosing problems, and recommending changes. Analyze end-user information needs and resolve inconsistencies and incompleteness:[18]

Systems design

At this step, desired features and operations are detailed, including screen layouts, business rules, process diagrams, pseudocode, and other deliverables.

Development

Write the code.

Integration and testing

Assemble the modules in a testing environment. Check for errors, bugs, and interoperability.

Acceptance, installation, deployment

Put the system into production. This may involve training users, deploying hardware, and loading information from the prior system.

Maintenance

Monitor the system to assess its ongoing fitness. Make modest changes and fixes as needed. To maintain the quality of the system. Continual monitoring and updates ensure the system remains effective and high-quality.[19]

Evaluation

The system and the process are reviewed. Relevant questions include whether the newly implemented system meets requirements and achieves project goals, whether the system is usable, reliable/available, properly scaled and fault-tolerant. Process checks include review of timelines and expenses, as well as user acceptance.

Disposal

At end of life, plans are developed for discontinuing the system and transitioning to its replacement. Related information and infrastructure must be repurposed, archived, discarded, or destroyed, while appropriately protecting security.[20]

Supporting arguments

Time spent early in the software production cycle can reduce costs at later stages. For example, a problem found in the early stages (such as requirements specification) is cheaper to fix than the same bug found later on in the process (by a factor of 50 to 200).[21]

In common practice, waterfall methodologies result in a project schedule with 20โ€“40% of the time invested for the first two phases, 30โ€“40% of the time to coding, and the rest dedicated to testing and implementation. With the project organization needing to be highly structured, most medium and large projects will include a detailed set of procedures and controls, which regulate every process on the project.[22]

A further argument supporting the waterfall model is that it places emphasis on documentation (such as requirements documents and design documents) as well as source code. In less thoroughly designed and documented methodologies, knowledge is lost if team members leave before the project is completed, and it may be difficult for a project to recover from the loss. If a fully working design document is present (as is the intent of big design up front and the waterfall model), new team members and new teams should be able to familiarise themselves to the project by reading the documents.[23]

The waterfall model provides a structured approach; the model itself progresses linearly through discrete, easily understandable and explainable phases and thus is easy to understand. It also provides easily identifiable milestones in the development process, often being used as a beginning example of a development model in many software engineering texts and courses.[24]

Similarly, simulation can play a valuable role within the waterfall model.[25] By creating computerized or mathematical simulations of the system being developed, teams can gain insights into how the system will perform before proceeding to the next phase. Simulations allow for testing and refining the design, identifying potential issues or bottlenecks, and making informed decisions about the system's functionality and performance.

Criticism

Clients may not know the exact requirements before they see working software and thus change their requirements further on, leading to redesign, redevelopment, and retesting, and increased costs.[26]

Designers may not be aware of future difficulties when designing a new software product or feature, in which case revising the design initially can increase efficiency in comparison to a design not built to account for newly discovered constraints, requirements, or problems.[27]

Organisations may attempt to deal with a lack of concrete requirements from clients by employing systems analysts to examine existing manual systems and analyse what they do and how they might be replaced. However, in practice, it is difficult to sustain a strict separation between systems analysis and programming,[28] as implementing any non-trivial system will often expose issues and edge cases that the systems analyst did not consider.

Some organisations, such as the United States Department of Defense, now have a stated preference against waterfall-type methodologies, starting with MIL-STD-498 released in 1994, which encourages evolutionary acquisition and iterative and incremental development.[29]

Modified waterfall models

In response to perceived problems with the original, pure waterfall model, many modified versions have been devised to address the problems. These include the rapid development models that Steve McConnell calls "modified waterfalls":[21] Peter DeGrace's "sashimi model" (waterfall with overlapping phases), waterfall with subprojects, and waterfall with risk reduction. Other software development model combinations such as "incremental waterfall model" also exist.[30]

Royce's final model illustrated that feedback could (should, and often would) lead from code testing to design (as testing of code uncovered flaws in the design) and from design back to requirements specification (as design problems may necessitate the removal of conflicting or otherwise unsatisfiable/undesignable requirements). In the same paper Royce also advocated large quantities of documentation, doing the job "twice if possible" (a sentiment similar to that of Fred Brooks, famous for writing the Mythical Man Month โ€” an influential book in software project management โ€” who advocated planning to "throw one away"), and involving the customer as much as possible (a sentiment similar to that of extreme programming).

Royce notes on the final model are:

  1. Complete program design before analysis and coding begins
  2. Documentation must be current and complete
  3. Do the job twice if possible
  4. Testing must be planned, controlled, and monitored
  5. Involve the customer

External links

Notes and References

  1. Book: Petersen. Kai. Wohlin. Claes. Baca. Dejan. Product-Focused Software Process Improvement . The Waterfall Model in Large-Scale Development . 2009. Bomarius. Frank. Oivo. Markku. Jaring. Pรคivi. Abrahamsson. Pekka. http://urn.kb.se/resolve?urn=urn:nbn:se:bth-8073. Lecture Notes in Business Information Processing. 32 . en. Berlin, Heidelberg. Springer. 386โ€“400. 10.1007/978-3-642-02152-7_29. 2009pfsp.book..386P . 978-3-642-02152-7.
  2. Tom Gilb. Evolutionary Delivery versus the "waterfall model". ACM SIGSOFT Software Engineering Notes. 1985. 10. 3. 49โ€“61. 10.1145/1012483.1012490.
  3. Book: Linda Sherrell. Waterfall Model. Encyclopedia of Sciences and Religions. A. L. C. Runehov. L. Oviedo. 2013. 2343โ€“2344. Springer. Dordrecht, The Netherlands. 10.1007/978-1-4020-8265-8_200285. 978-1-4020-8264-1.
  4. Designing for knowledge maturing: from knowledge-driven software to supporting the facilitation of knowledge development. Andreas P. Schmidt. Christine Kunzmann. i-KNOW '14: Proceedings of the 14th International Conference on Knowledge Technologies and Data-driven Business. September 16, 2014. 10. 1โ€“7. 10.1145/2637748.2638421. ACM.
  5. Benington . Herbert D. . Production of Large Computer Programs . IEEE Annals of the History of Computing . 1 October 1983 . 5 . 4 . 350โ€“361 . 10.1109/MAHC.1983.10102 . IEEE Educational Activities Department . 8632276 . 2011-03-21 . 2011-07-18 . https://web.archive.org/web/20110718084251/http://sunset.usc.edu/csse/TECHRPTS/1983/usccse83-501/usccse83-501.pdf . dead .
  6. Larman . Craig . Basili . Victor . Iterative and Incremental Development: A Brief History . Computer . June 2003 . 36 . 6 . 47โ€“56 . 10.1109/MC.2003.1204375 .
  7. Web site: Waterfall . Bremen University - Mathematics and Computer Science . 2021-04-15 . 2022-01-19 . https://web.archive.org/web/20220119095730/http://www.informatik.uni-bremen.de/uniform/vm97/def/def_w/WATERFALL.htm . dead .
  8. Book: Abbas. Noura. Gravell. Andrew M.. Wills. Gary B.. Agile Processes in Software Engineering and Extreme Programming . Historical Roots of Agile Methods: Where Did "Agile Thinking" Come From? . 2008. Abrahamsson. Pekka. Baskerville. Richard. Conboy. Kieran. Fitzgerald. Brian. Morgan. Lorraine. Wang. Xiaofeng. https://eprints.soton.ac.uk/266606/1/xp2008camera_ready.pdf. Lecture Notes in Business Information Processing. 9 . en. Berlin, Heidelberg. . 94โ€“103. 10.1007/978-3-540-68255-4_10. 978-3-540-68255-4.
  9. Conrad Weisert, Waterfall methodology: there's no such thing!
  10. Book: Lineberger . Rob . Inheriting Agile: The IT Practitioner's Guide to Managing Software Development in a Post-Agile World . Apr 25, 2024 . Sandprint Press . Durham, NC . 9798989149605 . 36 .
  11. Bell, Thomas E., and T. A. Thayer.Software requirements: Are they really a problem? Proceedings of the 2nd international conference on Software engineering. IEEE Computer Society Press, 1976.
  12. Book: DOD-STD-2167 - Military Standard : Defence System Software Development" . 1985-06-04 . Department of Defence, United States of America . 11.
  13. Web site: Military Standard Defense System Software Development.
  14. US Department of Justice (2003). INFORMATION RESOURCES MANAGEMENT Chapter 1. Introduction.
  15. Book: https://books.google.com/books?id=z8UdPmvkBHEC&pg=PA29 . Chapter 2: The Software Development Life Cycle . Software Testing: Testing Across the Entire Software Development Life Cycle . Everatt, G.D. . McLeod, R Jr . John Wiley & Sons . 29โ€“58 . 2007 . 9780470146347.
  16. Web site: QuickStudy: System Development Life Cycle . Russell . Kay . May 14, 2002 . ComputerWorld.
  17. Book: Introduction to Logistics Engineering . Taylor, G.D. . CRC Press . 12.6โ€“12.18 . 2008 . 9781420088571.
  18. Book: Information Systems Control and Audit . Institute of Chartered Accountants of India. Chapter 5. 5.28. August 2013.
  19. Web site: Shah . Kazim . The Maintenance Phase Of Software Development Life Cycle . primetechnologiesglobal . kazim shah . 12 May 2024.
  20. Web site: Radack . S. . n.d. . The system development life cycle (SDLC) . National Institute of Standards and Technology.
  21. Book: McConnell, Steve . Rapid Development: Taming Wild Software Schedules . Microsoft Press . 1996 . 1-55615-900-5 .
  22. Web site: Waterfall Software Development Model . 11 August 2014 . 5 February 2014 .
  23. News: Arcisphere technologies . Tutorial: The Software Development Life Cycle (SDLC) . 2012 . 2012-11-13 .
  24. Web site: Hughey . Douglas . Comparing Traditional Systems Analysis and Design with Agile Methodologies . University of Missouri โ€“ St. Louis . 11 August 2014 . 2009.
  25. Saravanos . Antonios . Curinga . Matthew X. . December 2023 . Simulating the Software Development Lifecycle: The Waterfall Model . Applied System Innovation . en . 6 . 6 . 108 . 10.3390/asi6060108 . free . 2571-5577. 2308.03940 .
  26. Parnas . David L. . Clements . Paul C. . A rational design process: How and why to fake it . IEEE Transactions on Software Engineering. 1986 . 2 . 251โ€“257 . 10.1109/TSE.1986.6312940 . 5838439 . 2011-03-21.
  27. Book: McConnell, Steve . Code Complete, 2nd edition . Microsoft Press . 2004 . 1-55615-484-4 .
  28. Book: Ensmenger, Nathan. 2010. The Computer Boys Take Over. limited. 978-0-262-05093-7. 42. MIT Press .
  29. Larman . Craig . Basili . Victir . Iterative and Incremental Development: A Brief History . IEEE Computer . 2003 . June . 10.1109/MC.2003.1204375 . 36 . 6 . 47โ€“56. 9240477 . subscription .
  30. Web site: Methodology:design methods . 2018-05-16 . 2016-03-03 . https://web.archive.org/web/20160303215053/http://myprojects.kostigoff.net/methodology/development_models/development_models.htm . dead .