Scrum Methodology in Agile Software Development

From apppm
Revision as of 22:48, 28 September 2015 by S150821 (Talk | contribs)

Jump to: navigation, search

Today market is affected by uncertainly and sudden changes, in these conditions most of the models used in the 20th century to develop software are not still appropriate. Waterfall model , probably the most famous between them, is characterized by a stiff structure which can’t cope with the turbulent needs of the actual market. In recent years many innovations are been enhanced in software engineering with a particular focus on the flexibility of these methods in order to cope with the customers' and markets' needs; surely Agile Software Development (ASD) is between them.

ASD embraces the principles of Lean Production by applying them in software development to avoid waste and increase responsiveness to change. It represents the solution to the unpredictability of the market where the capacity "to welcome change even late in development" (K. Beck et all, 2001)[1] is required. This article deals with Agile Software Development with a particular focus on one of its most used technique : Scrum Methodology.

Contents

Scrum Methodology

Scrum is an iterative method used to develop software, it can be placed inside the group of methods which are used in ASD. This word is taken from rugby and represents that phase of the match where an ordered formation of players, with arms interlocked and heads down, push forward against a similar group to gain possession of the ball[2]. This method provides that "work is divided into small chunks to manage complexity and to get early feedback from customers and end users" (S. Augustine, 2005)[3]; software development is carried out by small working team that allow rapid adjustment during the process and a quick delivery of the final product.

Agile Software Development

At the end of the 20th century there were some practitioners who believed that traditional Iterative model was not so responsive to market changes. They defined Agile a process which was able to accept change rather than stress predictability.They also believed that to well face customers’ needs development software methods have to respond to change as quickly as it arose rather than prevent changes.[2]

It was in these circumstances that practitioners as Mary Poppendieck and Bob Charet started to take inspiration from Lean manufacturing principles and apply them to software development. These are the main points ,according to Poppendieck, which make Lean Production so successful and that can be applied to software development:

  • elimination of waste that does not add value to the customer such as diagram and models that do not add value to the final deliverable;
  • minimize inventory such as requirements and design documents;
  • maximize flow by using iterative development to reduce development time;
  • pull from demand;
  • empower workers that means “tell developer what needs to be done not how to do it";
  • meet customer requirements – work closely with the customer, allowing them to change their minds
  • do it right the first time – test early and refactor when necessary;
  • abolish local optimization – flexibly manage scope;
  • partner with suppliers – avoid adversarial relationships, work towards developing the best software;
  • create a culture of continuous improvement – allow the process to improve, learn from mistakes and successes.[2][4]

Manifesto for the Agile Software development

A few years before Poppoendieck’s publication, on February 2001,a group of seventeen software developers published in a work called “Manifesto for the Agile Software Development”[1] the main principles of Agile Software development.


From reading these few words it is possible to identify what are the main innovations that ASD introduced in Software development:

Manifesto for the Agile Software development[1]


  • “Individuals and interactions”: with these words founders want to remark the power of human being creativity and also the ability of each man to collaborate with his other similars. The stiffness of Waterfall model is instead represented by “processes and tools” where people was used to follow only what the plan required.
  • “Working software“: here there is a clear reference to the new way of developing software where at every iteration a working program is realised. This is different from the previous model in which a working program couldn’t be seen until the end of the project. This feature is put over the “comprehensive documentation” which characterizes especially Waterfall model.
  • “Customer collaboration”: it means that there must be a straight relationship between customer and developer in order to define time by time the projects requirements and evaluate every realise.
  • “Responding to change over following a plan” : this sentence encloses the essence of Agile software Development that is to cope with turbulent markets by being flexible and by responding quickly to change. This concept was remarked by the founders in one of the twelve principles which follow the manifesto which says “Welcome changing requirements, even late in development […]”.[1]

Application

Scrum Framework

There are two concepts that are at the basement of Scrum methodology: iterative development and team working. Developing in iterations allow Scrum team to adapt quickly to changing requirements, while working in close location and focusing on communication allow team to make decisions and act on them immediately rather than wait on correspondence.[2]

Basically Scrum consists in a sequence of fixed-length iterations called Sprint that are the fundamental units in which the whole project is divided. As the picture shows Scrum framework is really simple: it starts from a vision like all projects. This idea is converted into a plan during the preliminary meetings where customers and developers identifies the main software requirements and defines the Product Backlog. This represents the entire amount of work that has to be done in order to develop the software. In the next step Product Backlog is divided into several Sprint Backlogs that define which tasks have to be done during the following Sprint. During these iterations the product experiences an incremental development at the end of which it is potentially shippable.

Every Sprint is managed by one or more cross-functional and self-organizing teams each composed by seven people. There are also other two actors whose task is to be supportive of the software development. One is the Product Owner who mainly handles customers contacts, and the other is the Scrum Master whose main task is to ensure that development team can work without obstacles.

Each sprint usually lasts from 2 to 4 weeks, in this period there are at least one meeting between the Product Owner and Development Team in order to define the main objectives; then there are also short daily meetings held every morning to enhance communication, inform customers, developers, and managers on the status of the project, identify any problems encountered, and keep the entire team focused on a common goal.[2]

Main Actors in Scrum

Product Owner

Product owner is the link between customers and development team, he ensures that deliverables are in line with customers’ expectation and that stakeholders’ interests are fulfilled. He has also the task to fill out customer-centric items (typically user stories), ranks and prioritizes them before adds them to the Product Backlog.

Usually development teams have only one Product owner, but differently from the Scrum master, he only takes care of the business side and does not interfere with the scrum team about the technological issues. At the beginning of each Sprint the Product Owner holds a Sprint Planning Meeting to state on which Product Backlog Items Scrum team will go to work during the next Sprint. In this phase he defines what are the most important items for that business, in according to the customer’s needs.

Development Team

Development team task is to deliver Product Backlog Items (PBIs) at the end of every Sprint in according with customers’ requirements. Usually each team is composed by cross-functional members that allow an all-round software development; the main figures that there must be are a mix of software engineers, architects, programmers, analysts, QA experts, testers, and UI designers.

The size of the team is an important point, the group members' number influences capacity of people to communicate and work together: it is recommended that a scrum team is composed not more than nine people, usually seven.

Another peculiarity of Scrum team is its Self-organization which facilitates members’ creativity and increases team cohesiveness. For this reason it is recommended to not change the members of a team after they have worked together, especially if they had success in their project. After working together team members gain a mutual understanding that increases their capacity of team working, this synergy cannot be acquired if team are continuously changed.

A further point that characterized the good outcomes of a scrum team is location: people are most successful when located in the same room, particularly for the first few Sprints, this facilitates communication and information sharing.

Team self-organization

Team self-organization is a crucial point in the scrum methodology. This new concept is well explained in the sentence “it is told developer what needs to be done not how to do it”[2]. It means that they can autonomously choose the way to reach commitments. Furthermore, as it is explained previously, during Sprint execution team members develop an intrinsic interest in shared goals, in this way self-organizing teams can radically outperform larger than traditionally managed teams. It has to be specified that an optimal self-organization takes time: it may be possible that for the first few sprints developers perform worse than when they work in the traditional way.

Some requirements are necessary to gain a good team self-organization:

  • members are committed to clear, short-term goals;
  • members can gauge the group’s progress;
  • members can observe each other’s contribution;
  • members feel safe to give each other unvarnished feedback.[5]


Conversely there are some conditions that can hamper self-organization:

  • geographical distribution: it is better if the whole team work in a room;
  • boss/work dynamics: each member has to consider the others as peer to facilitate a fair communication between them;
  • part-time team members;
  • interruptions unrelated to Sprint goals.

Scrum Master

The scrum master worries that Scrum team can work without obstacles but he has no management authority over them. Essentially he has the aim to:

  • create an environment to promote team self-organization;
  • support team in the achievement of expected goals;
  • ensure that events (e.g. daily Scrum meeting) take place in the right way;
  • keep Scrum artefacts visible (Product Backlog, Sprint Backlog, Sprint burndown chart …).

Sprint

As it is already explained before Sprint (or iteration) is the fundamental unit in which the whole project is divided. It is characterized by a fixed length of 2 weeks or 30 days and by a goal to achieve. At the beginning of each sprint Scrum team , Product Owner , Scrum Master and sometimes also stakeholders hold a meeting, called Sprint Planning meeting. During this encounter it is defined the Sprint Backlog which states what are the goals and requirements of the next Sprint. After this, further meetings inside development team will be held in order to define in more detail how achieving the common goals stated in the previous meetings.

Scrum Meetings

Scrum Meetings[5]

Meetings are the fundamental tool used during the whole Scrum process. Usually they are facilitated by the Scrum master who however has no decision-making authority over them. There are different typologies of meetings according to the different phase of the process in which we are.

Sprint Planning Meeting

At the beginning of each Sprint, the Product Owner and team hold a Sprint Planning Meeting to define on which Product Backlog Items (PBIs) they will go to work during the next Sprint. During this meeting "The Product Owner is responsible for declaring which items are the most important to the business" instead "the team is responsible for selecting the amount of work they feel they can implement" (M. James, 2010)[5].In this phase in perfect Lean perspective the team “pulls” work from the Product Backlog to the Sprint Backlog. At the end of the meeting the selected items are broken into a provisional list of Sprint task. The maximum time that can be used to do Planning meeting, known as timebox, is of eight hours.

Daily Scrum and Sprint Execution

During the sprint every day members of the Scrum team hold a fifteen minutes meeting where they take stock of the situation. Usually they speak about what they did the previous day, which impediments they faced and what they are going to do in the current day. To make these meetings shorter it is better that people are standing. During sprint execution it is common to find out additional tasks necessary to achieve sprint goal; to keep the control over processes during sprint development it could be useful to maintain a current Sprint Task List, a Sprint Burndown Chart, and an Impediments List: these are some artefacts that allow developer to understand where the project is located.

Sprint Review Meeting

At the end of every Sprint it is held a Review meeting where the scrum team has to explain to the Product Owner what they did during the previous sprint. Usually this meeting consists in a live demonstration of the working product increment after which Product Owner states which Items can be considered as done. Items which are declared not done have to return to the Product Backlog to be ranked and reprioritized by the Product Owner with the help of the Scrum master. Last step of this meeting is to convert stakeholders’ feedback to a new Product Log, this task is consigned to both Product Owner and Scrum Master. The Sprint Review Meeting is the appropriate meeting for external stakeholders (even end users) to attend.

Sprint Retrospective Meeting

During this meeting every member of the scrum team inspects his behaviour to identify some impediments that he faced during the Sprint. There are mainly three kind of impediments in which developers can be involved:

  • people who conduct performance evaluation are an obstacles to transparency of the team;
  • human tendency of someone in the team to jump to conclusions and propose actions too quickly;
  • geographical distribution of the team can be an impediments, team work better if they are delimited in a small place like a room.[5]

After identifying all these impediments Scrum master has the task to eliminate them.

Backlog Refinement Meeting

Especially at the beginning of the project "most of the Product Backlog Items (PBIs) need refinement because they are too large and poorly understood" (M. James, 2010)[5]. In the Backlog Refinement Meeting, the gives an estimation of the remaining work that is required to complete the Items in the Product Backlog and provides other technical informations in order to help the Product Owner to prioritize them.

Artefacts

Product Backlog and Sprint Backlog[5]

Product Backlog

It is defined before the project beginning and then upgraded during the Backlog Refinement meeting ; it is made up by the whole group of items which have to be completed during the project in order to realize the final product. Every item is ranked and constantly reprioritized by the Product Owner. It is important that Product Backlog is visible to the stakeholders.

Product Backlog Item (PBI)

An item specifies what has to be done but not how do it. Usually they are written in a User story to be understood also by stakeholders. Every items has a work load of 2-3 days and requires 2-3 people. It represents the basic unit of the Product backlog.

Sprint Backlog[5]

Sprint backlog

It is defined at the beginning of each sprint during the Sprint Planning meeting where the committed items and the main task that have to be done during the sprint are identified. It has to be visible to the Scrum team and also upgraded during the sprint execution with the additional tasks necessary to achieve the final goal.

Sprint task

Every item is divided into several tasks, each of them requires one day or less of work. A sprint task specifies how to achieve what is required by PBI. If the task takes more than one day of work, remaining effort is re-estimated daily, typically in hours.

Sprint Burndown Chart

Sprint Burndown Chart[5]

This tool is used to facilitate self-organization of the team. It indicates the total remaining team task hours within one Sprint. Usually chart shows a decreasing line but if there are some re-estimation it may be possible that line increase for then going down. As picture shows it has a time line in the x axis and the remaining hours of work within one Sprint in the y axis. The advantage of this tool is to show at a first sight at which point of the project you are and the work that is left to complete the Sprint. It is important that this tool is used only as help to Scrum team; in some situations it could become a constraint for developers, in this case Scrum Master has to remove this chart from the room.

Limitations

Scrum method was often used in the object-oriented software development. Actually this technique are applied not only on software but also on other products from different sectors like wheelchairs, semiconductors and mortgages. Scrum has to be used in those projects where people cannot rely on the plan-driven approaches like Waterfall, because of unknown requirements and technology.

Predictability of a Project[5]

Conversely if the projects is placed under precise and stable conditions it is better to use one of the traditional model which allow to have a fixed planning over the whole project. In this case Scrum method would involve in a waste of resources and money because he is working on a field that is not its responsibility.

Michael James in his “Scrum Reference card” explains with a simple graphics in which conditions Scrum should be used and which ones are not. James defines the predictability of the projects on the base of two features: knowledge of the requirements and knowledge of the level of technology required. A project which provides known requirements and a known level of technology should be carried out with a plan-driven model. It these conditions are not met it is better to use an empirical approach like Scrum.[5]

References

  1. 1.0 1.1 1.2 1.3 K. Beck et all., 2001, Manifesto for Agile Software Development[1]
  2. 2.0 2.1 2.2 2.3 2.4 2.5 D.Cohen,M.Lindval,P. Costa,Fraunhofer Center Maryland, Agile Software Development
  3. S. Augustine,2005,Prentice Hall PTR,Managing Agile Projects
  4. M. Poppendieck, T. Poppendieck, 2003, Addison Wesley, Lean Software Development: An Agile Toolkit[[2]]
  5. 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 M. James,2010,Scrum Reference Card, Michael James,[[3]]
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox