CSC/ECE 517 Spring 2014/ch1 1w1m bm: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
 
(59 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://docs.google.com/a/ncsu.edu/document/d/1XzVu0zEuk7LP4smGZV9lRpSx5-wri6oClpUAmGYPN44/edit# Writing Assignment 1b]
= Comparison of Waterfall, Prototype, and Agile Development =
= Comparison of Waterfall, Prototype, and Agile Development =


== Introduction ==
== Background ==
Project management can concern many different types of activity or project, and project managers are in charge of executing the planning, organization, management and control of resources to make it happen. Project managers identify a number of steps/strategies to complete a project. This article seeks to provide information about different development strategies, comparing their efficacy through empirical research.
Project management can concern many different types of activities or projects, and project managers are in charge of executing the planning, organization, management and control of resources to make it happen. Project managers identify a number of steps and strategies to complete a project, and the software development process is no different. These project management steps help determine the development process and [http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Spring_2014/ch1_1w1m_bm#Terms life cycle] of a piece software. Certain management processes have been developed into models that describe exactly how to design, implement, and maintain software products. This article compares three such development models: [http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Spring_2014/ch1_1w1m_bm#Traditional_.28Waterfall.29_Development waterfall (traditional)] software development, [http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Spring_2014/ch1_1w1m_bm#Agile_Development agile] software development, and [http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Spring_2014/ch1_1w1m_bm#Prototype_Development prototype] software development.


== Background ==
A software development methodology is a framework that is used to structure, plan and control the process of development. Over the past few years, the trend in software development has been to use an agile approach. Before this, traditional approaches required precise and extensive planning, which left the process vulnerable to changing requirements and unforeseen problems. Agile development, on the other hand, attempts to adapt to changing conditions and requirements. Similarly, prototyping helps decide what specifications and features should be implemented in a product by providing a working model that users can interact with, thus allowing them to provide more beneficial feedback. The following sections provide a quick overview of these software development processes.
Software development methodology is a framework that is used to structure,plan and control the process of development.Over the past few years, the trend in software development has been to use an agile approach. Before this, traditional approaches required precise and extensive planning, which left the process vulnerable to changing requirements and unforeseen problems. Agile development, on the other hand, attempts to adapt to changing conditions and requirements. Similarly, prototyping helps decide what specifications and features should be implemented in a product by providing a working model that users can interact with, thus allowing them to provide more beneficial feedback. The following sections provide a quick overview of these software development processes.


=== Traditional (Waterfall) Development ===
=== Traditional (Waterfall) Development ===
As stated before, waterfall relies on extensive planning, mapping out an entire process from start to finish. Progress flows steadily in one direction (as in a waterfall). The phases in this process include Conception, Initiation, Analysis, Design, Construction, Testing, and Maintenance <ref>[http://www.techrepublic.com/article/understanding-the-pros-and-cons-of-the-waterfall-model-of-software-development/# Understanding the pros and cons of the Waterfall Model of software development]</ref>.In the early days of software development, this methodology was adapted from construction and manufacturing industries because there was no formal model for software development.
As stated before, waterfall relies on extensive planning, mapping out an entire process from start to finish. Progress flows steadily in one direction (as in a waterfall). The phases in this process include Conception, Initiation, Analysis, Design, Construction, Testing, and Maintenance <ref>[http://www.techrepublic.com/article/understanding-the-pros-and-cons-of-the-waterfall-model-of-software-development/# Understanding the pros and cons of the Waterfall Model of software development]</ref>. In the early days of software development, this methodology was adapted from construction and manufacturing industries because there was no formal model for software development. The first stage of the waterfall model considers the development of the project with an initial project plan. This is essentially a blueprint that software developers will use to construct the product which remains constant throughout the various phases of the model. These designs may be in the form of different components that will be later combined to produce functionality; however, a new phase may not be started until the first is completely done.
The first stage of waterfall model considers the development of the project with an initial project plan. This is essentially a blueprint that software developers will use to construct the product which remains constant throughout the various phases of the model. These designs may be in the form of different components that will be later combined to produce functionality; however, a new phase may not be started until the first is completely done.
 
Any project for which complete and consistent requirements are available is amenable to the waterfall model. In general, this will tend to be a very small project.The only large projects that are amenable to the waterfall model would be projects of re-engineering an existing system, where all the requirements are known well before starting the process of change.
Any project for which complete and consistent requirements are available is amenable to the waterfall model. In general, this will tend to be a very small project. The only large projects that are amenable to the waterfall model would be projects of re-engineering an existing system, where all the requirements are known well before starting the process of change.
 
==== Advantages ====
==== Advantages ====
Traditional software development has the advantage of fully understanding the problem from the outset and producing a clear, and finalized set of specifications. This allows progress to clearly be identified, as each step in the process can be measured. This also allows all team members to be on the same page; if someone is unsure about an aspect of the project, they can refer to the concrete list of specifications. Because so much effort goes into planning before writing code actually begins, it is also easy to identify design flaws.
Traditional software development has the advantage of fully understanding the problem from the outset and producing a clear, and finalized set of specifications. This allows progress to clearly be identified, as each step in the process can be measured. This also allows all team members to be on the same page; if someone is unsure about an aspect of the project, they can refer to the concrete list of specifications. Because so much effort goes into planning before writing code actually begins, it is also easy to identify design flaws. The advantages are:
 
* Being a linear model, it is very simple to implement.
* The amount of resources required to implement this model are minimal.
* Documentation is produced at every stage of the software's development. This makes understanding the product designing procedure simpler.
* After every major stage of software coding, testing is done to check the correct running of the code.


==== Disadvantages ====
==== Disadvantages ====
While fully understanding a problem before software development begins is great, this is often not the case in the real world. In reality, customers often do not know what they want, or if they do, this often changes once they see the product in action. Since the project plan is framed at a very early stage, the estimations can be inaccurate. The inaccurate measures trickles down till the last phase and the final product suffers many flaws. Studies as mentioned in <ref>https://dspace.mit.edu/bitstream/handle/1721.1/34801/57553849.pdf?sequence=1</ref> show that ''(Fig 1)'' an estimate done at early stages result in 50-100% inaccurate. Another disadvantage with the waterfall model is analyzing various risk factors. List of potential risk factors include aspects like finance, resource, schedule and technology. Rapidly evolving technologies often make fully understanding a problem before development difficult. More often, it is not known how something will be implemented before development begins, or a theoretical design may prove unfeasible.
Ironically, the biggest disadvantage of traditional development is one of its greatest advantages. While fully understanding a problem before software development begins is great, this is often not the case in the real world. In reality, customers often do not know what they want, or if they do, this often changes once they see the product in action. Since the project plan is framed at a very early stage, the estimations can be inaccurate. The inaccuracy can trickle down until the last phase, and the final product may suffer many flaws. Studies as mentioned in <ref>https://dspace.mit.edu/bitstream/handle/1721.1/34801/57553849.pdf?sequence=1</ref> show that ([http://wiki.expertiza.ncsu.edu/index.php/File:Waterfall_inaccuracy.PNG Fig 1]) an estimate done at early stages result inaccuracies of 50-100%. Another disadvantage with the waterfall model is analyzing various risk factors. Potential risk factors include aspects like finances, resources, schedule and technology. Rapidly evolving technologies often make fully understanding a problem before development difficult. More often, it is not known how something will be implemented before development begins, or a theoretical design may prove unfeasible. Other disadvantages can be seen below:
[[ File:Waterfall_inaccuracy.PNG|thumb|1000px|alt=Inaccuracy in waterfall.|Inaccuracy in waterfall model]]
* It is very difficult to go back and change something that was not well-thought out in the concept stage.
* No working software is produced until late during the life cycle.
* Not a good model for complex and object-oriented projects.
* Poor model for long and ongoing projects.
 
[[ File:Waterfall_inaccuracy.PNG|thumb|1000px|alt=Inaccuracy in waterfall.|Fig. 1.1 - Inaccuracy in waterfall model]]


=== Agile Development ===
=== Agile Development ===
In contrast to traditional development, agile software development attempts to adapt nimbly to changing environments. These may include accelerated deadlines and changes in user requirements. According to the "agile manifesto",<ref>[http://agilemanifesto.org/ The Agile Manifesto]</ref>, the agile software development process values:
In contrast to traditional development, agile software development attempts to adapt nimbly to changing environments. These may include accelerated deadlines and changes in user requirements. According to the "agile manifesto" <ref>[http://agilemanifesto.org/ The Agile Manifesto]</ref>, the agile software development process values:
* Individuals and interactions over processes and tools
* Individuals and interactions over processes and tools.
* Working software over comprehensive documentation
* Working software over comprehensive documentation.
* Customer collaboration over contract negotiation
* Customer collaboration over contract negotiation.
* Responding to change over following a plan
* Responding to change over following a plan.
Within agile development, there are several different types, including Scrum and Extreme Programming (XP). ([http://www.versionone.com/Agile101/Agile-Development-Methodologies-Scrum-Kanban-Lean-XP/ A more substantial list of agile methodologies with descriptions].)
Within agile development, there are several different types, including [http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Spring_2014/ch1_1w1m_bm#Terms Scrum and Extreme Programming (XP)]. ([http://www.versionone.com/Agile101/Agile-Development-Methodologies-Scrum-Kanban-Lean-XP/ A more substantial list of agile methodologies with descriptions].)
==== Advantages ====
==== Advantages ====
Agile software methodologies offer flexibility, promoting evolutionary development. As the product is developed, customer feedback and testing are incorporated simultaneously. <ref name="Waterfall: Evaluating The Pros And Cons">[https://www.udemy.com/blog/agile-vs-waterfall/ Agile Vs. Waterfall: Evaluating The Pros And Cons]</ref> In this manner, agile software development is especially beneficial when a customer's requirements are changing or unclear. Furthermore, as stated in the agile manifesto, agile methodologies promote teamwork and cohesion. Agile methodologies clearly state their believe that people is the main driver to the projects success, rather than the process and the tool. Agile Methodologies encourage individuals and their interaction through several practices and principles; <br>
Agile software methodologies offer flexibility, promoting evolutionary development. As the product is developed, customer feedback and testing are incorporated simultaneously. <ref name="Waterfall: Evaluating The Pros And Cons">[https://www.udemy.com/blog/agile-vs-waterfall/ Agile Vs. Waterfall: Evaluating The Pros And Cons]</ref> In this manner, agile software development is especially beneficial when a customer's requirements are changing or unclear. Furthermore, as stated in the agile manifesto, agile methodologies promote teamwork and cohesion. Agile methodologies clearly believe that people are the main driver to the project's success, rather than the process and the tool. Agile Methodologies encourage individuals and their interaction through several practices and principles:  
* Motivated individuals and Self organized team: Planning Game, Collective ownership.
* Motivated individuals and self organized teams, using the planning game and collective ownership of the product.
* Face to Face Communication: Pair programming, Open space, On-site customer, Planning game.
* Face to face communication through paired programming, open space, on-site customers, the planning game.
* Sustainable Base.
* Sustainable base.


==== Disadvantages ====
==== Disadvantages ====
The changing nature of agile software development makes things like schedule and budgets somewhat hard to predict. <ref name="Waterfall: Evaluating The Pros And Cons"></ref> While the collaborative nature of agile methodologies can be a benefit, it is also a hindrance, since team members are often involved for the life of the project. This requires designers to still attend to the project's changing specifications after initial design has been completed.
The changing nature of agile software development makes things like schedule and budgets somewhat hard to predict. <ref name="Waterfall: Evaluating The Pros And Cons"></ref> While the collaborative nature of agile methodologies can be a benefit, it is also a hindrance, since team members are often involved for the life of the project. This requires designers to still tend to the project's changing specifications after initial design has been completed. Some common complaints about agile methodologies include:
* Requires too much cultural change to adopt.<br>
* It requires too much cultural change to adopt.
* Go against "Human Psychology": many human factors goes against Agile methodologies, such as: People prefer to follow a process, No milestones, People self-interest, mini-dictatorships, Knowledge monopolies, Resource management vanish, customer dissatisfaction.<br>
* It goes against basic human "psychology": people prefer to follow a process, have milestones, and are geared towards their own self-interests.
* The cost efficiency of pair programming is questionable.<br>
* The cost efficiency of pair programming can be questionable in certain situations.


[[Image:dilbert-Interaction.gif|center]]<br>
[[Image:dilbert-Interaction.gif|center]]<br>


=== Prototype Development ===
=== Prototype Development ===
The prototype development process can be used to provide a working model of a product or some aspect of the product for testing and feedback. This is often done during the early stages of development, and it provides the customer a means of proofing the product. <ref name="Software Prototyping and Agile Development">[http://www.impacttechnology.co.uk/software-consultancy/prototyping-agile-dev Software Prototyping and Agile Development]</ref> As the prototype often changes and evolves during the process, it is essentially used to figure out exactly how a component should work.  
The prototype development process can be used to provide a working model of a product or some aspect of the product for testing and feedback. This is often done during the early stages of development, and it provides the customer a means of proofing the product. <ref name="Software Prototyping and Agile Development">[http://www.impacttechnology.co.uk/software-consultancy/prototyping-agile-dev Software Prototyping and Agile Development]</ref> As the prototype often changes and evolves during the process, it is essentially used to figure out exactly how a component should work. Prototyping is most commonly incorporated into agile software development and not used as stand-alone development process.
*Individuals could become singularly responsible for specific areas of the project in individual ownership. This can pose a problem when any one individual leaves the project. The degree to which this may affect the project varies, depending on how well the individual has documented the program and on how much time there is to get somebody else trained before the individual leaves. When everyone has a stake in knowing every piece of code, as in a collective ownership scenario, this danger is less.
 
*Another problem is that modules that are too insular may become ‘miniprojects’ consisting of just a few developers each. Each miniproject may have its own set of coding styles, designs, politics, feature wars, and preferred technologies. Integrating these miniprojects into one collective, consistent product might prove to be impossible, depending how much they have been allowed to diverge. The problem worsens when the project scales up, particularly when not all the developers will fit into one room. In collective ownership the likelihood of very divergent coding practices amongst different groups is less likely.
*When only specific individuals are familiar with certain portions of the codebase, others on the team can be held up waiting for changes to be made. In addition, the amount of work needed for different sections of a project can change during the course of development. If individual ownership of each section is promoted too much, work loads can become lopsided
==== Advantages ====
==== Advantages ====
Software prototyping essentially provides a means for agile software development because it opens a discussion about what customers want. Customers can use the prototype, see what they like and dislike, and this reduces the cost of making the change later in the project. As customers and software developers often have different vocabularies and interpretations of the requirements, a prototype allows customers and other users to provide more meaningful feedback.  
Software prototyping essentially provides a means for agile software development because it opens a discussion about what customers want. Customers can use the prototype, see what they like and dislike, and this reduces the cost of making the change later in the project. As customers and software developers often have different vocabularies and interpretations of the requirements, a prototype allows customers and other users to provide more meaningful feedback. Major advantages of prototype model are:
* Repeated or continuous development helps in risk management
* Adaptability in the design in software engineering accommodates any number of changes, that may happen, during any phase of the project.
* Cost estimation becomes easy and the customer can gain control on administration of the new system since the prototype building is done in small fragments or bits.
* As the model continues towards final phase, the customer's expertise on new system grows, enabling smooth development of the product meeting client's needs.


==== Disadvantages ====
==== Disadvantages ====
Because prototypes often do not depict the entire project, their use can lead to misinterpretation. The limited prototype can distract users from the big picture, which can lead to overlooking other solutions. In the case of customers, they may see a limited prototype as an insufficient substitute for the product as a whole, and they may not provide the beneficial feedback the prototype was intended for. Another problem is that too much time, effort, and money can be invested in a prototype that is intended to be thrown away. <ref name="Software Prototyping Wiki">[http://en.wikipedia.org/wiki/Software_prototyping#Advantages_of_prototyping Software Prototyping Wiki]</ref>
Because prototypes often do not depict the entire project, their use can lead to misinterpretation. The limited prototype can distract users from the big picture, which can lead to overlooking other solutions. In the case of customers, they may see a limited prototype as an insufficient substitute for the product as a whole, and they may not provide the beneficial feedback the prototype was intended for. Another problem is that too much time, effort, and money can be invested in a prototype that is intended to be thrown away. <ref name="Software Prototyping Wiki"> [http://en.wikipedia.org/wiki/Software_prototyping#Advantages_of_prototyping Software Prototyping Wiki]</ref>
[[Image:prototype.gif|center]]


== An Empirical Study in Agile Development ==
Major is that modules that are too insular may become ‘mini-projects’ consisting of just a few developers each. Each mini-project may have its own set of coding styles, designs, politics, feature wars, and preferred technologies. Integrating these mini-projects into one collective, consistent product might prove to be impossible, depending how much they have been allowed to diverge. The problem worsens when the project scales up, particularly when not all the developers will fit into one room. In collective ownership the likelihood of very divergent coding practices amongst different groups is less likely.
 
Prototype methodology could also lead to individuals becoming singularly responsible for specific areas of the project in individual ownership. This can pose a problem when any one individual leaves the project. The degree to which this may affect the project varies, depending on how well the individual has documented the program and on how much time there is to get somebody else trained before the individual leaves. When everyone has a stake in knowing every piece of code, as in a collective ownership scenario, this danger is less. In the same way, when only specific individuals are familiar with certain portions of the codebase, others on the team can be held up waiting for changes to be made. In addition, the amount of work needed for different sections of a project can change during the course of development. If individual ownership of each section is promoted too much, work loads can become lopsided.
 
== Empirical Studies in Agile Development ==
=== Agile versus Waterfall Development in the Real World ===
The paper [http://www.producao.ufrgs.br/arquivos/disciplinas/507_artigo_3_empirical_systematic_review.pdf Empirical studies of agile software development: A systematic review]<ref name="Empirical studies of agile software development: A systematic review">[http://www.producao.ufrgs.br/arquivos/disciplinas/507_artigo_3_empirical_systematic_review.pdf Empirical studies of agile software development: A systematic review]</ref>, published in 2008, sought to determine how exactly agile software methodologies were being used in the real world. As agile was not a widely known concept until 2001, they analyzed published findings concerning agile software development between 2001 and 2005. During that time, a survey of American and European countries showed that only 14% of companies were using agile methodologies, while 49% were interesting in adopting them. During an analysis of some 36 papers, it was uncovered that customers often praised agile methodologies for letting them feel that they had complete control over the development process. In addition, customers reported that daily meetings kept them up to date on the product's status, and developers were often more clear about what their development objectives were. However, in some cases, the collaborative nature of agile methodologies proved difficult in outsourced projects, as some customers were required to become acclimatizes the working processes of outside developers.
The paper [http://www.producao.ufrgs.br/arquivos/disciplinas/507_artigo_3_empirical_systematic_review.pdf Empirical studies of agile software development: A systematic review]<ref name="Empirical studies of agile software development: A systematic review">[http://www.producao.ufrgs.br/arquivos/disciplinas/507_artigo_3_empirical_systematic_review.pdf Empirical studies of agile software development: A systematic review]</ref>, published in 2008, sought to determine how exactly agile software methodologies were being used in the real world. As agile was not a widely known concept until 2001, they analyzed published findings concerning agile software development between 2001 and 2005. During that time, a survey of American and European countries showed that only 14% of companies were using agile methodologies, while 49% were interesting in adopting them. During an analysis of some 36 papers, it was uncovered that customers often praised agile methodologies for letting them feel that they had complete control over the development process. In addition, customers reported that daily meetings kept them up to date on the product's status, and developers were often more clear about what their development objectives were. However, in some cases, the collaborative nature of agile methodologies proved difficult in outsourced projects, as some customers were required to become acclimatizes the working processes of outside developers.


Line 63: Line 80:
As for productivity, for the 36 papers studied, 42% reported an increase in productivity over traditional development methods. The majority of the productivity gain was often seen during the first iteration of the software. In addition, many of the papers reported reduced errors and better overall quality for products developed using agile methodologies.
As for productivity, for the 36 papers studied, 42% reported an increase in productivity over traditional development methods. The majority of the productivity gain was often seen during the first iteration of the software. In addition, many of the papers reported reduced errors and better overall quality for products developed using agile methodologies.


People at Microsoft research lab have done extensive research on the application of agile development on large scale projects.According to the [http://research.microsoft.com/pubs/56015/agiledevatms-esem07.pdf Andrew Begel and Nachiappan Nagappan] dominant agile methodologies used are [http://en.wikipedia.org/wiki/Scrum_(software_development) Scrum],[http://en.wikipedia.org/wiki/Extreme_programming XP] and [http://en.wikipedia.org/wiki/Crystal_Clear_(software_development) Crystal] with in Microsoft. According to the survey, the top benefit of following agile development was improved communication and coordination among team members, quick releases and flexibility of design-quicker response to changes. Some of the downside of the agile development were coordination with other teams, lose sight of big picture and dev/test integration.
People at Microsoft research lab have done extensive research on the application of agile development on large scale projects. Accrding to [http://research.microsoft.com/pubs/56015/agiledevatms-esem07.pdf Andrew Begel and Nachiappan Nagappan] dominant agile methodologies used are [http://en.wikipedia.org/wiki/Scrum_(software_development) Scrum],[http://en.wikipedia.org/wiki/Extreme_programming XP] and [http://en.wikipedia.org/wiki/Crystal_Clear_(software_development) Crystal] within Microsoft. According to the survey, the top benefits of following agile development were improved communication and coordination among team members, quick releases and flexibility of design, and quicker response to changes. Some of the downsides of the agile development were coordination with other teams, losing sight of the big picture, and development and testing integration.
 
[[File:Diff_agile_water.png|thumb|300px|alt=Full-length A graph that shows the advantage of agile over waterfall.|Development in waterfall and agile methodology]]


Acoording to [http://versionone.com/assets/img/files/ChaosManifest_2011.pdf The Chaos Manifesto], the graph below shows the specific results reported from a study conducted based on projects executed from 2002 to 2012. In 2002, agile projects made up less than 2% of over all projects and less than 5% of new application development projects. Today, agile projects account for almost 9% of all projects and 29% of new application development projects. The increase in project success rates can directly tie back to projects resolved through agile process.  
[[File:diff_water_agile.png|thumb|1000px|alt=Full-length A graph that shows the advantage of agile over waterfall.|Fig. 2.1 - Development in waterfall and agile methodology]]
[[File:Agile-Waterfall-Success-Failure-Rates.jpg|alt=Graph showing waterfall and agile success rates.|Waterfall and agile success rates]]


According to [http://versionone.com/assets/img/files/ChaosManifest_2011.pdf The Chaos Manifesto], the graph below shows the specific results reported from a study based on projects executed from 2002 to 2012. In 2002, agile projects made up less than 2% of over all projects and less than 5% of new application development projects. Today, agile projects account for almost 9% of all projects and 29% of new application development projects. The increase in project success rates can directly tie back to projects resolved through agile process.
[[File:Agile-Waterfall-Success-Failure-Rates.jpg|frame|alt=Graph showing waterfall and agile success rates.|Fig. 2.2 - Waterfall and agile success rates]]


== Choosing the Right Methodology ==


When it comes down to which model is better, neither the agile method, prototype or waterfall is inherently better than the other. Each method does have its uses. Waterfall tends to be best for static projects, where it's not likely that many changes will be made throughout the development process. Agile methodology would be a better option for smaller projects where changes are likely to made during the development process. One can consider ''taking best of all'' i.e., taking best aspects of waterfall, prototype and agile combining them in order to make the best possible software development process.
When it comes down to which model is better, neither the agile method, prototype or waterfall is inherently better than the other. Each method does have its uses. Waterfall tends to be best for static projects, where it's not likely that many changes will be made throughout the development process. Agile methodology would be a better option for smaller projects where changes are likely to made during the development process. Incorporating prototypes can help obtain feedback from stakeholders and provide a working model of certain aspects of the product. One can consider ''taking best of all'' i.e., taking best aspects of waterfall, prototype and agile combining them in order to make the best possible software development process.


== Narration ==
=== Methodology Summaries ===
The following table gives a higher level view of the variations between traditional (waterfall), prototype and agile development.
The following table gives a higher level view of the most important aspects of each methodology:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Traditional (Waterfall)
!
! Prototype
! '''Traditional (Waterfall)'''
! Agile
! '''Prototype'''
! '''Agile'''
|-
|-
| Complete solution
| '''Consists of:'''
| Prototype versions
|
| Functional modules
*Complete solution
|  
*Prototype versions
|  
*Functional modules
|-
|-
| Linear development process
| '''Development process:'''
| Milestones and integration
|
| Short iterations
*Linear
|
*Milestones and integration
|  
*Short iterations
|-
|-
| Lock-down change
| '''Changes consist of:'''
| Calibration , prototyping and integration
|
| Experimentation, improvement and re-prioritization
*Changes are locked down
|  
*Calibration  
*Prototyping and integration
|  
*Experimentation  
*Improvement
*Re-prioritization
|-
|-
| Users specify all requirements at the start
| '''Feature set:'''
| User requests are prototyped and later intergrated
|
| User requests embedded throughout the process
*Users specify all requirements at the start
|  
*User requests are prototyped and later intergrated
|  
*User requests embedded throughout the process
|}
|}


Line 102: Line 139:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Traditional (Waterfall)
!
! Prototype
! '''Advantages'''
! Agile
! '''Disadvantages'''
|-
| Structured and sequential
| Incremental approach with “milestones”
| Iterative and incremental
|-
|-
| Process-oriented
| '''Traditional (Waterfall)'''
| Progress-oriented
|
| People-Oriented
*Structured and sequential
*Process-oriented
*Less re-work due to static specification
|
*Command-Control culture
*Heavy documentation
*Scope/requirements decided upfront
*Change demands high cost
|-
|-
| Command-Control culture
| '''Prototype'''
| Prototyping culture
|
| Collaboration culture
*Incremental approach with “milestones”
*Progress-oriented
*Moderate documentation
*Scope/requirements versioned and integrated versions
|  
*Prototype culture
*Change demands considerable cost
*Moderate work in integrating the versions
|-
|-
| Heavy documentation
| '''Agile'''
| Moderate documentation as versions
|
| Low documentation
*Iterative and incremental
|-
*Collaboration culture
| Scope/requirement decided upfront
*Low documentation
| Scope/requirement versioned and integrated
*Scope/requirements easy to adapt and change  
| Scope/requirement easy to adapt and change  
*Change demands least cost
|-
|  
| Change demands high cost
*More re-work due to dynamic specification
| Change demands considerable cost
|-  
| Change demands least cost
|-
| Less re-work due to static specification
| Moderate work in integrating the versions.
| More re-work due to dynamic specification
|}
|}
== Terms ==
* [http://en.wikipedia.org/wiki/Scrum_(software_development) Scrum] - Described as "a flexible, holistic product development strategy where a development team works as a unit to reach a common goal," which is in contrast to traditional, sequentially based strategies
*[http://www.extremeprogramming.org/ Extreme Programming (XP)] - An agile development process that focuses on providing necessary aspects of a product in a timely manner, rather than delivering a monolithic product out of schedule.
* Software Life Cycle - The process of planning, analysis, design, implementation, and maintenance that a piece of software undergoes.


== See also ==
== See also ==
Line 139: Line 186:
*[http://en.wikipedia.org/wiki/Waterfall_model Waterfall Model Waterfall]
*[http://en.wikipedia.org/wiki/Waterfall_model Waterfall Model Waterfall]
*[http://courses.cs.vt.edu/~csonline/SE/Lessons/Waterfall/index.html Waterfall modules]
*[http://courses.cs.vt.edu/~csonline/SE/Lessons/Waterfall/index.html Waterfall modules]
*[http://www.extremeprogramming.org/ Extreme Programming]
* [http://en.wikiversity.org/wiki/Crystal_Methods Crystal]
* [http://agile.csc.ncsu.edu/crystal.html Crystal]
* [http://www.seguetech.com/blog/2013/07/05/waterfall-vs-agile-right-development-methodology Choosing Your Software Development Process: Agile or Waterfall?]
* [http://agile.csc.ncsu.edu/scrum.html Scrum]
* [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.12.4293&rep=rep1&type=pdf Empirical Findings in Agile Methods]
* [http://courses.ncsu.edu/csc326/lec/001/lectures/ChooseProcess.pdf Choosing Your Software Development Process: Agile or Plan-driven?]
* [http://www.lib.ncsu.edu:2097/content/54rr5mbq291rc5cy/ Taken from Empirical Findings in Agile Methods]


== References ==  
== References ==  
<references />
<references />

Latest revision as of 03:16, 25 February 2014

Writing Assignment 1b

Comparison of Waterfall, Prototype, and Agile Development

Background

Project management can concern many different types of activities or projects, and project managers are in charge of executing the planning, organization, management and control of resources to make it happen. Project managers identify a number of steps and strategies to complete a project, and the software development process is no different. These project management steps help determine the development process and life cycle of a piece software. Certain management processes have been developed into models that describe exactly how to design, implement, and maintain software products. This article compares three such development models: waterfall (traditional) software development, agile software development, and prototype software development.

A software development methodology is a framework that is used to structure, plan and control the process of development. Over the past few years, the trend in software development has been to use an agile approach. Before this, traditional approaches required precise and extensive planning, which left the process vulnerable to changing requirements and unforeseen problems. Agile development, on the other hand, attempts to adapt to changing conditions and requirements. Similarly, prototyping helps decide what specifications and features should be implemented in a product by providing a working model that users can interact with, thus allowing them to provide more beneficial feedback. The following sections provide a quick overview of these software development processes.

Traditional (Waterfall) Development

As stated before, waterfall relies on extensive planning, mapping out an entire process from start to finish. Progress flows steadily in one direction (as in a waterfall). The phases in this process include Conception, Initiation, Analysis, Design, Construction, Testing, and Maintenance <ref>Understanding the pros and cons of the Waterfall Model of software development</ref>. In the early days of software development, this methodology was adapted from construction and manufacturing industries because there was no formal model for software development. The first stage of the waterfall model considers the development of the project with an initial project plan. This is essentially a blueprint that software developers will use to construct the product which remains constant throughout the various phases of the model. These designs may be in the form of different components that will be later combined to produce functionality; however, a new phase may not be started until the first is completely done.

Any project for which complete and consistent requirements are available is amenable to the waterfall model. In general, this will tend to be a very small project. The only large projects that are amenable to the waterfall model would be projects of re-engineering an existing system, where all the requirements are known well before starting the process of change.

Advantages

Traditional software development has the advantage of fully understanding the problem from the outset and producing a clear, and finalized set of specifications. This allows progress to clearly be identified, as each step in the process can be measured. This also allows all team members to be on the same page; if someone is unsure about an aspect of the project, they can refer to the concrete list of specifications. Because so much effort goes into planning before writing code actually begins, it is also easy to identify design flaws. The advantages are:

  • Being a linear model, it is very simple to implement.
  • The amount of resources required to implement this model are minimal.
  • Documentation is produced at every stage of the software's development. This makes understanding the product designing procedure simpler.
  • After every major stage of software coding, testing is done to check the correct running of the code.

Disadvantages

Ironically, the biggest disadvantage of traditional development is one of its greatest advantages. While fully understanding a problem before software development begins is great, this is often not the case in the real world. In reality, customers often do not know what they want, or if they do, this often changes once they see the product in action. Since the project plan is framed at a very early stage, the estimations can be inaccurate. The inaccuracy can trickle down until the last phase, and the final product may suffer many flaws. Studies as mentioned in <ref>https://dspace.mit.edu/bitstream/handle/1721.1/34801/57553849.pdf?sequence=1</ref> show that (Fig 1) an estimate done at early stages result inaccuracies of 50-100%. Another disadvantage with the waterfall model is analyzing various risk factors. Potential risk factors include aspects like finances, resources, schedule and technology. Rapidly evolving technologies often make fully understanding a problem before development difficult. More often, it is not known how something will be implemented before development begins, or a theoretical design may prove unfeasible. Other disadvantages can be seen below:

  • It is very difficult to go back and change something that was not well-thought out in the concept stage.
  • No working software is produced until late during the life cycle.
  • Not a good model for complex and object-oriented projects.
  • Poor model for long and ongoing projects.
Inaccuracy in waterfall.
Fig. 1.1 - Inaccuracy in waterfall model

Agile Development

In contrast to traditional development, agile software development attempts to adapt nimbly to changing environments. These may include accelerated deadlines and changes in user requirements. According to the "agile manifesto" <ref>The Agile Manifesto</ref>, the agile software development process values:

  • Individuals and interactions over processes and tools.
  • Working software over comprehensive documentation.
  • Customer collaboration over contract negotiation.
  • Responding to change over following a plan.

Within agile development, there are several different types, including Scrum and Extreme Programming (XP). (A more substantial list of agile methodologies with descriptions.)

Advantages

Agile software methodologies offer flexibility, promoting evolutionary development. As the product is developed, customer feedback and testing are incorporated simultaneously. <ref name="Waterfall: Evaluating The Pros And Cons">Agile Vs. Waterfall: Evaluating The Pros And Cons</ref> In this manner, agile software development is especially beneficial when a customer's requirements are changing or unclear. Furthermore, as stated in the agile manifesto, agile methodologies promote teamwork and cohesion. Agile methodologies clearly believe that people are the main driver to the project's success, rather than the process and the tool. Agile Methodologies encourage individuals and their interaction through several practices and principles:

  • Motivated individuals and self organized teams, using the planning game and collective ownership of the product.
  • Face to face communication through paired programming, open space, on-site customers, the planning game.
  • Sustainable base.

Disadvantages

The changing nature of agile software development makes things like schedule and budgets somewhat hard to predict. <ref name="Waterfall: Evaluating The Pros And Cons"></ref> While the collaborative nature of agile methodologies can be a benefit, it is also a hindrance, since team members are often involved for the life of the project. This requires designers to still tend to the project's changing specifications after initial design has been completed. Some common complaints about agile methodologies include:

  • It requires too much cultural change to adopt.
  • It goes against basic human "psychology": people prefer to follow a process, have milestones, and are geared towards their own self-interests.
  • The cost efficiency of pair programming can be questionable in certain situations.


Prototype Development

The prototype development process can be used to provide a working model of a product or some aspect of the product for testing and feedback. This is often done during the early stages of development, and it provides the customer a means of proofing the product. <ref name="Software Prototyping and Agile Development">Software Prototyping and Agile Development</ref> As the prototype often changes and evolves during the process, it is essentially used to figure out exactly how a component should work. Prototyping is most commonly incorporated into agile software development and not used as stand-alone development process.

Advantages

Software prototyping essentially provides a means for agile software development because it opens a discussion about what customers want. Customers can use the prototype, see what they like and dislike, and this reduces the cost of making the change later in the project. As customers and software developers often have different vocabularies and interpretations of the requirements, a prototype allows customers and other users to provide more meaningful feedback. Major advantages of prototype model are:

  • Repeated or continuous development helps in risk management
  • Adaptability in the design in software engineering accommodates any number of changes, that may happen, during any phase of the project.
  • Cost estimation becomes easy and the customer can gain control on administration of the new system since the prototype building is done in small fragments or bits.
  • As the model continues towards final phase, the customer's expertise on new system grows, enabling smooth development of the product meeting client's needs.

Disadvantages

Because prototypes often do not depict the entire project, their use can lead to misinterpretation. The limited prototype can distract users from the big picture, which can lead to overlooking other solutions. In the case of customers, they may see a limited prototype as an insufficient substitute for the product as a whole, and they may not provide the beneficial feedback the prototype was intended for. Another problem is that too much time, effort, and money can be invested in a prototype that is intended to be thrown away. <ref name="Software Prototyping Wiki"> Software Prototyping Wiki</ref>

Major is that modules that are too insular may become ‘mini-projects’ consisting of just a few developers each. Each mini-project may have its own set of coding styles, designs, politics, feature wars, and preferred technologies. Integrating these mini-projects into one collective, consistent product might prove to be impossible, depending how much they have been allowed to diverge. The problem worsens when the project scales up, particularly when not all the developers will fit into one room. In collective ownership the likelihood of very divergent coding practices amongst different groups is less likely.

Prototype methodology could also lead to individuals becoming singularly responsible for specific areas of the project in individual ownership. This can pose a problem when any one individual leaves the project. The degree to which this may affect the project varies, depending on how well the individual has documented the program and on how much time there is to get somebody else trained before the individual leaves. When everyone has a stake in knowing every piece of code, as in a collective ownership scenario, this danger is less. In the same way, when only specific individuals are familiar with certain portions of the codebase, others on the team can be held up waiting for changes to be made. In addition, the amount of work needed for different sections of a project can change during the course of development. If individual ownership of each section is promoted too much, work loads can become lopsided.

Empirical Studies in Agile Development

Agile versus Waterfall Development in the Real World

The paper Empirical studies of agile software development: A systematic review<ref name="Empirical studies of agile software development: A systematic review">Empirical studies of agile software development: A systematic review</ref>, published in 2008, sought to determine how exactly agile software methodologies were being used in the real world. As agile was not a widely known concept until 2001, they analyzed published findings concerning agile software development between 2001 and 2005. During that time, a survey of American and European countries showed that only 14% of companies were using agile methodologies, while 49% were interesting in adopting them. During an analysis of some 36 papers, it was uncovered that customers often praised agile methodologies for letting them feel that they had complete control over the development process. In addition, customers reported that daily meetings kept them up to date on the product's status, and developers were often more clear about what their development objectives were. However, in some cases, the collaborative nature of agile methodologies proved difficult in outsourced projects, as some customers were required to become acclimatizes the working processes of outside developers.

From a developer's standpoint, many papers reported that developers felt more comfortable using an agile methodology like XP or paired programming. In particular, many developers reported that paired programming seemed to make the process quicker; however, they also reported that this process seemed more tiring, as it required intense concentration. Furthermore, Scrums were favored by developers, and they even led to a reduction in overtime in certain cases.

As for productivity, for the 36 papers studied, 42% reported an increase in productivity over traditional development methods. The majority of the productivity gain was often seen during the first iteration of the software. In addition, many of the papers reported reduced errors and better overall quality for products developed using agile methodologies.

People at Microsoft research lab have done extensive research on the application of agile development on large scale projects. Accrding to Andrew Begel and Nachiappan Nagappan dominant agile methodologies used are Scrum,XP and Crystal within Microsoft. According to the survey, the top benefits of following agile development were improved communication and coordination among team members, quick releases and flexibility of design, and quicker response to changes. Some of the downsides of the agile development were coordination with other teams, losing sight of the big picture, and development and testing integration.

Full-length A graph that shows the advantage of agile over waterfall.
Fig. 2.1 - Development in waterfall and agile methodology

According to The Chaos Manifesto, the graph below shows the specific results reported from a study based on projects executed from 2002 to 2012. In 2002, agile projects made up less than 2% of over all projects and less than 5% of new application development projects. Today, agile projects account for almost 9% of all projects and 29% of new application development projects. The increase in project success rates can directly tie back to projects resolved through agile process.

Graph showing waterfall and agile success rates.
Fig. 2.2 - Waterfall and agile success rates

Choosing the Right Methodology

When it comes down to which model is better, neither the agile method, prototype or waterfall is inherently better than the other. Each method does have its uses. Waterfall tends to be best for static projects, where it's not likely that many changes will be made throughout the development process. Agile methodology would be a better option for smaller projects where changes are likely to made during the development process. Incorporating prototypes can help obtain feedback from stakeholders and provide a working model of certain aspects of the product. One can consider taking best of all i.e., taking best aspects of waterfall, prototype and agile combining them in order to make the best possible software development process.

Methodology Summaries

The following table gives a higher level view of the most important aspects of each methodology:

Traditional (Waterfall) Prototype Agile
Consists of:
  • Complete solution
  • Prototype versions
  • Functional modules
Development process:
  • Linear
  • Milestones and integration
  • Short iterations
Changes consist of:
  • Changes are locked down
  • Calibration
  • Prototyping and integration
  • Experimentation
  • Improvement
  • Re-prioritization
Feature set:
  • Users specify all requirements at the start
  • User requests are prototyped and later intergrated
  • User requests embedded throughout the process

The features, advantages and disadvantages of the three models are tabulated as follows:

Advantages Disadvantages
Traditional (Waterfall)
  • Structured and sequential
  • Process-oriented
  • Less re-work due to static specification
  • Command-Control culture
  • Heavy documentation
  • Scope/requirements decided upfront
  • Change demands high cost
Prototype
  • Incremental approach with “milestones”
  • Progress-oriented
  • Moderate documentation
  • Scope/requirements versioned and integrated versions
  • Prototype culture
  • Change demands considerable cost
  • Moderate work in integrating the versions
Agile
  • Iterative and incremental
  • Collaboration culture
  • Low documentation
  • Scope/requirements easy to adapt and change
  • Change demands least cost
  • More re-work due to dynamic specification

Terms

  • Scrum - Described as "a flexible, holistic product development strategy where a development team works as a unit to reach a common goal," which is in contrast to traditional, sequentially based strategies
  • Extreme Programming (XP) - An agile development process that focuses on providing necessary aspects of a product in a timely manner, rather than delivering a monolithic product out of schedule.
  • Software Life Cycle - The process of planning, analysis, design, implementation, and maintenance that a piece of software undergoes.

See also

References

<references />