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

From Expertiza_Wiki
Jump to navigation Jump to search
Line 81: Line 81:


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.  
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|alt=Graph showing waterfall and agile success rates.|Waterfall and agile success rates]]
[[File:Agile-Waterfall-Success-Failure-Rates.jpg|frame|alt=Graph showing waterfall and agile success rates.|Waterfall and agile success rates]]


== Choosing the Right Methodology ==
== Choosing the Right Methodology ==

Revision as of 02:50, 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 lifecycle 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 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 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 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. Other disadvantages can be listed as 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.
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 projects 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 using the planning Game and collective ownership of the product.
  • Face to Face Communication through paired programming, open space, on-site customer, 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 attend 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.
  • 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.

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.
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.
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.

See also

References

<references />