4 Biggest Reasons Why Software Developers Suck at Estimation
Join the DZone community and get the full member experience.Join For Free
estimation is difficult.
most people aren’t good at it–even in mundane situations.
for example, when my wife asks me how much longer it will take me to fix some issue i’m working on or to head home, i almost always invariably reply “five minutes.”
i almost always honestly believe it will only take five minutes, but it never does. most of the time my five minutes ends up being half an hour or more.
but, in comparison to the world of software development efforts, my five minutes estimation is usually fairly accurate–it’s only off by a factor of six or so.
it’s not unheard of to have software development estimations be off by as much as one-hundred-fold. i’ve literally had an hour long estimation turn into two weeks.
but, why are software development estimations usually off by so much?
here are the four biggest reasons i have found:
reason 1: the unknown unknowns
this phrase was first uttered by former secretary of defense of the united states, donald rumsfeld. it basically refers to those things that we don’t even know that we don’t know.
by far, this is the biggest reason why software developers often flub at giving good estimations. it also happens to be the primary reason why i suck at telling my wife how long it will take me to get home–i don’t know about the distractions that i don’t know about yet.
software development has a lot of unknowns. some of the unknowns we know about.
when we first start a project, we might have a good idea that we need to store the data in a database, but we don’t know how we’ll do it. that is a known unknown. we know that we don’t know something that we’ll eventually need to know.
estimating a known unknown is pretty difficult, but we can do a decent job of it if we can compare it to something similar we’ve already done before.
i don’t know how long it will take me to write this particular blog post, but i know about how long it has taken me to write other blog posts of a similar length.
what is really scary though, are the things that we don’t even know we don’t know yet.
these unknown unknowns sneak up on us, because we don’t even know they exist–by definition they are unknowable. it’s one thing to know that we have a gap in a bridge somewhere that we have to cross, it is a whole other thing to have to cross a bridge blindfolded and only find out about gaps when you fall through them.
constantly, in software development, we are faced with situations where we have to encounter these unknown unknowns. there is no good way to estimate around them. the best we can do in these cases is give ourselves a lot of padding and a lot of rope so that we can climb out of any gaps in the bridge that we fall into.
reason 2: lengthy time periods
as if unknown unknowns weren’t bad enough, the deck is stacked against us even further.
most software development estimations involve fairly long periods of time. this has changed somewhat with agile development practices, but we still are often asked to estimate a week or more worth of work at a time. (plus, let’s not forget those sneaky project managers who try to throw agile projects into microsoft project anyway and say “yeah, i know this is agile and all, but i’m just trying to get a rough idea of when we’ll be done with all of the features.”)
it’s fairly easy to estimate short periods of time–well, i guess unless it’s me telling my wife how long it will take for me to get off the computer. most of us can pretty accurately predict how long it will take us to brush our teeth, write an email or eat dinner.
long periods of time are much more difficult to estimate accurately. estimating how long it will take you to clean out the garage, write a book, or even just to go grocery shopping is much more challenging.
the longer the period of time you are trying to estimate, the more that small miscalculations and the effects of known unknowns can cause an initial estimate to be grossly off target.
in my experience, i’ve found that estimating anything that will take more than about two hours is where things really start to go off of the rails.
as a mental exercise, try and estimate things of varying lengths.
how long will it take you to:
- do 10 pushups?
- make a cup of coffee?
- go to the convenience store and buy something?
- write a one page letter?
- read a 300 page novel?
- get the oil changed in your car?
notice how the things that can be done in under half an hour are very easy to estimate with a high level of confidence, but as you go out further in time it gets much more difficult.
most of the time when we do software development estimates, we don’t try and estimate short things, like how long it will take to write a single unit test, instead we tend to estimate longer things, like how long it will take to complete a feature.
reason 3: overconfidence
i’m pretty presumptuous when it comes to estimations. i usually think i’m very accurate at making estimations. my wife would disagree–at least when it comes to making estimations of time things will take me. history would probably tend to vindicate her viewpoint.
as software developers, we can often become pretty convinced of our ability to accurately predict how long something will take. often, if the programming task we are about to embark upon is one we feel confident about, we can be pretty aggressive with our estimates–sometimes to the point of absurdity.
oh ye of little faith, of course i can rewrite the application in half an hour
how long will it take you to get that feature done?
oh, that? that’s easy. i can get that done in a few hours. i’ll have it done by tomorrow morning.
are you sure? what about testing? what if something comes up?
don’t worry, it’s easy. shouldn’t be a problem at all. i just need to throw a few buttons on a page and hook up the backend code.
but, what happens when you actually sit down and try to implement the feature? well, first you find out that it wasn’t quite as easy as you thought. you forgot to consider a few of the edge cases that have to be handled.
pretty soon you find yourself taking the entire night to just get set up in order to actually start working on the problem. hours turn into days, days into weeks and a month later, you’ve finally got some shippable code.
now, this might be a bit of an exaggeration, but overconfidence can be a big problem in software development–especially when it comes to estimations.
reason 4: under-confidence
under-confidence isn’t actually a word. i suppose that is because someone wasn’t confident enough to put it in the dictionary.
but, just as overconfidence can cause a software developer to under-estimate how long a programming task will take, under-confidence can cause that same software developer to overestimate a completely different task, which may even be much easier.
i don’t know about you, but i often find myself in situations where i am very unsure of how long something will take. i can turn a simple task that i don’t feel comfortable doing into a huge mountain that seems almost impassible.
we tend to view things that we’ve never done before as harder than they are and things that we have done before as easier than they are –it’s just human nature.
although it may not seem like it, under-confidence can be just as deadly to estimations though. when we are under-confident, we are more likely to add large amounts of padding to our estimates. this padding might not seem all that bad, but work has a way of filling the time allotted for it. (this is known as parkinson’s law.)
so, even though, when we are under-confident, it might appear that we are pretty accurate with our estimations, the truth is we may be wasting time by having work that might have been done in half the time fill the entire time that was allotted for it.
(by the way, if you are looking for a good book on agile estimation, check out mike cohn’s book: agile estimating and planning .)
did i leave anything out? what do you think is the biggest reason why software development estimations are so difficult?
this post is the first in a series of posts about software development estimation. if you’d like to make sure you get the following post in this series talking about how to get better at estimation, make sure you subscribe here and you’ll get the post directly in your inbox.
Published at DZone with permission of John Sonmez. See the original article here.
Opinions expressed by DZone contributors are their own.