Click here to Skip to main content
15,867,453 members
Articles / Web Development / ASP.NET

Agile software development, steps to work with Requirements, Estimation and Planning

Rate me:
Please Sign up or sign in to vote.
4.95/5 (165 votes)
1 Jan 2014CPOL17 min read 391K   309   102
The hardest single part of building a software system is deciding precisely what to build. Everybody in software development has the same goal: Rapid, Reliable, Low Risk delivery of high-quality, valuable functionality to users. This article will help them to achieve their goal.

 

Image 1

Table of Contents

Introduction

This article is about requirements, estimation, and planning in agile software development projects. Agile estimation is often seen as being invaluable, yet others dismiss it as waste. The reasons for this disagreement can be traced to disparities in the Scrum and Lean-Kanban ways of working.

Everybody in software development has the same goal: rapid, reliable, low risk delivery of high-quality, valuable functionality to users. So what will help them to achieve their goal? Just coding?

Image 2 

Background

It is already proven that most of the missed steps in software development projects take place due to poor communication or lack of communication or miscommunication within the team or between the team and customers. So we will discuss on how people who want the software and people who make the software can communicate more effectively.

  1. Just coding doesn't seem to work, does it?
  2. To estimate, or not to estimate?
  3. What if your boss calls on the cell phone and insists on getting an estimate right away?
  4. How do we avoid bad project estimation?

Image 3

I'm not posing anything new or revolutionary here and I'm not expecting a comment like "Fantastic stuff, thanks for posting! " So this article writing is not a big deal for many reasons. I am writing on an old topic because every now and then everyone needs a wakeup call for something they missed .....

Recall 

According to Fredrick P. Brooks

  • The hardest single part of building a software system is deciding precisely what to build.
  • No other part of the conceptual work is as difficult as establishing the detailed technical requirements, including all the interfaces to people, machines, and other software systems.
  • No other part of the work so cripples the resulting system if done wrong.
  • No other part is more difficult to rectify later. 

Image 4

What is a Requirement?

A requirement is a some sort of thing that a customer wants (a feature, behavior, constraint). A requirement is a non-compliable piece of paper. Simply, a requirement is a request of work.

A requirement is not a solution design or implementation. It is not about how to implement a given feature. A requirement doesn't typically describe how the end deliverable product will look like at the time the requirement is given to the team.

The requirements phase may be broken down into requirements elicitation (gathering, understanding, reviewing, and articulating the needs of the stakeholders), analysis (checking for consistency and completeness), specification (documenting the requirements), and validation (making sure the specified requirements are correct).

The IEEE standard for requirements documents.

Traditional Requirement Engineering

Image 5 

Agile Requirement Engineering

Image 6

Estimation

One of the most challenging aspects of any software project is estimation -- determining how long the work will take. It's so difficult, some call it a black art.

Anyone running a software project should own a copy of McConnell's book, Software Estimation: Demystifying the Black Art.

Image 7

Estimating work that is creative and unpredictable is just plain hard. Yet we are asked to give estimates for our software projects up front and early—and despite all our efforts to remind management that these estimates are rough. But…… too often our initial estimates turn into commitments.

Estimates add value where scope is uncertain and there are associated risks to be managed. That's why Scrum teams engaged on projects typically make use of them, but Lean-Kanban BAU teams generally don't.

How Good an Estimator Are You?

If you think you are a good estimator then try the following link: how good an estimator are you?

Image 8

Why Estimations are Necessary?

  1. To plan and proceed deliberately.
  2. Estimates help stakeholders plan ahead. They are part of the value we provide.
  3. To get a feel for costs.
  4. To calculate potential ROI.
  5. To understand the size of something.
  6. Estimates help us to de-risk the scope of uncertain size and complexity.
  7. To know if work even can be done.

Ways People Estimate Software

Here are some fantastic (may be not) ways people estimate software.

  1. Darts.
  2. Give it to the manager: Managers are more skilled and there is a huge possibility to underestimate the work/ feature.
  3. Ask the expert: Architects or domain experts are experts on their own domain but may not know about the capabilities of the team who will develop the system.
  4. Without "bothering" the developers. They are busy.

Image 9

Often managers determine a team member’s workload capacity in terms of time. That is, managers estimate how long they anticipate certain tasks will take and then assign work based on that team member’s total available time. This is problematic because it does not distinguish between a story that is very hard to complete and one that is undemanding; it only considers how long the work will take!

How to Estimate?

In the Sprint Planning Meeting, the team sits down to estimate its effort for the stories in the backlog. The Product Owner needs these estimates, so that he or she is empowered to effectively prioritize items in the backlog and, as a result, forecast releases based on velocity. This means the Product Owner needs an honest appraisal of how difficult work will be. Even when the team estimates amongst itself, actions should be taken to reduce influencing how a team estimates. As such, it is recommended that all team members disclose their estimates simultaneously. Because individuals “show their hands” at once, this process is not unlike a game of poker. Unsurprisingly, teams often call estimation “planning poker”. Some teams have even developed their own decks of playing cards expressly for this process.

I like to remind people that bad habits are not overcome by the tool alone. You can still put silly estimates (ranges in this case) into the tool. The same pressures that got you into the bad habits in the first place can do the same to the newest tool, no matter how good the underlying methodology is.

Image 10

Software Estimation: Demystifying the Black Art by McConnell's. It's the definitive work on the topic. Anyone running a software project should own a copy.

So following are some good practices for estimating software:

  1. User Stories
  2. Planning Poker
  3. Story Points
  4. Product Backlog
  5. Velocity
  6. Re-estimation

What is a User Story?

A user story describes the desired functionality from the customer (user) perspective. User story descriptions are traditionally handwritten on paper note cards, Ron Jeffries has named these three aspects with the wonderful alliteration of card, conversation, and confirmation. The card may be the most visible manifestation of a user story, but it’s not the most important. While the card may contain the text of a story, the details are worked out in the conversation and then recorded and verified through the confirmation. A good user story describes the desired functionality, who wants it, and how and why the functionality will be used. - Wiki Definition.

Bill Wake provides us with the INVEST acronym, which says that items should be Independent, Negotiable, Valuable, Estimable, Small, and Testable.

Image 11

Why User Stories?

User stories emphasize verbal communication. Written language is often very imprecise, and there’s no guarantee that a customer and developer will interpret a statement in the same way. For example, at lunch recently I read this on my menu: “Entrée comes with choice of soup or salad and bread.” That should not have been a difficult sentence to understand, but it was. Which of these did it mean I could choose?

  1. Soup or (salad and bread)
  2. (Soup or salad) and bread

Useful for Planning

A second advantage of user stories is that they can be used readily in project planning. User stories are written so that each can be given an estimate of how difficult or time–consuming it will be to develop; use cases, on the other hand, are generally too large to be given useful estimates. Also, a story is implemented all in a single iteration of an agile project, while it’s common to split a use case across multiple iterations (even though those iterations are usually longer than on a story–driven project).

Image 12

Image 13

Image 14

Who Writes User Stories?

Anyone can write user stories. It's the product owner's responsibility to make sure a product backlog of agile user stories exists, but that doesn’t mean that the product owner is the one who writes them. Over the course of a good agile project, you should expect to have user story examples written by each team member. Also, note that who writes a user story is far less important than who is involved in the discussions of it.

Planning Poker

Image 15

Software estimation that really works!!

What if you could answer the question “How long will my software take to build and when will it get done?” by playing a game of cards?

Image 16

Are you kidding?

No I am not ... Let's see how we can do it

  1. Planning poker is attributed to Grenning and is a fairly recent development (2002)
  2. Planning poker combines expert opinion, analogy, and disaggregation into an enjoyable approach to estimating that results in quick but reliable estimates
  3. Participants in planning poker include all of the developers on the team
  4. The product owner / business owner / business analyst participates in planning poker but does not estimate
  5. Someone (typically the PM) plays the moderator
  6. For each user story or theme to be estimated, a moderator reads the description
  7. The product owner answers any questions that the estimators have
  8. After all questions are answered, each estimator privately selects a card representing his or her estimate
  9. Cards are not shown until each estimator has made a selection
  10. At that time, all cards are simultaneously turned over and shown so that all participants can see each estimate.
  11. It is very likely at this point that the estimates will differ significantly.
  12. If estimates differ, the high and low estimators explain their estimates
  13. Repeat until the estimators have reached a lose consensus
  14. The consensus number is size estimate
  15. The team will decide how much work they can achieve in the given iteration based on estimates, for ex, from the estimates above the team decides they can finish the story “X” in the one week iteration
  16. After the iteration finishes if the team has successfully delivered the story “X”
  17. we can assume that the team can deliver 5 size equivalent of work every week, this is called the “velocity” of the team
  18. In other words, “velocity” is the amount of work the team has been delivering over a period of time
  19. Once a velocity is known, one can play Oracle and answer the question “How long will the software take to get done and when will it get done?”
  20. In the case above if the team’s velocity is 5 size per week, one can predict that the team should be able to finish the work in 3 weeks
  21. The time estimate of 3 weeks was arrived at by dividing the total size of the project with the velocity i.e (5+8+2) = 15 / 5 = 3 weeks

Why it Works?

  • Those who do the work estimate it.
  • Emphasizes relative estimation
  • Estimates are within one order of magnitude.
  • Reduces anchoring - Everyone's opinion is heard.
  • Modeled for open discussion – forces thinking.
  • It brings together multiple expert opinions to do the estimating.
    • Kind of like “wisdom of crowds”
    • Very web 2.0 ish
  • Improves the quality of estimation
    • estimators are called upon by their peers to justify their estimates
    • averaging individual estimates leads to better results
  • Fibonacci numbers – “golden ratio”
    • The unexplained, kind of like the “X – Files”
    • It works because it’s fun
  • Don’t things always work out well when you are having fun?

Side Effects

  • Greater understanding of work to be completed
  • Expectation setting
  • Implementation hints
  • High Level architecture and design discussion
  • Ownership of estimate

Story Points

Image 17

  • Very common way to estimate work
  • Used to denote a name of the estimating unit
    • Derived from calling a unit of work a user story
  • Produces Unitless but numerically relevant numbers
    • A 10 point story would take twice as long as a 5 point story  
  • Have three key benefits 
    • Forces the use of relative estimating
    • Focuses us on estimating the size, not the duration
    • Puts estimates in units we can add together  
  • Based on historical reality
  • Uses Fibonacci sequence – 1, 2, 3, 5, 8, 13, 21, …  
  • Easy to use and understand
Image 18 

Important Notes (by )

  • "Story Points" is the most common name that I hear these days, but various terms have been used over the years, often with whimsical names that emphasized their arbitrary nature. I particularly like Joseph Pelrine's gummy bears and Josh Kerievsky's: NUTs (Nebulous Units of Time).
  • This is a Fibonacci sequence
  • Using the top number as too big is saying that a story sized at '8' really means '8 or more'. If you do this beware of using this top number when making forecasts of things like completion time, since '8' can turn into all sorts of numbers when it finally gets broken down. It's usually better to explicitly say its too big to be estimated rather than use a false marker number. 

Side Effects  

  • If you're using Fibonacci numbers (or something similar), it limits the number of options when estimating a story.
  • I know a group that used low numbers only: 1, 2, 3, 5 and 8. They had a reference story that was a 5. This enabled them to easily make snap decisions on a story's complexity while doing Planning Poker.
  • The other side effect was that anything rated a 8 probably had insufficient information and needed to be broken down further. I seriously doubt it would have been that easy and straightforward if they were using raw hours.

Plan

Image 19

Give me six hours to chop down a tree and I will spend the first four sharpening the axe.--Abraham Lincoln  

Image 20

A good plan is:

  1. Clear 
  2. Reliable 
  3. Used 
  4. Available

Why traditional planning fails?

  • Plan is not adaptive.
  • Focus on activities – Not on features
  • Never finish early.
  • Lateness is passed down.
  • Dependencies.
  • Plan is not priority driven.
  • Higher risk.
  • Lower ROI.
  • Belief that customers will not change
  • Estimates become commitments.
Image 21

What makes planning agile ?

  • Planning Is not considered as a phase in the project
  • Focus on business priorities
  • Deliver something each iteration.
  • Changes are expected, embrace change.
  • Plans are easily correctable.
  • Plan by feature not by activity.
  • Clear definition of progress
  • 50% = 50% of features complete.

First, We Need a Backlog

Image 22

Add Value to That List

Image 23

Estimate and Asses Risk

Image 24

Prioritization

Image 25

Now it is Prioritized – We are Ready!

Image 26

Sprint

Before the sprint:

  • The team committed to the following:
    • As a user I want to see my balance
    • As a user I want to see last transactions.
  • Creates the sprint backlog:
    • They break it down into tasks.
    • They estimate the time for each task.

Image 27

Tracking Progress

Initial Stage

Image 28

Next Stage

Image 29

End

Image 30

The Sprint has Finished

Image 31

Velocity

  • How many points can the team(s) complete in one iteration.
  • Easy to measure.
  • Fixes estimation errors.
  • Easily reflects the project status.
  • Primary parameter in planning.  

Warnings about velocity

  • Don’t create incentives for velocity goals
  • Don’t make stretch goals
  • Don’t measure individual velocity
  • Don’t compare the velocity from one team to another 

Sins of Software Estimation (ref. Fred Brooks and Steve McConnell)

Common Mistakes

#1: Estimating how long “it” will take to build before anyone knows what “it” is.

Image 32 

#2: Assuming that the most reliable estimates come from the people with the most powerful vocal cords…
Assuming that the sales department is better at estimating software projects than the programmers are…

#3: Creating an estimate from a new project by comparing it to a past project… which overran its estimates (worked massive overtime..) and ultimately realizing that you based the new project’s plans on the past projects estimated result instead of its actual results.

#4: Creating estimates that assume that no one needs initial training..
Or attend meetings…
Or be called to work on another project…
Or need to support a key customer…
Or take a vacation…
Or get sick…

#5: Presenting estimates with a high degree of precision (e.g. 67.4 days) but that are supported by only a low degree of accuracy (±2 months) 

Confusing Estimates with Targets

Image 33

  • Target setting is a key part of the art of estimation.
  • When you are asked to provide an estimate, determine whether you’re really supposed to be estimating or figuring out how to meet a target.
  • This is best treated as an iterative process that brings estimates and targets into alignment

Saying “YES” When you Really Mean “NO”

Image 34

Why Developers say YES ?

Fred Brooks says it best: “It is very difficult to make a vigorous, plausible, and job-risking defense of an estimate that is derived by no quantitative method, supported by little data, and certified chiefly by the hunches of the managers.”

  • Schedule “Negotiations”
  • Software developers tend to be introverts and relatively young
  • Marketing and sales personnel tend to be more extroverted and organizationally senior to the developers they negotiate with.

Making Commitments Too Early in the Cone of Uncertainty

Image 35

Image 36

Assuming Underestimation has a Neutral Impact on Project Results

Parkinson's law

“Work expands so as to fill the time available for its completion.” by Cyril Northcote Parkinson

  • Overestimation will let Parkinson’s Law to kick in which is: Parkinson’s Law will kick in—the idea that work will expand to fill available time.
  • Underestimation will create numerous problems like:
    • Reduced effectiveness of project plans.
    • Statistically reduced chance of on-time completion.
    • Poor technical foundation leads to worse-than-nominal results.
    • Destructive late-project dynamics make the project worse than nominal.

Effect of Estimation Accuracy

Image 37

Fixating on the Science of Estimation When You Really Need the Art of Estimation

  • Science is well-developed and well supported by software tools.
  • The art of estimation relies more on rules of thumb and still needs some work.

Providing Off-The-Cuff Estimates

  • Project teams are sometimes trapped by off-the-cuff estimates.
  • While this is a simple point, off-the-cuff estimates is one of the most common errors that project teams make. So in order to become a better software engineer, we need to stop delivering off-the-cuff estimates!

Surveys

This survey was performed the last two weeks of January 2012 and there were 149 respondents. The survey was announced on the Agile and Lean Discussion group on LinkedIn, the Agile Project Management group on Yahoo groups, and by me via Twitter. The goal was to find out from agilists how they were addressing planning activities on their projects.

1. What is the value of common agile planning practices?

Image 38

2. Adoption rate of look-ahead planning.

Image 39

3. The frequency of coordination meetings.

Image 40

Conclusion 

Image 41
 

I want to repeat the same lines from my previous article:  

A good agile team picks and chooses the management and technical practices that best work for them. When trying to adopt Agile practices, there will be a ton of excuses as why it won’t work. Those who understand the real benefits of the approach – and genuinely want to make the transition – will likely have success. Those who are searching for reasons why it will fail – well, they will likely find them and either abandon the effort entirely, or end up practicing what Elisabeth Hendrickson calls “fake agile”.

It is better not to fixate on any given methodology, because the needs/conditions of the company and project are likely to change regularly, and you need to be flexible in how you approach managing projects if you want them to be successful. No single methodology is a silver bullet, so the trick is to determine which methods work for you and tune your methodology to suit your individual needs. This is what being "Agile" is fundamentally about.

References

History

  • 01 Jan. 2014: Content + Image added
  • 31 Dec. 2013: Content modified + image added
  • 25 Dec. 2013: Content added (Warnings about velocity & A good plan is....)
  • 20 Dec. 2013: Image & Content  added
  • 17 Dec. 2013: Table of Contents added 
  • 15 Dec. 2013: Table of Contents added
  • 11 Dec. 2013: Image related changes
  • 09 Dec. 2013: New point added and Contents modified
  • 06 Dec. 2013: Contents and Images 
  • 05 Dec. 2013: Modify references and re-size images
  • 04 Dec. 2013: Initial Release 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
A life-long-learner, maker and soft music fan. Likes building things to solve problems. Years of successful records serving mid and large scale .NET applications in domestic and international client environment. Expertise in different areas of software development life cycles and Software Architecture.

Always looks for new technology and loves to get hands dirty Smile | :)

Comments and Discussions

 
GeneralRe: Excellent Pin
Monjurul Habib14-Jan-14 20:25
professionalMonjurul Habib14-Jan-14 20:25 
QuestionExcellent Article... Pin
Kirk 103898212-Jan-14 13:13
Kirk 103898212-Jan-14 13:13 
AnswerRe: Excellent Article... Pin
Monjurul Habib2-Jan-14 22:05
professionalMonjurul Habib2-Jan-14 22:05 
GeneralMy vote of 5 Pin
Humayun Kabir Mamun1-Jan-14 20:36
Humayun Kabir Mamun1-Jan-14 20:36 
GeneralExcellent Article Pin
Ashes In Snow23-Dec-13 22:13
professionalAshes In Snow23-Dec-13 22:13 
GeneralRe: Excellent Article Pin
Monjurul Habib24-Dec-13 12:22
professionalMonjurul Habib24-Dec-13 12:22 
GeneralRe: Excellent Article Pin
Kirk 103898212-Jan-14 13:24
Kirk 103898212-Jan-14 13:24 
QuestionGreat post Pin
Ryan Pringnitz22-Dec-13 18:22
Ryan Pringnitz22-Dec-13 18:22 
AnswerRe: Great post Pin
Monjurul Habib22-Dec-13 21:02
professionalMonjurul Habib22-Dec-13 21:02 
QuestionSimply Superb Pin
Sakshi Smriti19-Dec-13 1:02
Sakshi Smriti19-Dec-13 1:02 
AnswerRe: Simply Superb Pin
Monjurul Habib19-Dec-13 1:52
professionalMonjurul Habib19-Dec-13 1:52 
GeneralMy vote of 5 Pin
Akhil Mittal17-Dec-13 17:11
professionalAkhil Mittal17-Dec-13 17:11 
GeneralRe: My vote of 5 Pin
Monjurul Habib17-Dec-13 20:41
professionalMonjurul Habib17-Dec-13 20:41 
GeneralMy vote of 5 Pin
saxenaabhi617-Dec-13 12:22
saxenaabhi617-Dec-13 12:22 
GeneralRe: My vote of 5 Pin
Monjurul Habib17-Dec-13 20:41
professionalMonjurul Habib17-Dec-13 20:41 
GeneralMy vote of 5 Pin
Mohammed Hameed16-Dec-13 23:09
professionalMohammed Hameed16-Dec-13 23:09 
GeneralRe: My vote of 5 Pin
Monjurul Habib16-Dec-13 23:12
professionalMonjurul Habib16-Dec-13 23:12 
QuestionMy vote of 5 Pin
Dimitrios Tsobanopoulos15-Dec-13 1:14
Dimitrios Tsobanopoulos15-Dec-13 1:14 
AnswerRe: My vote of 5 Pin
Monjurul Habib16-Dec-13 22:39
professionalMonjurul Habib16-Dec-13 22:39 
GeneralMy vote of 5 Pin
ridoy13-Dec-13 6:20
professionalridoy13-Dec-13 6:20 
GeneralRe: My vote of 5 Pin
Monjurul Habib14-Dec-13 22:51
professionalMonjurul Habib14-Dec-13 22:51 
Generalnice :) Pin
deo cabral11-Dec-13 13:02
professionaldeo cabral11-Dec-13 13:02 
GeneralRe: nice :) Pin
Monjurul Habib14-Dec-13 22:51
professionalMonjurul Habib14-Dec-13 22:51 
GeneralMy vote of 5 Pin
Renju Vinod8-Dec-13 21:51
professionalRenju Vinod8-Dec-13 21:51 
GeneralRe: My vote of 5 Pin
Monjurul Habib14-Dec-13 22:51
professionalMonjurul Habib14-Dec-13 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.