Dr. Dobb's Journal - December 2008 - (Page 49) D12ambler_p3as 10/10/08 8:58 AM Page 49 by Scott W. Ambler The Agile Edge Complex Requirements On an Agile Project Addressing the challenges of complex requirements THE REAL WORLD is a complex place, resulting in complex requirements for any system that has to work there. This is true regardless of development paradigm. Although “agile in the small” methodologies such as Scrum and Extreme Programming (XP) have done much to show us how to improve our approach, too many people have thrown out the requirements management baby with the bureaucracy bathwater after putting too much faith in the overly simplistic strategies of those processes. Luckily, with a bit of discipline, it is straightforward to address the inherent challenges of complex requirements in an agile manner without resorting to the documentation-heavy practices favored by the traditional community. Not only do agile development teams implement new requirements during an iteration, they also fix defects and perform other nonrequirements work. Figure 1 depicts the OpenUP’s (www.eclipse.org/epf) work management strategy, an extension to Scrum’s product backlog strategy. The first thing that you should notice is that it’s not just a product backlog but also a stack of work items. A work item is often a small functional requirement, such as a user story or feature, but can also be a defect or a nonrequirement item such as reviewing the work of another team, attending a training session, or setting up equipment. In “Scaling Test-Driven Development” (www.ddj.com/architect/205207998) I showed how disciplined agile teams will have an independent test team working in parallel to the team, validating new builds as they’re made available, and reporting defects back to the development team. By treating defects as a type of requirement that gets prioritized, estimated, and put on the work item stack, you can simplify your change management process by in effect combining defect and requirements management into one. Furthermore, although you can try to plan for nonrequirement work items by fudge factors in your planning game efforts, the reality is that these fudge factors will vary between iterations because these sorts of work items don’t occur as a steady stream throughout a project. To see this work item backlog strategy in action, you can download a trail version of Rational Team Concert (RTC) from www.jazz.net, which integrates this functionality into a Eclipse-based development environment for distributed agile teams. Another extension captured by Figure 1 is the explicit recognition that you should look down the work item stack an iteration or two for potentially complicated work items. When you find one, and they do occur, if it is close to being popped from the top of the stack, it behooves you to follow Agile Modeling’s Model A Bit Ahead best practice (www.agilemodeling.com/essays/bestPractices.htm) and explore that work item and thereby avoid being blindsided by it. Although this can sound like heresy to agile purists, as we saw in DDJ’s 2008 Modeling and Documentation survey (November 2008), it is quite common for Agilists to model. On the surface this may appear to go against Extreme Programming (XP)’s philosophy of having the courage to worry about tomorrow’s problem tomorrow. Although this type of machoism might make developers feel good about what they’re doing, and it is certainly an excellent juxtaposition to the risks inherent in detailed up front modeling, when taken to the extreme this philosophy proves to be an incredibly poor strategy in practice because sometimes complex work items can put your project at risk if you’re not expecting them. Remember that nowhere in XP or Scrum does it say to be stupid, so don’t be afraid to extend those methods with proven practices from other sources. Beyond Scrum The Scrum method has popularized the idea of managing requirements as a stack of small, functional chunks, captured in a prioritized stack called a “product backlog” The idea is that at the beginning . of each iteration/sprint, you pull an iteration’s worth of work off the top of the stack. If only it were that easy. Although Scrum has helped us to get away from the onerous change prevention strategies (oops, I mean change management strategies) of traditional methods, it has blinded a generation of developers to the inherent complexities and nuances of understanding and implementing requirements. Scrum’s product backlog concept works well for simple functional requirements, but as I described in “Beyond Functional Requirements on Agile Projects” (www.ddj.com/architect/ 210601918), it comes up short for nonfunctional requirements and architectural constraints. These types of requirements are addressed through three strategies: initial architectural/requirements envisioning, continuous independent testing, and education. Actual Usage Is Complex Complex functional requirements can clearly be organized into collections of smaller functional requirements, a process called requirements disaggregation, but that doesn’t imply that those smaller requirements still have value outside the context of the larger collection. For example, you could write user stories indicating that your system should capture the name and address of a customer, that it should produce a mailing list of customers, that it should enable you to narrow down that list given certain criteria, and that it should output that mailing list in a standard XML format. All interesting requirements, but each one on their own provides very little value until you put them in the greater context of sending out marketing literature to a targeted group of customers. Until all of those user stories, and more, are implemented your system really doesn’t provide true business value to your stakeholders, regardless of December 2008 l www.ddj.com l Dr. Dobb’s Journal Figure 1: Work items are addressed in priority order on disciplined agile projects. 49 http://www.eclipse.org/epf http://www.ddj.com/architect/205207998 http://www.jazz.net http://www.agilemodeling.com/essays/bestPractices.htm http://www.ddj.com/architect/210601918 http://www.ddj.com/architect/210601918 http://www.ddj.com
Table of Contents Feed for the Digital Edition of Dr. Dobb's Journal - December 2008 Dr. Dobb's Journal - December 2008 Contents Friday Night Fish Fry Alia Vox Developer Diaries Conversations The Man Who Sold the Sky Performance on Rails LINQ-to-SQL and T-SQL A Remote Java RMI Registry Beyond B-Trees File Descriptors and Multithreaded Programs Effective Concurrency The Agile Edge Swaine's Flames Dr. Dobb's Journal - December 2008 Dr. Dobb's Journal - December 2008 - Dr. Dobb's Journal - December 2008 (Page Cover1) Dr. Dobb's Journal - December 2008 - Dr. Dobb's Journal - December 2008 (Page Cover2) Dr. Dobb's Journal - December 2008 - Dr. Dobb's Journal - December 2008 (Page 1) Dr. Dobb's Journal - December 2008 - Dr. Dobb's Journal - December 2008 (Page 2) Dr. Dobb's Journal - December 2008 - Dr. Dobb's Journal - December 2008 (Page 3) Dr. Dobb's Journal - December 2008 - Contents (Page 4) Dr. Dobb's Journal - December 2008 - Contents (Page 5) Dr. Dobb's Journal - December 2008 - Friday Night Fish Fry (Page 6) Dr. Dobb's Journal - December 2008 - Friday Night Fish Fry (Page 7) Dr. Dobb's Journal - December 2008 - Friday Night Fish Fry (Page 8) Dr. Dobb's Journal - December 2008 - Friday Night Fish Fry (Page 9) Dr. Dobb's Journal - December 2008 - Alia Vox (Page 10) Dr. Dobb's Journal - December 2008 - Alia Vox (Page 11) Dr. Dobb's Journal - December 2008 - Developer Diaries (Page 12) Dr. Dobb's Journal - December 2008 - Developer Diaries (Page 13) Dr. Dobb's Journal - December 2008 - Conversations (Page 14) Dr. Dobb's Journal - December 2008 - Conversations (Page 15) Dr. Dobb's Journal - December 2008 - The Man Who Sold the Sky (Page 16) Dr. Dobb's Journal - December 2008 - The Man Who Sold the Sky (Page 17) Dr. Dobb's Journal - December 2008 - The Man Who Sold the Sky (Page 18) Dr. Dobb's Journal - December 2008 - The Man Who Sold the Sky (Page 19) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 20) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 21) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 22) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 23) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 24) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 25) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 26) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 27) Dr. Dobb's Journal - December 2008 - Performance on Rails (Page 28) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 29) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 30) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 31) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 32) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 33) Dr. Dobb's Journal - December 2008 - LINQ-to-SQL and T-SQL (Page 34) Dr. Dobb's Journal - December 2008 - A Remote Java RMI Registry (Page 35) Dr. Dobb's Journal - December 2008 - A Remote Java RMI Registry (Page 36) Dr. Dobb's Journal - December 2008 - A Remote Java RMI Registry (Page 37) Dr. Dobb's Journal - December 2008 - A Remote Java RMI Registry (Page 38) Dr. Dobb's Journal - December 2008 - A Remote Java RMI Registry (Page 39) Dr. Dobb's Journal - December 2008 - Beyond B-Trees (Page 40) Dr. Dobb's Journal - December 2008 - Beyond B-Trees (Page 41) Dr. Dobb's Journal - December 2008 - File Descriptors and Multithreaded Programs (Page 42) Dr. Dobb's Journal - December 2008 - File Descriptors and Multithreaded Programs (Page 43) Dr. Dobb's Journal - December 2008 - File Descriptors and Multithreaded Programs (Page 44) Dr. Dobb's Journal - December 2008 - File Descriptors and Multithreaded Programs (Page 45) Dr. Dobb's Journal - December 2008 - Effective Concurrency (Page 46) Dr. Dobb's Journal - December 2008 - Effective Concurrency (Page 47) Dr. Dobb's Journal - December 2008 - Effective Concurrency (Page 48) Dr. Dobb's Journal - December 2008 - The Agile Edge (Page 49) Dr. Dobb's Journal - December 2008 - The Agile Edge (Page 50) Dr. Dobb's Journal - December 2008 - The Agile Edge (Page 51) Dr. Dobb's Journal - December 2008 - Swaine's Flames (Page 52) Dr. Dobb's Journal - December 2008 - Swaine's Flames (Page Cover3) Dr. Dobb's Journal - December 2008 - Swaine's Flames (Page Cover4)
For optimal viewing of this digital publication, please enable JavaScript and then refresh the page. If you would like to try to load the digital publication without using Flash Player detection, please click here.