When you try and determine how long a project will take to complete, you must also factor in how long your analysis of how long the project will take to complete will take to complete.
I like id’s approach… When it’s done.
Or if you’re forced to make a projection, project high and look like a hero when it comes in early (or worst case, a good projector when it comes in on time).
I’m a relatively jr developer (read poor architecture skills), working with a beta technology, with no real guidance. It’s no wonder the project I’m on is taking forever. I mean i guess I kinda know what I’m supposed to be building.
Kinda.
I think I’m gonna sit down and make a list of all the stuff I at least know I gotta do. Then figure out how to do it.
Many times when someone asks how long something will take, I want to respond with how should I know? Mostly because in this ugly 3 years of a career i’ve had, I’ve never had a project manager or technical lead that had an idea what the architecture / end product is supposed to be.
When I pull a number out of thin air no-one calls me on it. It’s a really bad on my part. Then again when I struggle there has never been anyone to help… so it’s probably no wonder this project is failing and my last one did too.
Anyway thanks for this post. It reminds me that I don’t want to suk and motivates me to be better.
It is the job of a good software project manager to recognize the tell-tale symptoms of this classic mistake and address them head on before they derail the project. How? By (forcing)encouraging developers to create a detailed list of everything they need to do.
I agree. My first thought, however, was to take Tomas up on his offer to hand it off as only 99-percent done. I don’t know him well enough to know how well he normally estimates. (In fact, I couldn’t know him very well given he’d been allowed to get into this situation.) But I do know that handing-off, or releasing, is the most effective way of shedding light on a situation. Once he has handed-off his code, other eyes can be added to check for feature-completeness, and double-check his own residue list.
Further, rather than focusing on detailed lists (which is also necessary), I would restructure Tomas’s work so that he is forced to hand-off, or at least demo, every day. Especially, as he moves forward to do his cleanup, as these are all mini-features that should be independent and immediately obvious.
What I used to tell my students is to try and find a way to organize tasks so as to be able to show your manager some visible improvement every few hours (e.g., every half day) in case he or she walks into your office and asks how it’s going. However, I told them that the main reason for organizing your work this way is for your own benefit. There’s nothing like seeing new features (or new spec paragraphs, or help doc pages) every few hours that you can point to to build up your own morale (even if the boss doesn’t walk in the door), and hence improve your own productivity. And it has the added benefit of getting you to think in terms of a list of things that you need to do.
My best friend is MS onenote. Every time I think of something else that needs doing, I add it there with a checkbox. I’ve got all my projects organized nicely in one place. I also note all the steps I took during construction or bug fixing. This kind of organization and documentation is something I can’t live w/o.
I think you’re missing an extremely important component, and thats to make sure that these list of items are all tangible things that can be verified as complete.
So instead of
Finish creating database tables
You have
Create User, Customer and Address tables according to spec 1.1 and select a demo record from each using Query Analyzer.
The difference is very subtle, but critical. Programmers(and I’ve been guilty of this too) tend to generalize things way to much. We end up with huge buckets like Finish adding corporate logo to website. Well what does that mean? In all the headers? And footers? And that flash movie showing how cool we are? And the Apply Now page? And the Directions?
Its never clear when you’re done. And if it isn’t clear when a task is done, then it’ll never be done, and always exist in that 99% finished state until someone just arbitrarily closes it.
Granted, you’ll completely forget certain tasks, so they won’t be in the original estimate, but thats how software managers grow and develop, they become better at breaking down the complex tasks involved in software development into those granular verifiable deliverables that can be tracked and benchmarked against.
I think programmers are inherently bad at time estimation of all computer tasks. Usually a programmer has in their head how they are going to solve a problem, fix a bugor what they have left to finish. This automatically put’s it in your mind that it is an easy fix an will take no time at all.
One of the ones I find myself particularly bad at is report formatting such as in crystal reports. The reason for this is you find yourself going i will just move this then you test, then you add a field then you test I can find myself taking an hour formatting a report where in my head I have just said well just need to tidy up that report a bit make sure everything looks ok. Suppose this applies to most GUI stuff. This is one of the bits of the job I find tedious I usually fell I have done the bulk of the work and these are those last 10% jobs.
It’s all fun and games until you actually have to meet an estimate.
Programming is often like a bad RPG. You go to the castle just to find out the princess is in another castle. You go to the other castle to find it locked, but the key is held by the guardsman. You talk to the guardsman to find that he loaned the key to his son, who hasn’t returned from the deep dungeon for a long time. You go to the dungeon and rescue the boy from the scary monster to find out he dropped the key on the way to the dungeon. You backtrack to find a note on the ground by someone who has taken the key back to the castle; the key is in the castle so you can’t get in. You talk to the guardsman to find out another way into the castle, but it requires explosives. The explosives got stolen yesterday by a thief who lives in a cave by the lake. This thief would love to trade the explosives for these really wild barries that are located in the poisonous forest. In order to survive entering the forest you must first get magic syrum, which is gained by …
I think you get the picture. The point is, you don’t often know the real task list right away. This is especially true if you are integrating a familiar system with an unfamiliar one. If both systems are unfamiliar, the task may very well be impossible.
Skip this true experience of me using ANTLR if you’re not interested:
I was excited to find a parser-generator to properly break up code for my project. I found out there was a book for it so I ordered it through Amazon. I begin by downloading ANTLR, which is archived. I find I have to update my java to properly extract it from the archive. All I need ANTLR to do is replace the function that breaks up code into a syntax tree. I download a grammar and run ANTLR using the example given. Instead of getting a tree, I get a flat tree of tokens (a linked list). I read about generating 2D syntax trees using rewrite rules; however, after trying to get the tree from one rule I find problems with the rules and ultimately decide this won’t work. I search some more and find an example of an ANTLR parse tree which is generated from -debug mode. I find this to actually meet my needs, but I find that the parser puts every rule it tries to match (as opposed to the ones it actually does match) into its tree. This means I have to weed out duplicates, based on the start character and end character of the token. ANTLR looks like it has functionality to give you those values for all tokens; however, on parser tokens it will just return 0: you have to calculate the start and end of a parser token yourself (and put the parser token into a container with those values, as the set function for those values does nothing). Armed with all this, now I can properly integrate the ANTLR output. However, it is in a slightly different format now that it uses nodes instead of raw strings like before so I have to do some more work. What I had originally estimated for 1 month (including testing) is now 4 months into it and I am finally testing the last part of the integration.
ANTLR is a fine tool, but I felt like I was going through a bad RPG in order to use it. I can’t think of a way to write an estimate that takes adventures like these into account.
We’ve been using the Scrum agile methods for about 5 months now.
Got to split up our work in tasks that are maximum a days worth. If you do fail to estimate the time a task will take, at worst you’ll only be off a few hours.
If only that was possible. The thing is that the list keeps changing. This is not necessarily a problem - that’s what agile techniques are for.
The real problem is thinking there is such a thing as an accurate estimate for a big software project.
IME the best you can do is estimate user stories or use cases in story points (not days - programmers are notoriously bad at estimating time), track your velocity in terms of story points/day, and predict from that how long to do all the things that are currently in your list. If you haven’t already, look up burndown charts.
The whole issue of what done means for a task needs to be addressed too. Too often programmers think it’s just delivering code, and don’t consider testing, code reviews, documentation etc
At the end of a href=http://www.artima.com/weblogs/viewpost.jsp?thread=235983Bruce Eckel’s/a blog entry, he mentions what the answer might be for successful, innovative development. Similar train of thought as a href=http://en.wikipedia.org/wiki/The_Mythical_Man-MonthMythical Man-Month/a. EDS for awhile had an interesting take on projects. Which is similar to the Eric Raymond reference in Eckels blog entry. Teams are mobile w/in an organization, and individuals within teams are mobile.
Would somebody tell me how to estimate the time needed to debug?
You don’t. Debugging should be a part of the construction/programming activity. Unit tests and continuous integration will help you on the way, but if the task takes longer than expected–because you spend a lot of time debugging–chances are the task is more complicated than you first estimated, or you chose the wrong implementation or design approach. Either way, you should re-estimate the task or break it down into new, smaller tasks and estimate them instead.
I am never able to understand why this percentage completion comes into place. I worked for Nationwide Insurance, for 7 months. And those guys keep on asking how much percentage you have done. Obviously, I was never able to answer it. I mean, how can I tell that this home page that I am designing is 50% done, when I have just started coding. Software development is not like baking a cookie, in which you can precisely tell how much more time it will take to bake it up in your microwave.
In Scrum (mentioned by a few others), the list of things to do is called the backlog, and it works wonders. I work in a development center where all projects use scrum, and it’s working very well for us.
I guess, it’s a developers desease not to plan ahead, cause it takes the time that it takes and we don’t like to feel pressurised to complete the work we’ve commited on. ;)
@jitendra
Actually, you can give a percentage estimation! Not precisly, though… In the company I work for, we use SCRUM now for nearly 10 month - and besides some teething troubles, it serves us great. We’re forced to think of the tasks a user stories needs to be completed (that is, the code is tested, documented, possibly reviewed and demonstrated). Taks are estimated in hours, considering possible know-how-transfer and pair-programming. If a tasks takes longer than 16 hours on the first estimation, it has to be broken down in smaller pieces where applicable. We tried to use story points for estimating the user story, but gave it up in favor of ideal man days. (We found it really hard to measure complexity, work load etc across 3 teams with different scopes).
Since using those agile methods, seeing the tasks on our board and checking on them daily, we have massivly increased our effectiveness!
The challenge with making a complete list is that you can’t anticipiate everything and it takes too much time anyway. It’s waterfall as someone else pointed out.
In agile methods you tend to have a backlog. The key is NOT to list ALL the tasks at the beginning.
Requirements basically come in course grain requirements (CGRs), which are broken down into fine grain requirements (FGRs) which are broken down into tasks. CGRs can typically be completed in a couple of weeks, FGRs in days and tasks in hours (may vary by project and temperament).
Now, at the beginning of the project it is relatively simple to list all your CGRs, it shouldn’t be too long a list.
You then take about 10% of your CGRs and go to town on breaking them right down into FGRs and tasks and then you estimate it all carefully. Yes, this will probably take a few days to do but it is worth it.
This will normally allow you to estimate the remaining 90% of CGRs reasonably accurately without actually doing the detailed break down.
This allows you to do the detail break down of each CGR later, when you are just about to start the work. Just in time estimation :)
The most important tool we use is the burndown chart and the run-rate.
So, if you estimate all your work and then measure how much work you actually get done then you can apply your run rate to make your remaining schedule much more accurate. For example, if it consistently takes you 60 hours to do what you estimated to take 40 hours, then you can apply that formula. We do that with our development teams and it means we get fairly realistic delivery timescales over time. But, this only works once you build up a history of data, of course.
In addition, the burndown gives you a constantly updated estimate of the release date as well, driven by developers without a project management overhead.
If all the above sounds like theory - well, it’s how we work with our onshore and offshore delivery team. It is not without problems but it beats any other method I have ever used in terms of transparency and accuracy.
In my recent experiences at startups in silicon valley it is entirely too common that development teams only receive verbal requirements and at best, confusing direction. Product managers and development leads, and decision makers simply must take appropriate time to clarify the desired product and its features (and actually write them down coherently rather than in sound bites).
Developers and especially offshore teams must have the ability to contemplate requirements in written form as a stake in the ground upon which to ask questions and at least have a starting point to establish reasonable expectations.
Taking time to capture remaining work and measuring against completed tasks allows for more precise time estimates, and raises the integrity of the developer. This completes the loop on the project management.
P.S. With all due respect to agile methods, it is perverted by those who claim that the code is the documentation. Those who say such things are, in my opinion, too lazy to document at least the APIs between major areas of interacting code which multiple developers are working on together.