extreme programming talk wise consulting -
DESCRIPTION
TRANSCRIPT
![Page 1: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/1.jpg)
Introduction to Introduction to eXtreme ProgrammingeXtreme Programming
www.talkwiseconsulting.com
![Page 2: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/2.jpg)
ContentsContents
� The problem
◦ Problems in software development
� eXtreme Programming (XP)
◦ Values◦ Values
◦ Practices
◦ Why XP works
◦ Benefits of XP
� Conclusions
� Resources
![Page 3: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/3.jpg)
Problems in Problems in software developmentsoftware development
Risks:
� Schedule slips
� Business misunderstood� Business misunderstood
� Defect rate
� Project cancelled
� System goes sour
� Business changes
![Page 4: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/4.jpg)
Schedule slipsSchedule slips
� Many projects are not delivered on time◦ Examples: Word 1.0, Netscape 6
� Some deadlines cannot be moved◦ Example: Y2K
�What if:
most business value is delivered on time
![Page 5: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/5.jpg)
Business misunderstoodBusiness misunderstood
�Without direct communication, developers have to guess what the customer wants.
◦ Example: The Orthodontics Project◦ Example: The Orthodontics Project
�What if:
an on-site customer steers development
![Page 6: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/6.jpg)
Defect rateDefect rate
� The software is put in production, but the defect rate is so high that it isn’t used.
�What if: you have automated testing�What if: you have automated testing
![Page 7: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/7.jpg)
Project cancelledProject cancelled
Size of project Early On-Time Delayed Cancelled Sum
1 function point 14.68% 83.16% 1.92% 0.25% 100.00%
10 function points 11.08% 81.25% 5.67% 2.00% 100.00%
100 function points 6.06% 74.77% 11.83% 7.33% 100.00%
1,000 function points 1.24% 60.76% 17.67% 20.33% 100.00%
10,000 function points 0.14% 28.00% 23.83% 48.00% 100.00%
100,000 function points 0.00% 13.67% 21.33% 65.00% 100.00%
Average 5.53% 56.94% 13.71% 23.82% 100.00%
Table 1: Percentage of projects early, on-time, late, canceled(from Patterns of Software Systems Failure and Success, by Capers Jones)
![Page 8: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/8.jpg)
Project cancelledProject cancelled
�What if:
short releases deliver at least some useful working software, reflecting investment to working software, reflecting investment to date
![Page 9: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/9.jpg)
System goes sourSystem goes sour
� Software is put into production successfully, but after a couple of years the cost of making changes or the defect rate rises so much that the system must be replaced.the system must be replaced.
�What if:
the design is simple and the code quality is high
![Page 10: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/10.jpg)
Business changesBusiness changes
� New laws, market changes: business priorities change
�What if:
the customer can change their mind, substitute functionality, and change priorities
![Page 11: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/11.jpg)
Economics of Economics of software developmentsoftware development
cost of change
Requirements Analysis Design Implementation Testing Production
![Page 12: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/12.jpg)
What if…What if…
cost of change
Time
![Page 13: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/13.jpg)
eXtreme ProgrammingeXtreme Programming
� A system of practices that a community of software developers is evolving to address the problems of quickly delivering quality software, and then evolving it to quality software, and then evolving it to meet changing business needs.
![Page 14: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/14.jpg)
eXtreme…eXtreme…
Taking proven practices to the extreme
� If testing is good, let everybody test all the time
� If code reviews are good, review all the time
If design is good, refactor all the time� If design is good, refactor all the time
� If integration testing is good, integrate all the time
� If simplicity is good, do the simplest thing that could possibly work
� If short iterations are good, make them really, really short
![Page 15: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/15.jpg)
XP valuesXP values
� Communication
� Simplicity � Simplicity
� Feedback
� Courage
![Page 16: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/16.jpg)
XP practicesXP practices
� The Planning Game*
� Small Releases
� Metaphor
� Collective Ownership
� Continuous Integration
� 40-Hour Week� Metaphor
� Simple Design*
� Testing*
� Refactoring*
� Pair Programming*
� 40-Hour Week
� On-Site Customer
� Coding Standards
� Open workspace
� Daily Schema migration
![Page 17: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/17.jpg)
The Planning GameThe Planning Game
� Business writes a story describing desired functionality
� Stories are written on index cards� Development estimates stories� Development estimates stories� Velocity determines number of stories per iteration
� Business splits and prioritizes stories and determines the composition of releases
� Velocity is measured and adjusted every iteration� Customer steers development
![Page 18: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/18.jpg)
TestingTesting
� Unit Tests and Functional Tests
� Test a little, code a little…
◦ “Test-first programming”
� Tests become the specification� Tests become the specification
� Tests give confidence in the system
� Tests give courage to change the system
![Page 19: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/19.jpg)
Unit testsUnit tests
![Page 20: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/20.jpg)
Pair ProgrammingPair Programming
� Two people looking at one machine, with one keyboard and one mousemouse
� Two roles: implementation and strategy
� All production code is written in pairs
![Page 21: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/21.jpg)
Pair Programming BenefitsPair Programming Benefits
� 15% less output than 2 solo programmers
� Continuous code review: better design, fewer defects
� Confidence to add to or change the system� Confidence to add to or change the system
� Discipline to always test and refactor
� Teach each other how the system works (reduced staffing risks)
� Learn from partner’s knowledge and experience (enhances technical skills)
![Page 22: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/22.jpg)
Simple designSimple design
Do the simplest thing that could possibly work
� Passes all the tests
� No duplicate code
� States every intention
� Fewest possible classes and methods
![Page 23: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/23.jpg)
RefactoringRefactoring
� Design becomes everybody’s daily business
� Continuously improve quality of the code
� Unit Tests and Pair Programming give courage
Result:
� Fast development speed
� Code becomes easy to change
![Page 24: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/24.jpg)
Why XP worksWhy XP works
� Light-weight: discipline without bureaucracy
� Under stress, people do what is easiest
◦ All XP practices have short-term benefits as well ◦ All XP practices have short-term benefits as well as long-term benefits
� Development as a Conversation
� The code is the documentation
� XP is fun
![Page 25: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/25.jpg)
Who benefits from XP?Who benefits from XP?
� get clear requirements & priorities
can do a good job
� get most business value first
get accurate feedback
Programmers: Customers:
� can do a good job
� can make technical decisions
� don’t work overtime
� get accurate feedback
� can make informed business decisions
� can change their mind
![Page 26: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/26.jpg)
ConclusionsConclusions
� Use XP on projects◦ with vague or changing requirements
◦ with small teams
� XP works, and is very fast
XP is fun to execute� XP is fun to execute
� At Azzurri, we use XP as much as possible with clients, and exclusively for internal projects
![Page 27: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/27.jpg)
XP books and papersXP books and papers
� Extreme Programming Explained – Kent Beck� Refactoring – Martin Fowler� Planning Extreme Programming – Kent Beck et al� Extreme Programming Installed – Ron Jeffries et al� Extreme Programming Examined – Giancarlo Succi et al� Extreme Programming Examined – Giancarlo Succi et al� Extreme Programming in Practice – Robert C. Martin et al� Extreme Programming Explored –William C. Wake� Extreme Programming Applied – Ken Auer et al� The Costs and Benefits of Pair Programming – Alistair Cockburn et al
![Page 28: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/28.jpg)
Web resourcesWeb resources
� www.junit.org
� www.xprogramming.com
� www.extremeprogramming.org
� www.refactoring.com� www.refactoring.com
� www.pairprogramming.com
![Page 29: Extreme programming talk wise consulting -](https://reader034.vdocument.in/reader034/viewer/2022051816/54538648af795919308b52b0/html5/thumbnails/29.jpg)
Thank youThank youThank youThank you