Chapter 21: HOW LONG IS A PIECE OF STRING? The Black Art of Software Timescale Estimation
- Horribly important section - Otto.
- The only people able to provide timescale information are the programmers who have to do the work. This is part of the commercial reality of life in the software factory.
- software timescale estimates are nothing more than educated guesses
- The quality of an estimate is primarily determined by how well you understand the task being estimated. That is, how well you really understand it, not how well you think you do.
- Without enough time to do this, you need to concoct a worst-case figure that development should not exceed.
- Software timescale estimation requires educated guesswork. Each estimate should come with a gauge of your confidence in it.
- There are lots of variables to consider. They come with the inherent complexity of the problem, the implications of your code design, and the existing software ecosystem it must fit into. Some of those variables may change from day to day.
- Requirements will change under your feet, leading to software scope increases. As the feasibility of a project is investigated, new problems and user-level requirements are unearthed at a phenomenal rate. This makes the estimation job tricky—you’ve got to work hard to keep up with it all (see “Requirements Specification” on page 371 for strategies to manage this).
- You can’t give an accurate estimate without knowing all the work involved. Perhaps you’ll need to rework existing libraries that don’t provide enough functionality or refactor to enable safe extension of existing code. If you haven’t discovered this, then your estimate will be too low.
- Few projects start on a blank canvas. You must learn the existing system before you can estimate how long work will take. You seldom have time to do this properly before the estimate is delivered.
- If the task is something that has not been attempted before, then it is harder to figure how long it will take. You have no prior experience to base the estimate on.
- Many projects rely on third parties, and these dependencies can prove to be nightmarish. The source of the dependency could be an operating system vendor, a small but significant code library, an external specification, even the customer. You can’t control the third-party delivery; your estimates depend on it shipping on time. This increases the risk of delay and must be monitored carefully.
- Creating timescale estimates is a genuinely hard task. Don’t underestimate how much work is involved. Appreciate the repercussions of making a bad estimate.
- But there’s a very real difference between a quick code hack or prototype effort and a full, production-ready piece of work.
- Everyone (including you) wants shorter development timescales. Don’t kid yourself about what is technically possible in the given development time. Don’t promise a hack timescale when you must deliver production code.
- Rulez:
- Break the task down into the smallest blocks possible, effectively performing a first pass of system design.
- When you reach a fine resolution with suitably comprehensible parts, provide a timescale estimate for each block in man-hours or man-days.
- Once you’ve estimated all of the individual timescales, place them back-to-back, add up their durations, and voila: an instant timescale estimate.
- Time estimates should be made for small tasks whose individual scope is easy to understand. The measurement should be in units of man-hours or man-days.
- It is vital to consider every activity that will be required to deliver the software.
- If there is no specification, write one and get it approved by the task stakeholders.
- At the very least, document all assumptions that you have made about the work.
- Different people will work on the same task at different rates.
- Understand whether you’re creating an estimate for work that you will do (on a system you understand well) or that someone else will do (who might have to learn it first).
- never plan up front on working overtime.
- Don’t make estimates in isolation. Solicit other people’s opinions to help improve your estimates.
- important part is risk management—creating a safe and sensible plan in the face of uncertainty and hidden traps.
- The standard planning misconception when trying to compress a large project is that throwing more developers at a problem will speed it up. This rarely works.
- Create development schedules that will leave your codebase in a clean state. Plan to repay your technical debt.
- When starting a new task, check whether or not the allotted timescale really is practical—especially if you didn’t have the luxury of making the estimate yourself.
- Keep a constant eye on how long you’re taking against scheduled time. Write down your timescales and keep them close at hand. Add personal estimates for any intermediate tasks that don’t figure on the main software plan, and run yourself as a mini-project. If you hit your internal milestones, you’ll have more chance of keeping on track with your externally visible timescales. Repeatedly review your list—at least once a day.
- If you discover that you won’t hit the deadline, make this known as soon as possible so the plan can be adjusted. This happens far too rarely in practice.
- Do as much work as necessary, and no more. It might be fun to add that cute extra feature. But don’t.
- Careful design exploiting modularity tends to reduce component dependency, and so reduces the ill effects of slippage and the bunching up of tasks on the schedule. Agree on component interfaces early on, and provide stub components so development can continue while others parts of the system are being built.
- Watch out for changing requirements and specifications and track how this will affect your timescales.
May 26, 2010
comments powered by Disqus