InfoQ

News

Do Agile Methods Require Documentation?

Posted by Geoffrey Wiseman on Jul 18, 2007 08:30 AM

Community
Agile
Topics
Agile Techniques
Tags
Documentation
Some believe that Agile doesn't require (or, even, cannot support) documentation.  An Agile case study in CIO magazine called it out as a misapprehension.  Frans Bourma recently wrote about agile methods and documentation and Ian Cooper picked up the thread from there:  "It may be time to put the record straight."

Ian starts with the agile manifesto, which talks about valuing working software over comprehensive documentation; he argues that the manifesto is a set of base principles, criteria for determining if a process is agile, rather than a specific methodology.  He puts this principle into a context to help describe what the principle is fighting against:

To understand the the admonition it must be remembered that the non-agile methodologies were often characterized as document-driven development because they required the production of innumerable documents before a line of code could be written. In many cases the process steps were being performed by software development teams simply because the methodology told them that they had to be performed, even when they provided little value. As a reaction many development teams abandoned methodologies altogether. Agile was an attempt to remove the production of documentation without purpose, and focus once again on the key artifact of the software process: the code. Unfortunately many people who have never practiced a full on waterfall process like SSADM, do not recognize what is being rejected, and thus assume the limited documentation of ad-hoc or in-house processes was being targeted too.

Reviewing how Crystal handles documentation:
Crystal considers development to be a series of co-operative games, and the provision of documentation is intended to be enough to help the next win at the next game. The work products for Crystal include use cases, risk list, iteration plan, core domain models, and design notes to inform on choices. Crystal also defines the roles for these. Note however that there are no templates for these documents and descriptions are necessarily vague, but the objective is clear, just enough documentation for the next game. I always tend to characterize this to my team as: what would you want to know if you joined the team tomorrow.
And Extreme Programming:
XP by contrast notes that documentation is not needed so much inside the team, as outside, and sees it as a costed story that needs to be delivered. The goal here is, I suspect, to reduce unnecessary documentation by forcing it to be evaluated alongside other feature sets. XP relies more heavily on programmer-to-programmer communication to distribute knowledge about the system than written documents, but mandates pair-programming to make this possible: because you share understanding with others through pairing, there are no 'dark areas', and less need for people to document what has happened. In addition the code and tests are seen as then primary repository of detail on how the software was implemented, for fear that documents always grow out-of-date ... the summary is whatever the team needs or the customer wants.
How much documentation do you use in your agile projects? What has worked well for you, and what hasn't?

Related Sponsor

VersionOne is recognized by Agile practitioners as the leader in Agile project management tools. Companies such as Adobe, BBC, CNN, Dow, HP, IBM, Sony and 3M have turned to VersionOne to help deliver greater value to their customers.
Agile Documentation by Arnon Rotem-Gal-Oz Posted Jul 18, 2007 10:09 AM
It depends.... by Amr Elssamadisy Posted Jul 20, 2007 6:57 AM
Re: It depends.... by Chris Matts Posted Jul 20, 2007 12:31 PM
Agile Documentation by Juan Blanco Posted Jul 24, 2007 10:07 AM
Documentantion for internal use by Deven Kalra Posted May 29, 2008 1:28 AM
  1. Back to top

    Agile Documentation

    Jul 18, 2007 10:09 AM by Arnon Rotem-Gal-Oz

  2. Back to top

    It depends....

    Jul 20, 2007 6:57 AM by Amr Elssamadisy

    I've been on teams that have had very little documentation outside of a few architecture diagrams and a whole-lotta tests. The question is, for those that have little documentation - has this affected the maintainability of the system over time?

  3. Back to top

    Re: It depends....

    Jul 20, 2007 12:31 PM by Chris Matts

    http://joe.truemesh.com/blog//000056.html

  4. Back to top

    Agile Documentation

    Jul 24, 2007 10:07 AM by Juan Blanco

    We have been following XP for the past 3 years and we have realized the value of documentation, even if is simplistic. The reason for this is simple, maintanance, support and people leaving. Nevertheless I still think pair programming is the most productive way to share knowledge!

  5. Back to top

    Documentantion for internal use

    May 29, 2008 1:28 AM by Deven Kalra

    One of the objections I hear from managers about to adopt Agile regarding lack of documentation is that the code will become hard to maintain by developers other than the one who wrote the code. Yes, tests can take place of the documentation but in practice the code is not 100% covered by tests and not all marketing people like to read tests to understand what the product does.

    What I have done among other things is

    + Have the developers work on use cases and keep them updated with the functionality they are developing. Ideally, use cases should be written by marketing but does not happen as often as we might like.
    + Once the feature is developed, have the developer write a short note about feature implementation on the team wiki
    + Keep a running system architecture document. As iterations happen, developers add and update the document.

    The way I approach agile code documentation is that

    + Don't write massive tomes upfront
    + Document what you have done not what you are about to do
    + Just provide enough detail that is needed to the intended audience

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.