Showing posts with label management. Show all posts
Showing posts with label management. Show all posts

Thursday, 28 March 2013

Agile estimations : The holy grail


My first encounter with agile software development was working with Kent Beck at the dawn of Extreme Programming. One of the things that impressed me about that project was the way we went about planning. This included an approach to estimating which was both lightweight yet more effective than what I'd seen before. Over a decade has now passed, and now there is an argument amongst experienced agilsts about whether estimation is worth doing at all, or indeed is actively harmful [1]. I think that to answer this question we have to look to what purpose the estimates will be used for.
A common scenario runs like this:
  • Developers are asked for (or given) estimates for upcoming work.
  • People are optimists, so these estimates tend to be too low, even without pressure to make them low (and there's usually at least some implicit pressure)
  • These tasks and estimates are turned into release plans tracked with burn-down charts
  • Time and effort goes into monitoring progress against these plans. Everyone is upset when actuals end up being more than estimates. In effort to increase pace with the estimates, developers are told to sacrifice quality, which only makes things worse.
In this narrative, effort put into estimates is, at best, waste - since "an estimate is a guess in a clean shirt" [2]. Usually estimates end up being actively harmful as they encourageFeatureDevotion, a nasty condition where people start valuing ticking off features more than tracking the real outcome of the project.[3]
Estimates also set expectations, and since estimates are usually too low, they set unrealistic expectations. [4] Any increase in time or reduction in features is then seen as a loss. Due toloss-aversion, these losses have a magnified effect. [5]
Faced with situations like this, it's easy to see how people turn their angry glares towards estimation. This leads to an increasing notion that anyone indulging in estimating is Not a True Agilist. Critics of agile say this means that agile development is about developers going off and doing vague stuff with promises that it'll be done when its done and you'll like it.
I don't share this view of estimation as an inherently evil activity. If I'm asked if estimation is a Bad Thing my answer is the standard consultants' answer of "it depends". Whenever someone answers "it depends" the follow-up question is "upon what". To answer that we have to ask why we are doing estimation - as I like to say "if it's worth doing well, it's worth asking why on earth you're doing it at all".
For me, estimation is valuable when it helps you make a significant decision.
My first example of an estimation-informed decision is allocation of resources. Organizations have a mostly fixed amount of money and people, and usually there are too many worthwhile things to do. So people are faced with decisions: do we do A or B? Faced with such a decision it's useful to know how much effort (and cost) each will involve. To make sensible decisions about what to do, you need to have a feel for both the cost and the benefits.
Another example is to help with coordination. The blue team wants to release a new feature to their web site, but cannot do so until the green team builds a new service to give them crucial data. If the green team estimates they will be done in two months and the blue team estimates that it will take them a month to build the feature, then the blue team knows it's not worthwhile to start today. They can spend at least a month working on some other feature that can be released earlier.
So whenever you're thinking of asking for an estimate, you should always clarify what decision that estimate is informing. If you can't find one, or the decision isn't very significant, then that's a signal that an estimate is wasteful. When you do find a decision then knowing it focuses the estimate because the decision provides context. It should also clarify the desired precision and accuracy.
Understanding the decision may also lead you to alternative actions that may not involve an estimate. Maybe task A is so much more important than B that you don't need an estimate to put all your available energies into doing it first. Perhaps there is a way for blue team members to work with the green team to get the service built more quickly.
Similarly, tracking against a plan should also be driven by how it informs decision making. My usual comment here is that a plan acts as a baseline to help assess changes - if we want to add a new feature, how do we fit it into the FivePoundBag? Estimates can help us understand these trade-offs and thus decide how to respond to change. On a larger scale re-estimating a whole release can help us understand if the project as a whole is still the best use of our energy. A few years ago we had a year-long project that was cancelled after a re-estimate a couple of months in. We saw that as a success because the re-estimate suggested the project would take much longer than we had initially expected - early cancellation allowed the client to move resources to a better target.
But remember with tracking against plans that estimates have a limited shelf life. I once remember a gnarly project manager say that plans and estmates were like a lettuce, good for a couple of days, rather wilty after a week, and unrecognizable after a couple of months.
Many teams find that estimation provides a useful forcing function to get team members to talk to each other. Estimation meetings can help get better understanding of various ways to implement upcoming stories, future architectural directions, and design problems in the code base. In this case any output estimation numbers may be unimportant. There are many ways such conversations can happen, but estimation discussions can be introduced if these kinds of conversations aren't happening. [6] Conversely if you're thinking of stopping estimation, you need to ensure that any useful conversation during estimation still continues elsewhere.
Go to any conference with agile leanings and you'll hear talks of teams that work effectively without estimation. Often this works because they, and their customers, understand that making estimates isn't going to affect significant decisions. An example is a small team working closely with business. If the broader business is happy with allocating some people to that business unit, then work can be carried out in priority order; often this is helped by the team breaking down work into small enough units. [7] A team's level in the agile fluency model plays a big role here. As teams progress they first struggle with estimation, then can get quite good at it, and then reach a point where they often don't need it. [8]
Estimation is neither good or bad. If you can work effectively without estimation, then go ahead and do without it. If you think you need some estimates, then make sure you understand their role in decision making. If they are going to affect significant decisions then go ahead and make the best estimates you can. Above all be wary of anyone who tells you they are always needed, or never needed. Any arguments about use of estimation always defer to the agile principle that you should decide what are the right techniques for your particular context.
1: A recent read is Estimation is Evil an excellent discussion by Ron Jeffries of the problems that estimates can cause.
2: I got this analogy from Ron Jeffries, although I don't have a written reference for it.
3: This situation is an excellent example of an inappropriate use of metrics.

4: Estimates and expectations

I particularly liked a comment on this by my colleague Angela Ferguson "the way that estimates set expectations is up to us - it is poor project management (whether by project managers or other team members) that results in a client who thinks estimates are fixed, or that raw estimates = actual effort/duration"
"I, in fact, try to practice delivery bad news on a weekly basis with my key client, even when things are travelling as expected ... 'so we're looking quite well on track now, but if we had discovered something that took longer than expected, or a requirement had blown up to be larger than expected, or we found something new and very important, what do you think the best course of action would be?' And then you explore the options - cut stories, add time, add capacity, etc. This means that when the expected unexpected thing happens (because we know it will happen), the conversation doesn't seem new and scary to the client."
5: Very roughly people feel twice as much pain for a loss as pleasure for a gain.
6: If you do this an approach like ThrownEstimates can help the discussion move at a good pace.
7: Of course breaking work down into small units requires some implicit estimation, but that's really a different animal to the more common explicit estimation activity.
8: James Shore has a recent blog post that details his observations about how fluency influences estimation practice. I think a similar analysis of practices at various stages of fluency could be very useful.


Wednesday, 6 February 2013

People are more important than things.


“The brick walls are there for a reason. The brick walls are not there to keep us out. The brick walls are there to give us a chance to show how badly we want something. Because the brick walls are there to stop the people who don’t want it badly enough. They’re there to stop the other people.” 






101 Things to do before you die.

Here are 101 bucket list items to consider for your bucket list :) . Some of the items might spark off your inspiration for other things too!
  1. Travel all around the world
  2. Learn a new language
  3. Try out a new profession in a different field
  4. Achieve your ideal weight
  5. Run a marathon
    Running a Marathon
  6. Take part in a triathlon
  7. Take up a new sport. Some examples:
    • Technique sports: Archery, Golf, Bowling, Billiard, Skateboarding, Skating, Roller-blading, Ice skating
    • Water sports: Water rafting, Kayaking, Wakeboarding, Sailing, Scuba diving, Snorkeling, Swimming
    Going Snorkeling
    • Group sports: Soccer, Rugby, Baseball, Basketball, Ultimate frisbee
    • Racket sports: Squash, Badminton, Tennis, Table tennis
  8. Go skiing
  9. Learn horseback riding
  10. Resign from a job you don’t like
  11. Pursue your passion
  12. Start your own business doing something you love
  13. Achieve financial abundance with your passion
  14. Connect with the teachers from your past – college, high school, junior high, all of it. Let them know how they have shaped your life.
  15. Identify someone who has inspired you the most in your life. Let him/her know how much he/she has inspired you
  16. Be a mentor to someone
  17. Learn a strategy game
  18. Do an extreme sport – Bungee jumping, Skydiving, Parachuting, Paragliding, Ice climbing
  19. Climb a mountain
  20. Give a heartfelt surprise to someone
  21. Make a difference in someone’s life
  22. Perform a kind deed to at least 5 strangers without expecting anything in return
  23. Write a book on something that means a lot to you
  24. Fly in a hot-air balloon across a country
  25. Sing your favorite song to an audience
  26. Offer your service to a humanitarian cause
  27. Make friends with at least 5 strangers on the street
  28. Experience a sunset
  29. Experience a sunrise
    Experience a Sunrise
  30. See the Northern Lights
  31. Witness a solar eclipse
  32. Go stargazing
  33. Plant your own tree and watch it grow
  34. Own a pet (or more if you desire!): dog, cat, rabbit, hamster, tortoise, fish, snake, frog, etc
  35. Do public speaking in front of 10,000 people
  36. Write a letter to at least 3 of your closest friends to let them know how much they mean to you
  37. Throw a mega party
  38. Get a complete makeover (change everything, from your hair style, hair color, image, clothes) and get a different look:  one which you would never have thought of trying!
  39. Learn wine appreciation
  40. Join a social etiquette class and further refine your mannerisms
  41. Be a matchmaker: Introduce your single friends to each other (the rest is up to them!)
  42. Go on a blind date! (for the singles!)
  43. Go for future education in a different specialization
  44. Play a (new) musical instrument: Piano, Violin, Harmonica, Flute, Guitar, Drum, Trumpet
  45. Win a lucky draw
  46. Take up dancing: Salsa, Line dance, Tap dance, Tango, Ballroom dancing, etc
    Going Dancing
  47. Learn a martial art (Check out: List of different martial arts on Wiki)
  48. Go on a road trip
  49. Go backpacking across at least 10 locations
  50. Pack your bags and set off for a random location with no itinerary planned at all
  51. Go swimming with dolphins
  52. Live in a different country for at least 6 months
  53. Act in a film (self production or otherwise)
  54. Get featured on TV/radio/print/newspapers for an achievement you are proud of
  55. Knit a scarf
  56. Create your dream home (Read: Does Your Room Inspire You?)
  57. Whip up the best meal ever for your loved ones
  58. Bake a cake for someone special
  59. Go deep into the heart of Mother Nature. Go trekking in a rainforest; Camp out in the wilds; Walk in a valley; Visit a waterfall; Swim in an ocean; Walk in a valley
    Trekking in a Rainforest
  60. See snow (if you haven’t before)
  61. Live through 4 seasons of the year – Spring, summer, autumn, winter
  62. Read a book on a subject you’d never have thought of reading
  63. Volunteer at a hospice
  64. Fly a kite
    Fly a Kite
  65. Fall asleep on grassy plains
  66. Call the customer service (of a service provider you like) just to thank them for the great service
  67. If you are a non-vegetarian, try out vegetarianism for 21 days and experience it for yourself
  68. After that, try veganism
  69. Followed by raw veganism. Then conclude which is the best diet for you.
  70. Fold a 1,000 origami cranes and give them to someone special
  71. Conquer your biggest fear
  72. Go snorkeling and experience marine life up close
  73. Tell at least 10 people about your bucket list and encourage them to do the same
  74. Go on a meditation retreat
  75. Experience an OBE (out of body experience)
  76. Start a social movement on a cause you believe in
  77. Watch cherry blossoms in Japan
  78. Get closure on all your hurt, grievances and unhappiness of the past
  79. Bury the hatchet with all the enemies / people you had conflict with in the past or now
  80. Organize a picnic outing
  81. Do something completely crazy and out of character
  82. Fly first class
  83. Hit bullseye on a dartboard
  84. Visit a volcano
  85. Fly in a helicopter
  86. Have dinner with someone you had only dreamed of meeting
  87. Tell your parents (and siblings too if you have them) that you love them.
  88. Ride a roller coaster
  89. Go on a cruise in the sea
  90. Try out front-line customer service jobs such being a waiter/waitress for a month just for the experience
  91. Fall in love :)
    Go Dating!
  92. Be in love! :D
  93. Get on a romantic getaway
  94. Do a somersault
  95. Visit a castle in England
    Visit a Castle
  96. Change the world
  97. Help someone in need
  98. Learn sign language
  99. See the Mona Lisa in Louvre (Paris)
  100. Go to a costume party and dress up as your fantasy character
  101. Gain enlightenment

Thursday, 31 January 2013

The 10 Commandments of Egoless Programming


  1. Understand and accept that you will make mistakes.
  2. You are not your code.
  3. No matter how much "karate" you know, someone else will always know more.
  4. Don't rewrite code without consultation.
  5. Treat people who know less than you with respect, deference, and patience.
  6. The only constant in the world is change.
  7. The only true authority stems from knowledge, not from position.
  8. Fight for what you believe, but gracefully accept defeat.
  9. Don't be "the guy in the room."
  10. Critique code instead of people -- be kind to the coder, not to the code.
    - Anon.