Agile Adoption:Reducing Cost

Page 1

www.dzone.com

Get More Refcardz! Visit refcardz.com

#54

Agile Adoption:

CONTENTS INCLUDE: n

n

n

n

n

n

About this Agile Adoption Refcard Four Strategies to Reduce Cost The Practices How to adopt Agile Practices Successfully Whats Next References and more...

Reducing Cost By Gemba Systems

Maintain the Theory of the Code

About this agile adoption refcard

One way to look at software development is ‘theory building’. That is, programs are theories – models of the world mapped onto software – in the head of the individuals of the development team. Great teams have a shared understanding of how the software system represents the world. Therefore they know where to modify the code when a requirement change occurs, they know exactly where to go hunting for a bug that has been found, and they communicate well with each other about the world and the software.

Faster, better, cheaper. That’s what we must do to survive. The Time to Market Refcard (a companion in this series) addresses faster, the Quality Refcard addresses better, and this Refcard addresses cheaper. This is about building the system for less. Some of the costs of software development are associated with man hours needed to build the system, others with cost of maintenance over time, and yet others include hardware as well as software platform costs. Practices that educe any or all of these costs without sacrificing quality reduce the overall cost of the system.

Conversely, a team that does not have a shared ‘theory’ make communication mistakes all the time. The customer may say something that the business analyst misunderstands because she has a different world view. She may, in turn, have a different understanding than the developers, so the software ends up addressing a different problem or, after several trials, errors and frustrations, the right problem but very awkwardly. Software where the theory of the team does not match, or even worse, the theory is now lost because the original software team is long-gone, is very expensive to maintain.

Then there is the Pareto principle – a.k.a. the 80/20 rule. This rule suggests that roughly 20% of the software system is used 80% of the time. This is also backed up by research that is even more dramatic [figure with usage]. Practices that help the team build only what is needed in a prioritized manner reduce the cost and still deliver the most important business value to the customer (the part she uses). Figure 1 Practices that help reduce the cost of building software.

Building a shared theory of the world-to-software-mapping is a human process that is best done face-to-face by trial and error and with significant time.

Reduce Cost More Effective

Refactoring

Evolutionary Design

Build Less Automated Developer Tests

Automated Acceptance Tests

Evocative Document

Simple Design

It has been shown that we build many more features than are actually used. In fact, we can see in Figure 2, only about 20% of functionality we build is used often or always. More than 60% of all functionality built in software is rarely or never used!

Backlog

Cross -Functional Team

Self-Organizing Team

Retrospective

Iteration

Done State

Get More Refcardz

Continuous Integration Less Effective

(They’re free!)

Agile Adoption

You will be able to use this Refcard to get 50,000 ft view of what will be involved to reduce the cost of developing your systems.

Authoritative content Designed for developers n Written by top experts n Latest tools & technologies n Hot tips & examples n Bonus content online n New issue every 1-2 weeks n n

Four Strategies to reduce cost Software development is complex and often very complicated. It is HARD. This is not some new revelation, in fact Fred Brooks in the well known paper, “No Silver Bullet.”, states: The essence of a software entity is a construct of interlocking concepts ... I believe the hard part of building software to be the specification, design, and testing of this conceptual construct, not the labor of representing it and testing the fidelity of the representation.

Subscribe Now for FREE! Refcardz.com

There are four major strategies that can help you reduce the cost of building and maintaining your software DZone, Inc.

|

www.dzone.com


2

Agile Adoption

tech facts at your fingertips

One way to reduce the cost of software is to find a way not to build the unused functionality. There are several Agile practices that help you get to that point.

when it eventually happens we can make significant savings. One of the strongest points of Agile development is that its practices enable you to roll with the punches and change your software as the business world changes.

16 % Sometimes Used

19 % Rarely Used

The four strategies above: maintain the theory of the code, build less, paying less for maintenance and being able to react to change are not independent.

13 % Often Used

The practices Evolutionary Design

7% Always Used

Evolutionary Design

45 % Never Used

Simple Design

Automated Developer Tests

Functionality Usage

Refactoring

Figure 2: Most functionality built is never used.

Pay Less for Bug Fixes Typically, anywhere between 60%-90% of software cost goes into the maintenance phase. That is, most of our money goes into keeping the software alive and useful for our clients after the initial build. Practices that help us reduce the cost of software maintenance will significantly affect the overall cost of the software product or system.

n Definitio

Evolutionary design reduces the cost by focusing on always building less. This, in turn, directly affects the cost of change drastically.

You are on a development team practicing automated developer tests, refactoring, and simple design. That’s it, because this is one of those things that is applicable to all types of development projects. The context is especially a match if the technology used technologies is new to a large part of the team.

Easier to find & fix

Reduces

Evolutionary design is the simple design practice done continuously. Start off with a simple design and change that design only when a new requirement cannot be met by the existing design.

Simple Design

Easy to understand

Simple Design

Easier to change

Automated Developer Tests

Figure 3: Maintain the theory of the code helps reducing the cost of making design changes and fixing bugs. Building less enables better understanding and helps to understand the theory of the code for a change because there is less to change

n Definitio

Pay Less for Changes The only thing constant in today’s software market is change. If we can embrace change, plan for it, and reduce its cost DZone, Inc.

|

www.dzone.com

Refactoring

If a decision between coding a design for today’s requirements and a general design to accommodate for tomorrow’s requirements needs to be made, the former is a simple design. Simple design meets the requirements for the current iteration and no more.


3

Agile Adoption

tech facts at your fingertips

Evocative Document

Simple design reduces cost because you build less code to meet the requirements and you maintain less code afterwards. Simple designs are easier to build, understand, and maintain.

n Definitio Simple design should only be used when your team also is writing automated developer tests and refactoring. A simple design is fine as long as you can change it to meet future requirements.

Evocative documents are documents that evoke memories, conversations, and situations that are shared by those who wrote the document. They are more meaningful and representative of a team’s understanding of the system than traditional documents.

Evocative documents help by accurately representing the team’s internal model of the software and allowing that model to be handed down from master to apprentice. The better understanding of the system over time also reduces the maintenance cost of the system over time because appropriate changes reduce the deterioration of the software.

Refactoring Current documentation isn’t working – as a document is passed from one person to another much of the context and value is lost, and as a result, the maintenance team’s understanding of the codebase constantly deteriorates. This is resulting in the calcification of your software system.

Refactoring

{required in a team environment}

Automated Acceptance Tests Collective Code Ownership

Automated Developer Tests

Automated Acceptance Tests

The practice of Refactoring code changes the structure (i.e., the design) of the code while maintaining its behavioe.

n Definitio

n Definitio

Costs are reduced because continuous refactoring keeps the design from degrading over time, ensuring that the code is easy to understand, maintain, and change.

You are on a development project with an onsite customer who is willing and able to participate more fully as part of the development team. Your team is also willing to make difficult changes to any existing code. You are willing to pay the price of a steep learning curve.

Automated Developer Tests

The remaining practices also help reduce the cost of software development. Because of the limited size of the refcard, we will only summarize them below.

Automated developer tests are a set of tests that are written and maintained by developers to reduce the cost of finding and fixing defects—thereby improving code quality—and to enable the change of the design as requirements are addressed incrementally.

Automated developer tests reduce the cost of software development by creating a safety-net of tests that catch bugs early and enabling the incremental change of design. Beware, however, that automated developer tests take time to build and require discipline.

You are on a development team that has decided to adopt iterations and simple design and will need to evolve your design as new requirements are taken into consideration. Or you are on a distributed team. The lack of both face-to-face communication and constant feedback is causing an increase in bugs and a slowdown in development.

DZone, Inc.

Automated acceptance tests are tests written at the beginning of the iteration that answer the question: “what will this requirement look like when it is done?”. This means that you start with failing tests at the beginning of each iteration and a requirement is only done when that test passes.

This practice builds a regression suite of tests in an incremental manner and catches errors, miscommunications, and ambiguities very early on. This, in turn, reduces the amount of work that is thrown away and therefore enables building less. The tests also catch bugs and act as a safety-net during change.

You are on a development team that is practicing automated developer tests. You are currently working on a requirement that is not well-supported by the current design. Or you may have just completed a task (with its tests of course) and want to change the design for a cleaner solution before checking in your code to the source repository.

n Definitio

Customer Part of Team

|

Backlog

A backlog is a prioritized list of requirements that enable a team to build less by making sure they always work on the most important items first and help the team understand the theory of the code when used as an evocative document that shows a larger picture of the system.

Iteration

An iteration is a time-box where the team builds what is on the backlog and is a potential release and therefore enables building less.

Done State

The done state is a definition agreed upon by the entire team of what constitutes the completion of a requirement. The closer the done state is to deployable software, the better it is because it forces the team to resolve all hidden issues early and thus reduces cost.

Cross-functional Team

The cross-functional team is one that has the necessary expertise among its members to take a requirement from its initial concept to a fully deployed and tested piece of software within one iteration. A requirement can be taken off of the backlog, elaborated and developed, tested, deployed.

www.dzone.com


4

Agile Adoption

tech facts at your fingertips

Self-organizing Team

Retrospective

The Retrospective is a meeting held at the end of a major cycle iteration or release - to gather and analyze data about that cycle and decide on future actions to improve the team’s environment and process. A retrospective is about evaluating the people, their interactions, and the tools they use.

Continuous Integration

Continuous integration reduces the total time it takes to build a software system by catching errors early and often. Errors caught early cost significantly less to fix when caught later. It leverages both automated acceptance tests and automated developer tests to give frequent feedback to the team and to pay a much smaller price for fixing a defect.

User Story

stepping-stone to reaching the state where both issues are addressed.

A self-organizing team is in charge of its own fate. Management gives the team goals to achieve and the team members are responsible for driving towards those goals and achieving them. A self-organizing team recognizes and responds to changes in their environment and in their knowledge as they learn. A self-organizing team is frequently a cross functional team as well.

This is supported anecdotally by increasing reports of failed Agile projects that do not deliver on promised results. They adopt many of the soft practices such as Iteration, but steer away from the technically difficult practices such as Automated Developer Tests, Refactoring, and Done State. They never reach the “well-oiled” state. So the lesson here is make sure that on your journey to adopt Agile practices that improve time to market (or any other business value for that matter), your team will need to become “well-oiled” to see significant, sustained improvement. And that means you should plan on adopting the difficult technical practices for sustainability.

A user story is an evocative document for requirements. A user story is a very high level description of the requirement to be built –it usually fits on a 3 x 5 index card – and is a “promise for a conversation” later between the person carrying out the Customer Part of Team practice and the implementers.

Know What You Don’t Know The Dreyfus Model of Skill Acquisition, is a useful way to look at how we learn skills – such as learning Agile practices necessary to reduce cost. It is not the only model of learning, but it is consistent, has been effective, and works well for our purposes. This model states that there are levels that one goes through as they learn a skill and that your level for different skills can and will be different. Depending on the level you are at, you have different needs and abilities. An understanding of this model is not crucial to learning a skill; after all, we’ve been learning long before this model existed. However, being aware of this model can help us and our team(s) learn effectively.

How to adopt Agile practices successfully

To successfully adopt Agile practices let’s start by answering the question “which ones first?” Once we have a general idea of how to choose the first practices there are other considerations.

Become “Well-Oiled” First One way to look at software development is to see it as problem solving for business. When considering a problem to solve there are two fundamental actions that must be taken:

So let’s take a closer look at the different skill levels in the Dreyfus Model:

• Solving the right problem. This is IT/Business alignment. • Solving the problem right. This is technical expertise.

Expert

Intuitively it would seem that we must focus on solving the right problem first because, no matter how well we execute our solution to the problem, if it is the wrong problem then our solution is worthless. This, unfortunately, is the wrong way to go. Research shows in Figure 3, that focusing on alignment first is actually more costly and less effective than doing nothing. It also shows that being “well-oiled”, that is focusing on technical ability first, is much more effective and a good

No longer needs rules; works intuitively.

Proficient

Sees big picture; can begin addressing problems for the organization , not just the team.

Competent

Has experience with real problems; no longer struggles with basic rules.

Advanced beginner Novice

Can start using advice in context . Needs step-by-step instructions .

Figure 5: The Dreyfus Model for skill acquisition. One starts as a novice and through ecperience and learning advances towards expertise. Highly Aligned

11%

7%

“Alignment Trap”

How can the Dreyfus Model help in an organization that is adopting agile methods? First, we must realize that this model is per skill, so we are not competent in everything. Secondly, if agile is new to us, which it probably is, then we are novices or advanced beginners; we need to search for rules and not break them until we have enough experience under our belts. Moreover, since everything really does depend on context, and we are not qualified to deal with context as novices and advanced beginners, we had better get access to some people who are experts or at least proficient to help guide us in choosing the right agile practices for our particular context. Finally, we’d better find it in ourselves to be humble and know what we don’t know to keep from derailing the possible benefits of this new method. And we need to be patient with ourselves and with our colleagues. Learning new skills will take time, and that is OK.

“IT-Enabled Growth”

+13

+35 -14

-6

Alignment 74%

8%

“Maintenance Zone”

“Well-Oiled IT” +11

+0 -15

-2

Less Aligned

Less Effective

% of Respondents (n=504)

Effectiveness

Highly Effective

Differences in Percentage compared to overall averages IT Spending

3-Year Sales Compound Annual Growth Rate

Choosing a Practice to Adopt

Note: Based on 504 responses from 452 companies Source: Bain Analysis

Choosing a practice comes down to finding the highest value practice that will fit into your context. Figure 1 will guide you

Figure 4: The Alignment Trap (from Avoiding the Alignment Trap in Information Technology, Shpilberg, D. et al, MIT Sloan Management Review, Fall 20078.)

DZone, Inc.

|

www.dzone.com


5

Agile Adoption

tech facts at your fingertips

in determining which practices are most effective in decreasing your time to market and will also give you an understanding of the dependencies. The other parts in this section, How to Adopt Agile Practices Successfully?, discuss other ideas that can help you refine your choices. Armed with this information: Set specific business goal

Business goal met

What Next? This Refcard is a quick introduction to Agile practices that can help you reduce the cost of building and maintaining your software and an introduction of how you to choose the practices for your organizational context. It is only a starting point. If you choose to embark on an Agile adoption initiative, your next step is to educate yourself and get as much help as you can afford. Books and user groups are a beginning. If you can, find an expert to join your team(s). Remember, if you are new to Agile, then you are a novice or advanced beginner and are not capable of making an informed decision about tailoring practices to your context.

Does this practice’s context match your environment?

Get next practice from top of list

Business goal still not satisfied

Evaluate progress towards business goal

Learn about practice and adopt

Figure 5: Steps for choosing and implementing practices.

References

x

Astels, David. 2003. Test-driven development: a practical guide. Upper Saddle River, NJ: Prentice Hall.

x x

Avery, Christopher, Teamwork is an Individual Skill, San Francisco: Berrett-Koehler Publishers, Inc., 2001 Bain, Scott L., 2008, Emergent Design, Boston, MA: Pearson Education

x

x

Beck, Kent. 2003. Test-driven development by example. Boston, MA: Pearson Education. Beck, K. and Andres, C., Extreme Programming Explained: Embrace Change (second edition), Boston: Addison-Wesley, 2005

x

x

x

x

x

x

x

x

x

x

x

x

x

Cockburn, A., Agile Software Development: The Cooperative Game (2nd Edition), Addison-Wesley Professional, 2006.

x

Cohn, M., Agile Estimating and Planning, Prentice Hall, 2005.

x

x

Crispin, L. and Gregory, J., Agile Testing: A Practical Guide for Testers and Agile Teams

x

Derby, E., and Larson, D., Agile Retrospectives: Making Good Teams Great, Raliegh: Pragmatic Bookshelf, 2006.

x x

Duvall, Paul, Matyas, Steve, and Glover, Andrew. (2006). Continuous Integration: Improving Software Quality and Reducing Risk. Boston: Addison-Wesley. Elssamadisy, A., Agile Adoption Patterns: A Roadmap to Organizational Success, Boston: Pearson Education, 2008

x

x

Feathers, Michael. 2005. Working effectively with legacy code. Upper Saddle River, NJ: Prentice Hall.

x

x

x

x

x

x

x

x

x

x

x

x

x

Jeffries, Ron. “Running Tested Features.” http://www.xprogramming.com/xpmag/jatRtsMetric.htm

x

Jeffries, Ron. 2004. Extreme programming adventures in C#. Redmond, WA: Microsoft Press.

x x

Kerth, N., Project Retropsectives: A Handbook for Team Reviews, NY: Dorset House Publishing Company, 2001.

x

Kerievsky, Joshua. “Don’t Just Break Software, Make Software.” http://www.industriallogic.com/papers/storytest.pdf Larman, C., Agile and Iterative Development: A Manager’s Guide, Boston: Addison-Wesley, 2004

x

x

Larman, C., and Vodde, B., Scaling Lean and Agile Development, Boston: Addison-Wesley, 2009

x

x

x

Massol, Vincent. 2004. Junit in action. Greenwich, CT: Manning Publications.

DZone, Inc.

|

x

www.dzone.com

x

x

x


6

Agile Adoption

tech facts at your fingertips

x

Meszaros, XUnit Test Patterns: Refactoring Test Code, Boston: Addison-Wesley, 2007

x x

Mugridge, R., and W. Cunningham. 2005. Fit for Developing Software: Framework for Integrated Tests. Upper Saddle River, NJ: Pearson Education.

x

Poppendieck, M., and Poppendieck, T., Implementing Lean Software Development, Addison-Wesley Professional, 2006.

x

Rainsberger, J.B. 2004. Junit recipes: Practical methods for programmer testing. Greenwich, CT: Manning Publications.

x x

Schwaber, K., and Beedle, M., Agile Software Development with Scrum, Upper Saddle River, New Jersey: Prentice Hall, 2001.

x

x

x x

Senge, P., The Fifth Discipline: The Art and Practice of The Learning Organization, NY: Currency 2006.

x

Surowiecki, J., The Wisdom of Crowds, NY: Anchor, 2005.

A BOUT G e m b a S y s t e m s

Gemba Systems is comprised of a group of seasoned practitioners

RECO M M ENDED BOO K

Agile Adoption Patterns will help you whether you’re planning your first agile project, trying to improve your next project, or evangelizing agility throughout your organization. This actionable advice is designed to work with any agile method, from XP and Scrum to Crystal Clear and Lean. The practical insights will make you more effective in any agile project role: as leader, developer, architect, or customer.

who are experts at Lean & Agile Development as well as crafting effective learning experiences. Whether the method is Scrum, Extreme Programming, Lean Development or others - Gemba Systems helps individuals and teams to learn and adopt better product development practices. Gemba Systems has taught better development techniques - including lean thinking, Scrum and Agile Methods - to thousands of developers in dozens of companies around the globe. To learn more visit http://us.gembasystems.com/

BUY NOW books.dzone.com/books/agile-adoption-patterns t to

ugh

Bro

you

by...

Professional Cheat Sheets You Can Trust

ns tter a P ign s e D

“Exactly what busy developers need: simple, short, and to the point.”

nald cDo nM o s a J By

ired Insp e by th GoF ller se Best

E: LUD IN C y TS bilit EN onsi NT esp R CO f in o d Cha man Com reter rp Inte tor ... ore Itera tor dm dia d an Me rver tho se Me Ob NS plate m TER e T PAT n

n

n

n

Get

Mo

ef re R

c

it ! V is arz

Download Now

Upcoming Titles

Most Popular

Refcardz.com

JavaFX JSF 2.0 Maven Drupal Java Performance Tuning

Spring Configuration jQuery Selectors Windows Powershell Dependency Injection with EJB 3 Netbeans IDE JavaEditor

q a re

uest

the e to renc refe listed in ick s cta qu s, a s N je rn e b IG tte vid s, le O pro n pa DES sab iagram . UT fcard F) desig of Reu le r s re ss d o ABO mp oke ents des cla ttern our (G exa Inv a m d P n clu uch of F rns: Ele worl in l g esig a ts s n D rn c D a e re AN This al 23 G Patt h patte and a obje enting t M n c , M in m esig nd stru Eac tion ple CO orig ma kD re. con rma om ir im boo Softwa nt teC d to info the cre Clie the d Use om age nd Con () ns: d fr ente on, us ma ct cute ple Ori tter Com ) s obje nati cou ( +exe low l Pa e e la a d is al p n cute ch larg ex . Th s su . atio can be +exe bject nship form Cre jects an o tio ey s, d to rate ob d as ed rela m t th e te s a ea as U th orith ts. . be tr bject b ispa ns: lg m to r d a c o r it e te y lly tt ge ive ing sys obje man low aditiona ece n ana l Pa al s. R n e m er ra e st tr d ue to twe ctu twe nt or req ndled in sa sed s be varia Stru s be tion. an . late e ha s: U or in ilitie voca psu at c to b llbacks cture e in ern times Enca quest nsib s th y. g th d ca stru re Patt respo riant nalit g ndlin ship ng an the ral pose ssin e nctio led at va d ct ha ueui tion Pur k fu roce b obje avio , an as q rela us p lity to e llbac be hand ed. the t b ca no c Beh nships m ed na ro ed to need d fro can y ne obje ynch nctio tio You ne s need sts is couple ut an is e as the fu that st rela with que it itho e th ar Reque y of re be de als hips litat pattern ssing w tation articul e ld s ci n or fa D ou p d en ce Use sh A hist e. latio ed to mman for pro implem ents its ting. pe: ker e m p o hen us vo re ti c co ec y m ty in W n s al p S el to The ex the ueue actu d imple wid clas Pro ject ed at ru ue is h are utilizing a job q of the b ue C s it ue O w que to eq ge ueue s. By ang als xy bq iven owled at is en rface th h . e g hm c e ro Jo D e rit P kn go ct th be nb tim e: inte S r le of al ed ca to have d obje of the er mp cop pile rato ut an Exa serv nes ss S at com exec e queue comm Deco Ob confi S Cla e th B d the n . Th for de nge king leto ithin invo hm w Faca cha Sing od tory n

n

n

DZone communities deliver over 6 million pages each month to

DZone, Inc. 2222 Sedwick Rd Suite 101 Durham, NC 27713 919.678.0300

ISBN-13: 978-1-934238-58-5 ISBN-10: 1-934238-58-9

50795

.com

n

one

more than 3.3 million software developers, architects and decision C

Fac ract Abst r pte Ada

S

Meth tory Fac C t eigh Flyw S ter rpre Inte

C

algo

State

B

y teg od Meth plate Tem or it is V B ral avio Beh ject Ob

rit

z w. d

makers. DZone offers something for everyone, including news, ww

re f c

a rd

n

James Ward, Adobe Systems

to

ve ’t ha ued oesn ntin ler d ler hand , co the hand and ility the uest with

e. req ndle tcom le a l ou ay ha an hand sm entia hen ject le to . pot .W ble le ob tern ethod bject be ab pta pat ultip ecific o should n M acce this if the m up the sp cts e. d e ents is an be a obje runtim ndled lem ks to se e passe de to p of se im t co b U ec es se ed at eing ha n A n e ch should ats until arent uag min b im t ng er Whe it nt p la pe no e det e ru ore or if s re uest som d th ption proces e no m req g in metho ce n A e e ar a ndlin e ex ack th ther n ha rown in ndle th ll st until ptio th e ca Exce ion is sm to ha up th tered or ral pt ni ed un le avio exce mecha n pass mp enco . Beh is a Exa he n to s st ha k. W ject ptio stac e exce e reque Ob call le th nd th hand s to ha ct obje

in Cha

n

n

es of R

sib pon

S

Brid

S

ge

e Build

B

r

to Itera

Stra

B

B

r

tutorials, cheatsheets, blogs, feature articles, source code and more. C

B

f in o ty Cha nsibili B o Resp d man m Co B te posi Com

Me

B

diato

Me

r

men

to

“DZone is a developer’s dream,” says PC Magazine. Y ILIT B

S

F

PO RES

NSIB

succ

ess

Refcardz Feedback Welcome refcardz@dzone.com $7.95

z.co

m

#8

Sponsorship Opportunities sales@dzone.com

9 781934 238585

or

O reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, Copyright © 2009 DZone, Inc. AllHArights IN >> C ace terf r photocopying, or otherwise, without prior written permission of the publisher. Reference: Soa Governance, Todd Biske, Packt Publishing October 2008 <<in andle ) H

Clie

nt

+h

le and

req

uest

(

teH

and

ler

2

Version 1.0


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.