Docsity

Extreme Programming: Twelve Key Practices and Use Cases in Software Development, Study notes of Environmental Science

Partial preview of the text

Download Extreme Programming: Twelve Key Practices and Use Cases in Software Development and more Study notes Environmental Science in PDF only on Docsity!

Software Tools & Methods

Class 8

Lecturer: Greg Bolcer, [email protected]

Summer Session 2009 ELH 110 9am-11:50am

Overview

•^ Last Class

–^ Scrum Review –^ Testing

•^ This Class

–^ eXtreme Programming review –^ Use cases

•^ Next Class

–^ Final

Week 7, Slide 4

Extreme Programming (XP)

-^ Kent Beck invented XP by the seat of his pants in 1996to fix a disastrous project at Chrysler •^ “Extreme Programming Explained: Embrace Change”by Beck published in 1999 -^ Version 2.0 published in 2004 –^ Tries to associate with a software process with extremesports -^ Idea: Take a good programming practice and push it tothe extreme. -^ Example: testing –^ Since testing is good, do it all the time, even before wehave code.

Week 7, Slide 5

Current Reasons for Popularity

•^ Effectiveness •^ Results •^ Compatibility with web applications •^ Cool factor

Week 7, Slide 7

Twelve Key Practices of XP

ProgrammerPractices

Simple Design Test-driven developmentRefactoringPair programmingCollective code ownershipContinuous integration Coding standards

ManagementPractices

Planning Game Small releases40-hour week

Customer Practices

On-site customer Metaphor

XP Metaphor

•^ Metaphor is the architecture of the systemdescribed in a way that facilitates communication •^ Practice of Agile most ignored by practioners,though communication is cited as key value

-^ Giving examples, cleaner way to describe –^ Check against metaphor after first design –^ Check against metaphor after completed system –^ Drawings and words that capture aspects of thesystem –^ Create unique language and meaning that is used as alabel

Planning Game

•^ Planning and project management are trickyto get right, burdensome, and can be the mostemotionally charged part of developingsoftware •^ The Planning Game creates some distancebetween planning and participants by treatingit like a game

Planning Game

•^ Like most games, has Goal, playing pieces,players rules •^ Pieces: A User Story, each story written on anindex card •^ Goal: to put the greatest possible value ofstories into production over the life of theproject •^ Players: business and development

Planning Game Moves

-^ Overcommitment Recovery:

Development provides new estimates,

e.g. 100 units of value vs 150, business repicks stories to implement(or defers deadline) • Change Value:

Business changes the value of a story, development

changes order of stories in current commitment • Introduce New Story:

Business writes new story, development

assigns costs, re-evaluates Value and Risk • Split Story:

Business splits a story into two or more because

resources do not allow it to be done all at once • Spike:

Business writes a story to divert resources to do a throwaway spike to fight a fire, reduce risk, or prove a concept • Re-Estimate:

Development is asked at any given point in time to re-

estimate the remaining stories

Planning Game Workflow

Week 7, Slide 16

Rational Unified Process

RUP is a software development process that is:

–^ Use case-driven –^ Architecture-centric –^ Iterative and incremental

Week 7, Slide 17

Use Case Driven

•^ Use cases

are the primary artifact for

establishing the behavior of the system,verifying and validating the system’sarchitecture, testing, and communicating withstakeholders. • Start with use cases. • Talk to users to find out what the system issupposed to do.

Week 7, Slide 19

Use Cases

•^ Use case diagrams are just visualrepresentations of use cases •^ Use cases are text

–^ This is the important stuff

•^ Larman, p. 64

–^ Use cases are text documents, not diagrams, anduse-case modeling is primarily an act of writingtext, no drawing diagrams.

Week 7, Slide 20

Use Cases

•^ Simple

–^ Written in natural language –^ Different stakeholders can participate

•^ Emphasize user goals and perspective

–^ Helps keep the big picture in focus