http://www.martinfowler.com/articles/newmethodology.html
HomeBlogArticlesBooksabout Mecontact MethoughtWorks
The New Methodology
Martin Fowler Last Significant Update:
April 2003
In the past few years there's been a rapidly growing interest in agile (aka "lightweight") methodologies. Alternatively characterized as an antidote to bureaucracy or a license to hack they've stirred up interest all over the software landscape. In this essay I explore the reasons for agile methods, focusing not so much on their weight but on their adaptive nature and their people-first orientation. I also give a summary and references to the processes in this school and consider the factors that should influence your choice of whether to Go Down this newly trodden path.
| Japanese | Russian | French | Chinese | Turkish | IndoSian | German | Spanish | Italian |
From Nothing, To Monumental, To Agile Predictive Versus Adaptive
SEPARATION OF DESIGN CONSTRUCTION THE UNPREDICTABILITY REQUIRETIN IS PREDICTABILITY IMPOSSIBLE? Controlling An Unpredictable Process - Items The Adaptive Customer Putting People First
Plug Compatible Programming Units Programmers are Responsible Professionals Managing a People Oriented Process The Difficulty of Measurement The Role of Business Leadership The Self-Adaptive Process The Methodologies
XP (Extreme Programming) Cockburn's Crystal Family Open Source Highsmith's Adaptive Software Development Scrum Feature Driven Development DSDM (Dynamic System Development Method) The Manifesto for Agile Software Development Context Driven Testing Is RUP an agile method? Other Sources Should you go agile? Acknowledgments
From Nothing, To Monumental, To Agile
Most software development is a chaotic activity, often characterized by the phrase "code and fix". The software is written without much of an underlying plan, and the design of the system is cobbled together from many short term decisions. This actually works pretty well as the system is small, but as the system grows it becomes increasingly difficult to add new features to the system. Furthermore bugs become increasingly prevalent and increasingly difficult to fix. A typical sign of such a system is a long test phase after the system is . "feature complete" Such a long test phase plays havoc with schedules as testing and debugging is impossible to schedule.We've lived with this style of development for a long time, but we've also had an alternative for a long time: Methodology. Methodologies impose a disciplined process upon software development with the aim of making software development more predictable and more efficient. They do this by developing a detailed process with a strong e Mphasis on planning inspired by other engineering disciplines - Which is why i measure.
Engineering methodologies have been around for a long time. They've not been noticeable for being terribly successful. They are even less noted for being popular. The most frequent criticism of these methodologies is that they are bureaucratic. There's so much stuff to do to Follow The Methodology That The Whole Pace of Development Slows Down.
As a reaction to these methodologies, a new group of methodologies have appeared in the last few years. For a while these were known a lightweight methodologies, but now the accepted term is agile methodologies. For many people the appeal of these agile methodologies is their reaction to the bureaucracy of the monumental methodologies. These new methods attempt a useful compromise between no process and too much process, providing just enough process to gain a reasonable payoff.The result of all of this is that agile methods have some significant changes in emphasis . from engineering methods The most immediate difference is that they are less document-oriented, usually emphasizing a smaller amount of documentation for a given task In many ways they are rather code-oriented:. following a route that says that the key part of documentation Is Source Code.
However I don't think this is the key point it is a symptom of documentation is a symptom of two much deeper differentnesss:
Agile methods are adaptive rather than predictive. Engineering methods tend to try to plan out a large part of the software process in great detail for a long span of time, this works well until things change. So their nature is to resist change. The agile methods, however, welcome change. They try to be processes that adapt and thrive on change, even to the point of changing themselves. Agile methods are people-oriented rather than process-oriented. The goal of engineering methods is to define a process that will work well whoever happens to be using it. Agile methods assert that no process will ever make up the the skill of the development team, so the role of a process is to support the development team in their work.
In the following sections I'll explore these differences in more detail, so that you can understand what an adaptive and people-centered process is like, its benefits and drawbacks, and whether it's something you should use: either as a developer or customer of Software.Predictive Versus Adaptive
Separation of Design and Construction
The usual inspiration for methodologies is engineering disciplines such as civil or mechanical engineering. Such disciplines put a lot of emphasis on planning before you build. Such engineers will work on a series of drawings that precisely indicate what needs to be built and how these things need to be put together. Many design decisions, such as how to deal with the load on a bridge, are made as the drawings are produced. The drawings are then handed over to a different group, often a different company, to be built. It's Assumed That The Construction Process Will Follow The The Drawings. in Practice The Constructors Will Run Into Some Problems, But The manufacture usually small.
Since the drawings specify the pieces and how they need to be put together, they act as the foundation for a detailed construction plan. Such a plan can figure out the tasks that need to be done and what dependencies exist between these tasks. This allows for a reasonably predictable schedule and budget for construction. It also says in detail how the people doing the construction work should do their work. This allows the construction to be less skilled intellectually, although they are often very skilled manually.
So what we see here are two fundamentally different activities. Design which is difficult to predict and requires expensive and creative people, and construction which is easier to predict. Once we have the design, we can plan the construction. Once we have the plan for the construction, we can then deal with construction in a much more predictable way in civil engineering construction is much bigger in both cost and time than design and planning.So the approach for software engineering methodologies looks like this:. we want a predictable schedule that can use people with lower skills. to do this we must separate design from construction. Therefore we need to figure out how to do the design for software so that the construction can be straightforward once the planning is done.
So what form does this plan take? For many, this is the role of design notations such as the UML. If we can make all the significant decisions using the UML, we can build a construction plan and then hand these designs off to coders as A Construction Activity.
But here lies the crucial question. Can you get a design that is capable of turning the coding into a predictable construction activity? And if so, is cost of doing this sufficiently small to make this approach worthwhile?
All of this brings a few questions to mind. The first is the matter of how difficult it is to get a UML-like design into a state that it can be handed over to programmers. The problem with a UML-like design is that it can look very good on paper, yet be seriously flawed when you actually have to program the thing. The models that civil engineers use are based on many years of practice that are enshrined in engineering codes. Furthermore the key issues, such as the way forces play in the design, are amenable to mathematical analysis. The only checking we can do of UML-like diagrams is peer review. While this is helpful it leads to errors in the design that are often only uncovered during coding and testing. Even skilled designers , such as I consider myself to be, are often surprised when we turn such a design into software.Another issue is that of comparative cost. When you build a bridge, the cost of the design effort is about 10% of the job, with The rest being construction. in Softwa re the amount of time spent in coding is much, much less McConnell suggests that for a large project, only 15% of the project is code and unit test, an almost perfect reversal of the bridge building ratios. Even if you lump in all testing AS Part of Construction, The Design Is Still 50% of The Work. This Raises An Important Questions About The Nature of Design In Software Compared to Its Role in Other Branches of Engineering.
These kinds of questions led Jack Reeves to suggest that in fact the source code is a design document and that the construction phase is actually the use of the compiler and linker. Indeed anything that you can treat as construction can and should be automated.
This Thinking Leads To some important conclusions:
In software: construction is so cheap as to be free In software all the effort is design, and thus requires creative and talented people Creative processes are not easily planned, and so predictability may well be an impossible target We should be very wary of the. Traditional Engineering Metaphor for building software. it's a different Kind of Activity and Requires a Different Processthe Unpredictability of Requirements
There's a refrain I've heard on every problem project I've run into. The developers come to me and say "the problem with this project is that the requirements are always changing". The thing I find surprising about this situation is that anyone IS surprised by it. in building business software requirements Changes Are The Norm, The Question Is What We do About IT.
One route is to treat changing requirements as the result of poor requirements engineering. The idea behind requirements engineering is to get a fully understood picture of the requirements before you begin building the software, get a customer sign-off to these requirements, and then set Up Procedures That Limit Requirements Changes After The Sign-OFF.
One problem with this is that just trying to understand the options for requirements is tough. It's even tougher because the development organization usually does not provide cost information on the requirements. You end up being in the situation where you may have some desire for a Sun Roof On Your Car, But The SaleSman Can't Tell You IT ADS $ 10 To The Cost of the Car, or $ 10,000. WithOut Much Idea of The Cost, How Can You Figure Out WHETHER You Want To Pay That Sunroof?
Estimation is hard for many reasons. Part of it is that software development is a design activity, and thus hard to plan and cost. Part of it is that the basic materials keep changing rapidly. Part of it is that so much depends on which individual people are involved, and individuals are hard to predict and quantify.Software's intangible nature also cuts in. It's very difficult to see what value a software feature has until you use it for real. Only when you use an early version of some software do you Really Begin to Understand What Features Are Valuable and What Parts Are Not.
This leads to the ironic point that people expect that requirements should be changeable. After all software is supposed to be soft. So not just are requirements changeable, they ought to be changeable. It takes a lot of energy to get customers of software to fix Requirements. It's Even Worse Ifware Development Themselves, Because THEY "KNOW" That Software Is Easy to Change.
But even if you could settle all that and really could get an accurate and stable set of requirements you're probably still doomed. In today's economy the fundamental business forces are changing the value of software features too rapidly. What might be a good set of requirements now, is not a good set in six months time Even if the customers can fix their requirements, the business world is not going to stop for them And many changes in the business world are completely unpredictable:.. anyone who says otherwise is Either Lying, or Has Already Made A Billion on stock market trading.
EVERYTHING ELSE IN SOFTWARE Development Depends on The Requirements. If You Cannot Get Stable Requirements You Cannot Get A Predictable Plan. Disior?
In general, no. There are some software developments where predictability is possible. Organizations such as NASA's space shuttle software group are a prime example of where software development can be predictable. It requires a lot of ceremony, plenty of time, a large team, And Stable Requirements. Thereree.. However I don't think.................. ..
One of the big dangers is to pretend that you can follow a predictable process when you can not People who work on methodology are not very good at identifying boundary conditions:. The places where the methodology passes from appropriate in inappropriate Most methodologists want their. methodologies to be usable by everyone, so they do not understand nor publicize their boundary conditions. This leads to people using a methodology in the wrong circumstances, such as using a predictable methodology in a unpredictable situation.
There's a strong temptation to do that. Predictability is a very desirable property. However if you believe you can be predictable when you can not, it leads to situations where people build a plan early on, then do not properly handle the situation where the plan falls apart. you see the plan and reality slowly drifting apart. For a long time you can pretend that the plan is still valid. But at some point the drift becomes too much and the plan falls apart. Usually the fall is painful.
So if you are in a situation that is not predictable you can not use a predictive methodology. That's a hard blow. It means that many of the models for controlling projects, many of the models for the whole customer relationship, just aren ' t true any more. The benefits of predictability are so great, it's difficult to let them go. Like so many problems the hardest part is simply realizing that the problem exists.However letting go of predictability does not mean you have to revert to uncontrollable CHAOS. INSTEAD You NEED A Process That Can Give You Control Over An Unpredictability. That's Adaptivity Is All About.
Controlling An Unpredictable Process - Items
So how do we control ourselves in an unpredictable world? The most important, and still difficult part is to know accurately where we are. We need an honest feedback mechanism which can accurately tell us what the situation is at frequent intervals.
The key to this feedback is iterative development This is not a new idea Iterative development has been around for a while under many names:... Incremental, evolutionary, staged, spiral ... lots of names The key to iterative development is to frequently produce working versions of the final system that have a subset of the required features. These working systems are short on functionality, but should otherwise be faithful to the demands of the final system. They should be fully integrated and as carefully tested as a final delivery .
The point of this is that there is nothing like a tested, integrated system for bringing a forceful dose of reality into any project. Documents can hide all sorts of flaws. Untested code can hide plenty of flaws. But when people actually sit in front of a system and work with it, then flaws become truly apparent: both in terms of bugs and in terms of misunderstood requirements.Iterative development makes sense in predictable processes as well But it is essential in adaptive processes because an adaptive process needs to be able. to deal with changes in required features. This leads to a style of planning where long term plans are very fluid, and the only stable plans are short term plans that are made for a single iteration. Iterative development gives you a firm foundation in each iteration That You Can Base Your Later Plan.
A key question for this is how long an iteration should be. Different people give different answers. XP suggests iterations of between one and three weeks. SCRUM suggests a length of a month. Crystal will stretch further. The tendency, however, is to make Each Iteration As Short As You Can Get Away With. This Provides More Frequent Feedback, So you know where you are more offen.
The Adaptive Customer
This kind of adaptive process requires a different kind of relationship with a customer than the ones that are often considered, particularly when development is done by a separate firm. When you hire a separate firm to do software development, most customers would prefer a fixed- Tell the developers what., ask, And the onus is on the development organization to build the software.
A fixed price contract requires stable requirements and hence a predictive process. Adaptive processes and unstable requirements imply you can not work with the usual notion of fixed-price. Trying to fit a fixed price model to an adaptive process ends up in a very painful explosion. The nasty part of this explosion is that the customer gets hurt every bit as much as the software development company. After all the customer would not be wanting some software unless their business needed it. If they do not get it their business suffers. So even if they pay the development company nothing, they still lose. Indeed they lose more than they would pay for the software (why would they pay for the software if the business value of that software were less?) So there's dangers for both sides In Signing a Fixed Price Contract in CONDitions WHERE A Predictive Process Cannot Be Used. This Means That The Customer Has To Work DifferenTly.
This Doesn't Mean That You Can't fix. What it does mean is what you cannot FIX TIME, Price and Scope. The Usual Agile Approach Is To FIX TIME AND Price, AND TO Allow The Scope TO Vary in a controlled manner.
In an adaptive process the customer has much finer-grained control over the software development process. At every iteration they get both to check progress and to alter the direction of the software development. This leads to much closer relationship with the software developers, a true Business partnership. This Level of Engagement Is Not for Every Customer Organization, Nor for Every Software Developer; But it's essential to make one.
All this yields a number of advantages for the customer. For a start they get much more responsive software development. A usable, although minimal, system can go into production early on. The customer can then change its capabilities according to changes in the business, and also from learning from how the system is used in reality.Every bit as important as this is greater visibility into the true state of the project. The problem with predictive processes is that project quality is measured by conformance to plan. This makes it difficult for people to signal when reality and the plan diverge. The common result is a big slip in the schedule late in the project. in an agile project there is a constant reworking of the plan with every iteration. If bad news is lurking it tends to COME EARLIER, WHEN THEN THENTHING ABOUT It. Indeed This Risk Control IS A KEY Advantage of Item Development. Agile Methods Take this further by Keeping The Iteration Lengths Small, But Also by Seeing these Variations as Opportunities.
This has an important bearing what constitutes a successful project. A predictive project is often measured by how well it met its plan. A project that's on-time and on-cost is considered to be a success. This measurement is nonsense to an agile environment . For agilists the question is business value - did the customer get software that's more valuable to them them than the cost put into it A good predictive project will go according to plan, a good agile project will build something different and better than the original. Plan foresaw.
Putting People First
Executing an adaptive process is not easy In particular it requires a very effective team of developers The team needs to be effective both in the quality of the individuals, and in the way the team blends together There's also an interesting synergy:... Not just Does Adaptivity Require A Strong Team, MOST GOOD Developers Prefer An Adaptive Process.plug Compatible Programming Units
One of the aims of traditional methodologies is to develop a process where the people involved are replaceable parts. With such a process you can treat people as resources who are available in various types. You have an analyst, some coders, some testers, a manager . The individuals are not so important, only the roles are important. that way if you plan a project it does not matter which analyst and which testers you get, just that you know how many you have so you know how the number of Resources affects your plan.
BUT THIS RAISES A KEY QUESTION: Are The People Involved in Software Development Replaceable Parts? One of the key features of agile methods is what.
Perhaps the most explicit rejection of people as resources is Alistair Cockburn. In his paper Characterizing People as Non-Linear, First-Order Components in Software Development, he makes the point that predictable processes require components that behave in a predictable way. However people are NOTHERMORE HIOPOREES OF SOFTHERMORE HAVE LED HIM To Conclude The People In Software Development.
In the title, [of his article] I refer to people as "components". That is how people are treated in the process / methodology design literature. The mistake in this approach is that "people" are highly variable and non-linear, with unique success and failure modes. Those factors are first-order, not negligible factors. failure of process and methodology designers to account for them contributes to the sorts of unplanned project trajectories we so often see .--
[Cockburn non-linear]
One wonders if not the nature of software development works against us here. When we're programming a computer, we control an inherently predictable device. Since we're in this business because we are good at doing that, we are ideally suited to messing Up When Faced with human beings.
Although Cockburn is the most explicit in his people-centric view of software development, the notion of people first is a common theme with many thinkers in software. The problem, too often, is that methodology has been opposed to the notion of people as the First-Order Factor in Project Success.
This creates a strong positive feedback effect. If you expect all your developers to be plug compatible programming units, you do not try to treat them as individuals. This lowers morale (and productivity). The good people look for a better place to be And you end up with what you desire: Plug Compatible Programming Units.
Deciding that people come first is a big decision, one that requires a lot of determination to push through. The notion of people as resources is deeply ingrained in business thinking, its roots going back to the impact of Frederick Taylor's Scientific Management approach. In running a factory, this Taylorist approach may make sense. But for the highly creative and professional work, which I believe software development to be, this does not hold. (and in fact modern manufacturing is also moving away from the Taylorist model.) Programmers are Responsible Professionals
A key part of the Taylorist notion is that the people doing the work are not the people who can best figure out how best to do that work. In a factory this may be true for several reasons. Part of this is that many factory workers are NOT The MOST INTELLIGENT OR CREATIVE, in Part this is Because The the a Tension Between Management and Workers In That Management Makes More Money When The Workers Make Less.
Recent history increasingly shows us how untrue this is for software development. Increasingly bright and capable people are attracted to software development, attracted by both its glitz and by potentially large rewards. (Both of which tempted me away from electronic engineering.) Such schemes as Stock options increasingly align the program of the company.
(There may well be a generational effect here. Some anecdotal evidence makes me wonder if more brighter people have ventured into software engineering in the last ten years or so. If so this would be a reason for why there is such a cult of youth in The Computer Business, Like Most Cults There Needs to Be a grain of truth in it.
When you want to hire and retain good people, you have to recognize that they are competent professionals. As such they are the best people to decide how to conduct their technical work. The Taylorist notion of a separate planning department that decides how to do things ONLY WORKS IFE THE JOB BETER THOSE DOING ITIVATED People Doing The Job THIS DOES NOT HOLD.MANAGING A People Oriented Process
ITSELF IN A NUMBER OF DIFFERENT WAYS in Agile Processes. IT Leads to Different Effects, Not All of Them Are Consistent.
One of the key elements is that of accepting the process rather than the imposition of a process. Often software processes are imposed by management figures. As such they are often resisted, particularly when the management figures have had a significant amount of time away from active . ACCEPTING A Process Requires Commitment, And as Such Needs The Active Involvement of All The Team.
This ends up with the interesting result that only the developers themselves can choose to follow an adaptive process. This is particularly true for XP, which requires a lot of discipline to execute. This is where Crystal is such an effective complement as it aims at being Minimally disciplined.
Another point is that the developers must be able to make all technical decisions. XP gets to the heart of this where in its planning process it states that only developers may make estimates on how much time it will take to do some work.
Such technical leadership is a big shift for many people in management positions. Such an approach requires a sharing of responsibility where developers and management have an equal place in the leadership of the project. Notice that I say equal. Management still plays a role, but recognizes the expertise of developers.An important reason for this is the rate of change of technology in our industry. After a few years technical knowledge becomes obsolete. This half life of technical skills is without parallel in any other industry. Even technical people have to recognize that entering management means their technical skills will wither rapidly. Ex-developers need to recognize that their technical skills will rapidly disappear and they need to trust and rely on current developers.
The Difficulty of Measurement
If you have a process where the people who say how work should be done are different from the people who actually do it, the leaders need some way of measuring how effective the doers are. In Scientific Management there was a strong push to develop objective approaches To Measuring The Output of People.
This is particularly relevant to software because of the difficulty of applying measurement to software. Despite our best efforts we are unable to measure the most simple things about software, such as productivity. Without good measures for these things, any kind of external control is doomed .
Introducing measured management without good measures leads to its own problems. Robert Austin made an excellent discussion of this. He points out that when measuring performance you have to get all the important factors under measurement. Anything that's missing has the inevitable result that the doers will alter what they do to produce the best measures, even if that clearly reduces the true effectiveness of what they do. This measurement dysfunction is the Achilles heel of measurement-based management.Austin's conclusion is that you have to choose between measurement-base management and . delagatory management (where the doers decide how to the work) Measurement-based management is best suited to repetitive simple work, with low knowledge requirements and easily measured outputs - exactly the opposite of software development.
The point of all this is that traditional methods have operated under the assumption that measurement-based management is the most efficient way of managing. The agile community recognizes that the characteristics of software development are such that measurement based management leads to very high levels of measurement Dysfunction. It's at the center of the agility................
The role of business leadership
But the technical people can not do the whole process themselves They need guidance on the business needs This leads to another important aspect of adaptive processes:.. They need very close contact with business expertise.
This goes beyond most projects involvement of the business role. Agile teams can not exist with occasional communication. They need continuous access to business expertise. Furthermore this access is not something that is handled at a management level, it is something that is present for every developer . Since developers are capable professionals in their own discipline, they need to be able to work as equals with other professionals in other disciplines.A large part of this, of course, is due to the nature of adaptive development. Since the whole premise of Adaptive Developments.
There is nothing more frustrating to a developer than seeing their hard work go to waste. So it's important to ensure that there is good quality business expertise that is both available to the developer and is of sufficient quality that the developer can trust them.
The Self-Adaptive Process
So far I've talked about adaptivity in the context of a project adapting its software frequently to meet the changing requirements of its customers However there's another angle to adaptivity:.. That of the process changing over time A project that begins using an adaptive process Won't have the hand, the team will find what works for the teeth, and alter the process to fit.
The first part of self-adaptivity is regular reviews of the process. Usually you do these with every iteration. At the end of each iteration, have a short meeting and ask yourself the following questions (culled from Norm Kerth)
What Did We do Well? What Can We do Better? What Puzzles US?
These questions will lead you to ideas to change the process for the next iteration. In this way a process that starts off with problems can improve as the project goes on, adapting better to the team that uses it.If self-adaptivity occurs within a project, it's even more marked across an organization. To deepen the process of self-adaptivity I suggest teams do a more formal review and major project milestones following the project retrospective sessions outlined by Norm Kerth. These retrospectives involve a 2-3 day offsite meeting And A Trained Facilitator. NOT Only Do The Provide Learning for the Team, The Also Also Provide Learning for the Whole Organization.
A consequence of self-adaptivity is that you should never expect to find a single corporate methodology. Instead each team should not just choose their own process, but should also actively tune their process as they proceed with the project. While both published processes and the Experience of Other Projects CAN Act As An Inspiration and A Baseline, The Developers Professional Responsibility Is To Adapt The Process To The Task At Hand.
This self-adaptivity is most marked in ASD and Crystal. XP's rigid rules seem to disallow it, but that is only a surface impression since XP does encourage people to tune the process. The main difference with XP is that its advocates suggest doing XP by ................... ..
The methodologies
Several methodologies fit under this agile banner. While all of them share many characteristics, there are also some significant differences. I can not highlight all the points in this brief survey, but at least I can point you to some places to look. I also can not speak with significant experience about most of these. I've done quite a lot of work based on XP, and seen RUP around in many guises, but with most of the others my knowledge is primarily the less adequate book knowledge. XP (EXTreme Programming)
Of all the agile methodologies, this is the one that has got the most attention. Partly this is because of the remarkable ability of the leaders of XP, in particular Kent Beck, to get attention. It's also because of the ability of Kent Beck to attract people to the approach, and to take a leading role in it. in some ways, however, the popularity of XP has become a problem, as it has rather crowded out the other methodologies and their valuable ideas.
The roots of XP lie in the Smalltalk community, and in particular the close collaboration of Kent Beck and Ward Cunningham in the late 1980's. Both of them refined their practices on numerous projects during the early 90's, extending their ideas of a software development approach that WAS Both Adaptive and People-Oriented.
The crucial step from informal practice to a methodology occurred in the spring of 1996. Kent was asked to review the progress of the C3 payroll project for Chrysler. The project was being carried out in Smalltalk by a contracting company, and was in trouble. Due to the low quality of the code base, Kent recommended throwing out the entire code base and starting from scratch. The project then restarted under his leadership and since became the early flagship and training ground for XP.The first phase of C3 was very successful and went live in early 1997. The project continued since and ran into difficulties later, which resulted in the canceling of further development in 1999. (which if nothing else proves that XP is no guarantee of success.)
XP begins with four values: Communication, Feedback, Simplicity, and Courage It then builds up to a dozen practices which XP projects should follow Many of these practices are old, tried and tested techniques, yet often forgotten by many, including most planned.. ..............
One of the most striking, as well as initially appealing to me, is its strong emphasis on testing. While all processes mention testing, most do so with a pretty low emphasis. However XP puts testing at the foundation of development, with every programmer writing .
On this platform XP builds an evolutionary design process that relies on refactoring a simple base system with every iteration. All design is centered around the current iteration with no design done for anticipated future needs. The result is a design process that is disciplined, yet startling , combining discipline with adaptivity in a way that arguably makes it the most well developed of all the adaptive methodologies.XP has developed a wide leadership, many of them springing from the seminal C3 project. As a result there's a lot of sources for more information . Kent Beck wrote Extreme Programming Explained the key manifesto of XP, which explains the rationale behind the methodology and enough of an explanation of it to tell folks if they are interested in pursuing it further. in the last couple of years there's been an epidemic of Brightly Colored XP Books, Most of Which Are Pretty Similar in That The Describe The Whole Process from the point of view of view of vorious early adopters.
As well as books, there are a fair number of web resources To find a more structured approach to XP, it's best to start with two sites from C3 alumni:.. Ron Jeffries's xProgramming.com and Don Wells's extremeProgramming.org Much of the early advocacy and development of the XP ideas occurred on Ward Cunningham's wiki web collaborative writing environment. The wiki remains a fascinating place to discover, although its rambling nature does lead you into being sucked in. There is an active, and often interesting xp discussion egroup. One of the more intending "Outside" Views of XP is this of mark Paulk, Who is one of the leaders of the cmm community - His Paper Looks AT XP from a cmm personpective.
Cockburn's Crystal FamilyAlistair Cockburn has been working on methodology ever since he was tasked by IBM to write about methodology in the early 90's. His approach is unlike most methodologists, however. Instead of building on solely personal experience to build a theory of how things should be . done, he supplements his direct experience with actively seeking to interview projects to see how they work Furthermore he is not afraid to alter his views based on his discoveries: all of which make him my favorite methodologist.
His book, Surviving Object-Oriented Projects, was his first piece of advice on running projects, and remains my number one book recommendation for running iterative projects. More recently Alistair has written an overview book on agile software development that looks at the underlying principles of These Kinds of Methodologies.
Since that book he's explored agile methods further, coming up with the Crystal family of methodologies It's a family because he believes that different kinds of projects require different kinds of methodologies He looks into this variation along two axes:.. The number of people in the project, and the consequences of errors. Each methodology fits into a different part of the grid, so a 40 person project that can lose discretionary money has a different methodology than a six person life-critical project.
The Crystals share a human orientation with XP, but this people-centeredness is done in a different way. Alistair considers that people find it hard to follow a disciplined process, thus rather than follow XP's high discipline, Alistair explores the least disciplined methodology that could still succeed, consciously trading off productivity for ease of execution. He thus considers that although Crystal is less productive than XP, more people will be able to follow it.Alistair also puts a lot of weight in end of iteration reviews, thus encouraging the process to be self-improving. His assertion is that iterative development is there to find problems early, and then to enable people to correct them. This places more emphasis on people monitoring their process and tuning it as they develop.
Open Source
You may be surprised by this heading. After all open source is a style of software, not so much a process. However there is a definite way of doing things in the open source community, and much of their approach is as applicable to closed source Projects as it is to open source. in particular their process is geade to physically distributed teams, WHICH IMPORTANT BECAUSE MOST Adaptive Processes stress co-located teams.
Most open source projects have one or more maintainers. A maintainer is the only person who is allowed to commit a change into the source code repository. However people other than the maintainer may make changes to the code base. The key difference is that other folks need to send their change to the maintainer, who then reviews it and applies it to the code base. Usually these changes are made in the form of patch files which make this process easier. The maintainer thus is responsible for coordinating the patches and maintaining the design cohesion of the software.Different projects handle the maintainer role in different ways. some have one maintainer for the whole project, some divide into modules and have a maintainer per module, some rotate the maintainer, some have multiple maintainers on the same code, Others Have a Combination of these Ideas. Most Open Source Folks Are Part Time, So There IS An Issue On How Well Such A Team Coordinates for a full time project.
A particular feature of open source development is that debugging is highly parallelizable. So many people can be involved in debugging. When they find a bug they can send the patch to the maintainer. This is a good role for non-maintainers since most of the Time is sprent finding the bug. It's also Good for Folks WITHOUT STRONG DESIGN SKILLS.
The process for open-source is not well written up as yet. The most famous paper is Eric Raymond's The Cathedral and the Bazar, which while an excellent description is also rather brief. Karl Fogel's book on the CVS code repository also contains several good CHAPTERS ON Open-Source Process That Would Be Interesting Even to Those Who Never Want To Do CVS Update.
Highsmith's Adaptive Software DevelopmentJim Highsmith has spent many years working with predictive methodologies He developed them, installed them, taught them, and has concluded that they are profoundly flawed:. Particularly for modern businesses.
His recent book focuses on the adaptive nature of new methodologies, with a particular emphasis on applying ideas that originate in the world of complex adaptive systems (commonly referred to as chaos theory.) It does not provide the kind of detailed practices like the XP .
At The Heart of Asd Are Three Non-linear, Overlapping Phases: Speculation, Collaboration, And Learning.
Highsmith views planning as a paradox in an adaptive environment, since outcomes are naturally unpredictable. In traditional planning, deviations from plans are mistakes that should be corrected. In an adaptive environment, however, deviations guide us towards the correct solution.
In this unpredictable environment you need people to collaborate in a rich way in order to deal with the uncertainty. Management attention is less about telling people what to do, and more about encouraging communication so that people can come up with creative answers themselves.
................
In An Adaptive Environment, Learning Challenges All Stakeholders - Developers and Their Customers - To Examine Their Assumptions and To Use The results of each development cycle to adapt the next.
-
[Highsmith]
As such learning is a continuous and important feature, one that assumes that plans and designs must change as development proceeds.The overriding, powerful, indivisible, predominant benefit of the Adaptive Development Life Cycle is that it forces us to confront the mental models that are At the root of ot self-delission. It forces us to more realistical estimate we ability.
-
[Highsmith]
With this emphasis, Highsmith's work focuses directly on to foster the hard parts of adaptive development, in particular how to foster collaboration and learning within the project. As such his book helps provide ideas to foster these "soft" areas which makes a nice complement to The Grounded Practice Based Approaches Such As XP, FDD, And Crystal.
Scrum
Scrum has been around for a while in object-oriented circles, although I'll confess I'm not too au fait with its history or development. Again it focuses on the fact that defined and repeatable processes only work for tackling defined and repeatable problems WITH Defined And Repeatable People in Defined and Repeatable Environments.
Scrum divides a project into iterations (which they call sprints) of 30 days. Before you begin a sprint you define the functionality required for that sprint and then leave the team to deliver it. The point is to stabilize the requirements during the sprint.
. However management does not disengage during the sprint Every day the team holds a short (fifteen minute) meeting, called a scrum, where the team runs through what it will do in the next day In particular they surface to the management blocks:. Impediments to progress that are getting in the way that management needs to resolve. They also report on what's been done so management gets a daily update of where the project is.Scrum literature focuses mainly on the iterative planning and tracking process. It's very close to the Other Agiles In Many Respects and Should Work Well with The Coding Practices from XP.
After a long time without a book, finally Ken Schwaber and Mike Beedle have written the first scrum book. Ken Schwaber also hosts controlChaos.com [missing reference] which is probably the best overview of SCRUM. Jeff Sutherland has always has an active web site On Object Technology Issues and Includes a Section On Scrum. There's Also A Good overview of Scrum Practices in The PLOPD 4 BOOK. Scrum Has a yahoo discussion list.
Feature Driven Development
Feature Driven Development (FDD) was developed by Jeff De Luca and long time OO guru Peter Coad. Like the other adaptive methodologies, it focuses on short iterations that deliver tangible functionality. In FDD's case the iterations are two weeks long.
FDD HAS FIVE Processes. The First Three Are Done at The Beginning of The Project.
Develop An Overall Model Build A Features List Plan by Feature
The Last Two Are Done with IT.
Design by Feature Build by Feature
Each Process Is Broken Down Into Tasks and is Given Verification Criteria
The developers come in two kinds:. Class owners and chief programmers The chief programmer are the most experienced developers They are assigned features to build However they do not build them alone Instead the chief programmer identifies which classes are involved in implementing the... feature and gathers their class owners together to form a feature team for developing that feature. The chief programmer acts as the coordinator, lead designer, and mentor while the class owners do much of the coding of the feature.Until recently, documentation on FDD was very skimpy. Finally there is a full book on FDD. Jeff De Luca, the primary inventor. now has an FDD portal with articles, blogs, and discussion boards. The original description was in Peter Coad et al's UML in Color book. His company , Together, Also Does Consulting and Training On FDD.
DSDM (Dynamic System Development Method)
DSDM started in Britain in 1994 as a consortium of UK companies who wanted to build on the RAD and iterative development. Starting with 17 founders it now boasts over a thousand members and has grown outside its British roots. Being developed by a consortium, it has a different flavor to many of the other agile methods. It has a full time organization supporting it with manuals, training courses, accreditation programs, and the like. It also carries a price tag, which has limited my investigation of the methodology. However Jennifer Stapleton Has Written A Book Which Gives An Overview of The Methodology.
Using the method begins with a feasibility and a business study. The feasibility study considers whether DSDM is appropriate to the project at hand. The business study is a short series of workshops to understand the business area where the development takes place. It also comes up with outline system architectures and project plan.The rest of the process forms three interwoven cycles: the functional model cycle produces analysis documentation and prototypes, the design and build cycle engineers the system for operational use, and the implementation cycle handles the deployment to operational use .
DSDM has underlying principles that include active user interaction, frequent deliveries, empowered teams, testing throughout the cycle. Like other agile methods they use short timeboxed cycles of between two and six weeks. There's an emphasis on high quality and adaptivity towards changing requirements.
I have not seen much evidence of its use outside the UK, but DSDM is notable for having much of the infrastructure of more mature traditional methodologies, while following the principles of the agile methods approach. There does seem to be a question on whether its .
The manifesto for agile Software Developments
With so much similarity between these methods, there was a fair bit of interest in some form of collaborative work. As such representatives from each of these methodologies were invited to a two day workshop at Snowbird Utah in February 2001. I tagged along, without much .......................
As it turned out I was surprised. Everyone was conscious of the fact that there was a lot of common ground, and this recognition was much greater than the differences between the processes. So as well as some useful contact making between the process leaders, there was also the idea to issue a joint statement -. a call to arms in favor of more agile software processes (We also agreed to use the term "agile" to refer to our common ideas.) The result is a Manifesto for Agile Software Development , a statement of the common values and principles of agile processes. There's also a desire to collaborate further in the future, to further encourage both technologists and business people to use and require agile approaches to software development. There's a software development magazine article that is A Commentary and Explanation of The Manifesto.
The manifesto was just that, a publication which acted as a rallying point for those who shared these basic ideas. One of the fruits of the effort was to create a longer lived body, the Agile Alliance. The Agile Alliance is a non-profit organization .
Context Driven Testing
From the beginning it's been software developers who have been driving the agile community. However many other people are involved in software development and are affected by this new movement. One obvious such group is testers, who often live in a world very much contained by waterfall thinking. With common guidelines that state that the role of testing is to ensure conformance of software to up-front written specifications, the role of testers in an agile world is far from clear.As it turns out, several people in the testing community have been questioning much of mainstream testing thinking for quite a while. This has led to a group known as context-driven testing. The best description of this is the book Lessons Learned in Software Testing. This community is also very active on the web, take A look at seat hosted by Brian Marken (One of the Authors of The Agile Manifesto), Brett Pettichord, James Bach, And Cem Kane.
Is Rup An Agile Method?
Whenever we start discussing methods in the OO arena, we inevitably come up with the role of the Rational Unified Process. The Unified Process was developed by Philippe Kruchten, Ivar Jacobson and others at Rational as the process complement to the UML. RUP is a process framework and as such can accommodate a wide variety of processes Indeed this is my main criticism of RUP -. since it can be anything it ends up being nothing I prefer a process that tells you what to do rather than provide endless options..
As a result of this process framework mentality, RUP can be used in a very traditional waterfall style or in an agile manner So as a result you can use RUP as a agile process, or as a heavyweight process -. It all depends on how you Tailor it in your environment.
Craig Larman is a strong proponent of using the RUP in a agile manner. His excellent introductory book on OO development contains a process that's very much based on his light RUP thinking. His view is that much of the recent push to agile methods is nothing more than accepting mainstream OO development that's been captured as RUP. One of the things that Craig does is spend the first two or three days of a month long iteration with the whole team using the UML to outline the design of the work to be done during the iteration. This is not a blueprint that can not be deviated from, but rather a sketch that gives people a perspective on how things can be done over the iteration.Another tack at agile RUP is Robert Martin's dX process. The dx process is a fully compliant instance of RUP, that just happens to be identical to XP (turn dX upside down to see the joke). dX is designed for folks that have to use RUP, but want to use XP. As such it is both XP and RUP And thus a good example of the a Gile Use of rup.
For me, one of the key things that needs to happen with RUP is that the leaders of RUP in the industry need to emphasize their approach to software development. More than once I have heard people using RUP who are using a waterfall style development process. Due to my contacts in the industry I know that Philippe Kruchten and his team are firm believers in iterative development. Clarifying these principles and encouraging agile instances of RUP such as Craig's and Robert's work will have an important effect.
Other Sources
.
There are a number of other papers and discussions about this theme of agile methods. While these may not be full methodologies, they do offer insights into this growing field.The Pattern Language of Programming conferences has often contained material that touches on this subject, if only because many of the folks interested in patterns are also interested in more adaptive and humane methods. A leading early paper was Jim Coplien's paper at PLoP1. Ward Cunningham's Episodes pattern language appeared in PLoP2. Jim Coplein now hosts the OrgPatterns site, a wiki which Collects together Patterns for Organizational Patterns.
Dirk Riehle sent a paper to XP2000 that compares the value systems of XP and Adaptive Software Development. The Feb 2002 edition of the Coad letter compares XP to FDD. The July edition of IEEE Software includes several articles on "process diversity" which touch on these Methodologies.
Mary Poppendieck Wrote A Fascinating Article Company for the agile methodological.
SHOLD you go agile?
Using a agile method is not for everyone. There are a number of things to bear in mind if you decide to follow this path. However I certainly believe that these new methodologies are widely applicable and should be used by more people than currently consider them.
In today's environment, the most common methodology is code and fix. Applying more discipline than chaos will almost certainly help, and the agile approach has the advantage that it is much less of a step than using a heavyweight method. Here much of the advantage of ..................... ..
One of the biggest limitations to these new methodologies is how they handle larger teams. Like many new approaches they tend to be used first on a small scale rather than a larger scale. Also often they've been created with an emphasis on small teams. Extreme Programming explicitly says that it is designed for teams of up to around twenty people. It's worth remembering that many software teams could be reduced in size without reducing the overall productivity.Other agile approaches are intended for larger sized teams. FDD was originally designed around A Fifty Person Project. Thoughtworks HAS Used XP Influenced Projects with a Team of Around A 100 in Three Continents. Scrum's Been Used To Handle Similar Size Product Teams.
Hopefully one message that's clear from this article is that adaptive approaches are good when your requirements are uncertain or volatile. If you do not have stable requirements, then you are not in the position to have a stable design and follow a planned process. In these situations an adaptive process may be less comfortable, but it will be more effective. Often the biggest barrier here is the customer. In my view it's important for the customer to understand that following a predictive process when requirements change is risky to them just As Much as it is to development.
If you are going to take the adaptive route, you need to trust your developers and involve them in the decision. Adaptive processes rely on you trusting your developers, so if you consider your developers to be of low quality and motivation then you should use a Predictive approach.
So to Summarize. The Following Factors Suggest An Adaptive Process
Uncertain Or Volatile Requirements Responsible and Motivated Developers Customer Who Understands and Will Get Involved.These Factors Suggest a Predictive Process
A Team of over a hundred fixed price, or more correctly a fixed scope, contract
Acknowledgments
I've taken lots of ideas from people for this paper, more than I could possibly list. For concrete suggestions I'd like to thank Marc Balcer, Kent Beck, Alistair Cockburn, Ward Cunningham, Bill Kimmel, and Frank Westphal.
Do Remember That this is an evolving web paper and likely to change. I'll i Have The Inclination. I'll Add A Record of Significant Changes, HoWever Minor Changes Will Occur WithOut Comment.
Revision History
Here's a list of the major updates to this paper
April 2003: Revised several sections Added section on difficulty of measurement and context driven testing June 2002:.. Updated references November 2001: Updated some recent references March 2001: Updated to reflect the appearance of the Agile Alliance November 2000: Updated section on ASD and Added Sections On DSDM and Rup December 2000: Abridged Version Published in Software Development Magazine Under The Title of "Put Your Process ON A Diet" July 2000: Original Publication on Martinfowler.com
©
CopyRight Martin Fowler, All Rights Reserved