"Oh, that should be easy - maybe a few minutes..."
Hearing those words makes me feel like I'm tied mutely to a railway track, unable to scream for help as a train thunders towards me. We humans are walking sacks of blood, bile and bias, and estimating how long things will take brings out the worst in us.
A product manager recently asked me if one can get better at knowing whether things are easy or hard, and how long they will take. The good news is that with practice, you can help people estimate much better with your help than they would on their own.
Understand the problem you're trying to solve.
If you don't understand the problem well enough, you're certainly blind to its potential complexities. Product managers are often in a *better* position than anyone else!
Understand what's involved in the proposed solution(s).
This can be the trickiest part for non-engineers, because the details of the solution may sometimes be pretty arcane. Here's what you can do:
-
You can go a long way by asking good questions about how things work, and what's involved in the solution. Listen carefully to the answers. If they don't make sense, ask for a higher-level explanation, or from a different person. Explain it back - that will make sure you've got it right and help you internalise it. Take good notes. Over time, you'll start to see how the pieces interconnect, and what problems are similar to one another, and this will get easier and easier.
-
Don't ask for an estimate for the whole solution. Break the solution down into pieces, estimate the size of each piece, and add them back together. In my experience, people can't reliably estimate how long things will take beyond a few hours - so if the estimates are much bigger than this, break the pieces down into smaller and smaller chunks.
-
Be the rubber duck!
-
Offer to pair-program with a developer during the unit testing. You'll get a really deep understanding of how the system works, and where the difficulties lie. Better still, if you write your tests before writing your code, your test suite provides a kind of score card for how close you are to a solution, and you'll reduce time spent in QA.
Be aware and on the alert for pitfalls and cognitive biases that lead to poor estimations.
Human beings tend to be lazy about thinking through all the pieces for a complete solution (just focusing on the major parts, or the interesting parts, and ignoring the detail or the final 20% to make things perfect that takes all the time). They also tend to focus on the best case (if everything goes right) and ignore all the things that might go wrong. You never know what will go wrong, but if you have a sense of some possible pitfalls, you can factor them into your estimate. Possible approaches:
-
Start by asking out loud 'what are the hidden traps, complications, edge cases, difficulties or things that could go wrong. When we did similar things in the past, how long did it end up taking? Were there surprise pitfalls that made it harder than we anticipated?' Or run a premortem. You'll get much better estimates after this discussion.
-
Use Planning Poker as an estimation approach. Each person makes an estimate in isolation - this forces them to think things through, and avoids estimates being dominated by what was said first or most loudly. The discussion afterwards creates an informed consensus view, and provides immediate feedback for people whose estimates are wildly off.
-
As a last resort: make an optimistic estimate and double it.
Learn from feedback.
-
Force yourself (or the project team) to make an estimate in advance, then during the project retrospective, compare the actual time taken to the estimated time. That would be the best way for everyone to learn from feedback! 'We thought it was going to be X, but it turned out to be 2X'.
-
If things take much longer than anticipated, ask how we could have predicted this in advance. That might help you avoid similar estimation mistakes in future.
-
Notice if certain kinds of tasks tend to take longer than anticipated.
-
Notice if certain people tend to be inaccurate, and give them feedback on this.