accountability in software development
once, a farmer interviewed a young man for a job as a farm hand. one thing the young man said particularly puzzled the farmer, ï¿½i can sleep when the wind blows.ï¿½ the farmer didnï¿½t know what this meant, but the young man seemed competent and knowledgeable and so he was hired.
a few months later the farmer was awakened in the middle of the night by a thunderous wind storm. panicked, he raced to the cot where he found the farm hand fast asleep. shaking him roughly awake, he demanded, ï¿½we have to bring in the animals!ï¿½
ï¿½they are already in.ï¿½
ï¿½we need to fasten the windows.ï¿½
ï¿½they are already fastened.ï¿½
ï¿½we need to tarp the hay.ï¿½
after going down his list of worries and being reassured that they were already taken care of, the farmer finally realized the meaning of the young manï¿½s puzzling statement. by taking care to finish every job and leave the farm safe every night, the farm hand could sleep when the wind blew.
the farmer went back to bed and told his wife what he had just learned. she just smiled knowingly and the two of them went back to sleep, lulled by the music of the storm.
software development goes better when i work so i can ï¿½sleep when the wind blowsï¿½. i am more comfortable with myself and my work, my customers are more satisfied with the results they see, and my teammates can trust me. however, i find it difficult to achieve this level of performance on willpower alone. i need support, encouragement, and accountability. i need to be a member of a community to do my best. a key to performing well is accountability: making commitments, working in ways i am proud of, and rendering account of my activities clearly and directly.
when i first started talking about accountability, i met a lot of resistance from programmers who said they hated the idea of accountability. they told stories that sounded like this, ï¿½ï¿½ and then he says, ï¿½iï¿½m holding you accountable for this schedule slip.ï¿½ï¿½ this not what i am talking about. this is blame, the attempt to avoid or deflect consequences. blame is a poor premise from which to work. blame requires that you spend time and energy protecting yourself. in an environment of blame it is not safe to say what you do and donï¿½t know. blame leaves everyone worried about who is out to get them. all the energy they spend hiding could be spent interacting and adding value to the project. work gets done much less efficiently. accountability is a powerful premise from which to work. working well and visibly builds strong relationships. accepting responsibility sets the stage for satisfaction in a job well done. itï¿½s a pity that the word ï¿½accountabilityï¿½ is misused, because the misuse obscures a useful concept.
accountability can be offered, asked, even demanded, but it cannot be forced. ï¿½i hold you accountable,ï¿½ doesnï¿½t make sense. ï¿½i blame you,ï¿½ or, ï¿½i hope you will accept the consequences,ï¿½ at least make sense, even if they are a poor basis for a working relationship. managers can request or demand accountability. for example, a manager could ask that the software be ready to deploy at the end of every week so that the teamï¿½s progress is visible. from the other side, accountability can be offered even if it isnï¿½t requested. ï¿½i can show you a log of how i spent my time last week,ï¿½ is an offer of accountability.
i offer accountability to demonstrate my trustworthiness and encourage myself to behave my best. for example, when i am accountable to my spouse for finances, we discuss how to spend money. we agree on goals and principles for our finances. i render account to her of how i actually spend money. if i waste ten dollars buying something useless, i just say so and listen to her response. having those preliminary discussions and knowing i am going to render account helps me spend money wisely and builds our relationship
similarly, while programming i offer accountability as a way of demonstrating my trustworthiness and encouraging my own best behavior. pair programming; test-first programming; continuous integration; visible daily, weekly, and quarterly cycles; slack; and estimation are some of the way i make public commitments and render account of my activities. knowing i will be honest and accountable affects how i do my work, just as knowing that i am hiding and concealing negatively affects how i do my work. taking responsibility for my choices and actions deflects blame. there is no hidden shame if everything i do is above board.
when i program with a partner, i make my thinking visible to them and i listen to their thinking. if i am muddled, i say so. if i donï¿½t like our design, i say so. we are free to ask for clarification or ideas from others. if we can come up with nothing better, we go ahead doing the best we can. there is nothing hidden about this process, no blame, no shame.
test-first programming is a form of accountability, especially when practiced in its pure form where no application code is written without a failing test. the tests are an account of my thoughts as i program. they record the problems i considered. if a problem isnï¿½t represented by a test, it is safe to assume that i didnï¿½t consider that as i was programming.
continuous integration renders account to the team every hour or so of what i have been doing to the system. pausing in my work to make sure the tests all run adds to the accountability, ensuring that if i created a problem in the system i will fix it before proceeding.
visible planning cycles provide an opportunity to make public commitments and, at the end of the cycle, render account for those commitments. i am much less likely to waste time, to not ask for needed help, to move forward with shaky information if i know i am going to render account at the end of the day or the week. ï¿½i spent three days not fixing defect 142 because i was too afraid to ask for help,ï¿½ is embarrassing enough that iï¿½d rather ask for help.
making estimates is part of making commitments. without estimates i donï¿½t know how much to commit to doing. without some slack in my schedule, however, i also know that i regularly wonï¿½t meet those commitments. making and meeting commitments is an important part of building strong relationships during development, relationships that will sustain the team during difficult times.
sometimes i am afraid of the consequences of offering accountability (ï¿½if they only knew how long fixing that defect took theyï¿½d think i was an idiotï¿½) i do better the more accountable i am. if i am an idiot weï¿½re all better off acknowledging that fact and acting on it rather than trying to pretend it isnï¿½t true. if i have done the best i can do, i donï¿½t have anything to fear from the judgments of others. if i say with confidence that a job will take four months, then when someone tells me they would really like it in two months i can listen to what they are really saying. i can respect their position without necessarily agreeing with it. i can listen for needs, not just for words or tone. i can look for mutually beneficial ways of getting those needs met. if i am confident in my estimates and my work, then i can ï¿½sleep when the wind blowsï¿½.
when i look at the shifts in global it employment i see a shift of jobs towards teams and organizations that offer accountability. cmmi level 5 has many pros and cons, but one thing it definitely offers is visibility. teams at that level say what they are going to do and report what they really do. then they reflect on that experience to improve.
accountability isnï¿½t simply a matter of reporting facts. if i know that i created 40 defects this week and accurately report that, i have been honest but not responsible. i have not completed my work in a way i can comfortably live with. i am not behaving in a way that builds relationships, relationships necessary for good software development. extreme programming is my way of working. its principles and practices contribute to my ability to be accountable while developing. accountability encourages me to do my best work. i resist the urge to take shortcuts or leave ugly code when i know others will see it and care.
accountability is important at many different levels. being accountable to myself, even if it is just making and reviewing daily to-do lists, helps me focus my efforts and take satisfaction from my accomplishments. inside a team, accountability encourages trust to form, trust that frees energy to be used accomplishing shared goals instead of protecting individual turf. teams offering accountability to their customers and their organization also build trust. when an accountable teams says ï¿½six monthsï¿½, others can trust that information and act on it, confident that the team is acting in our mutual interest. some development organizations have even gone so far as to make their internal quality metrics publicly accessible, offering accountability to the world at large to demonstrate their trustworthiness, communicate their belief in what they are doing, and encourage their own best efforts.
my experience is that the further my accountability goes, the more openly and directly i express my my accountability goes, the more openly and directly i express my commitments and report my activities, the more empathically i listen to others, the better the results i see. the more accountable i am, the more creative i am, the more work i accomplish, the more value i create, the faster i learn, the more i can ï¿½sleep when the wind blowsï¿½.