Docsity

Agile Methodologies XP-Software Development Methodologies, Slides of Software Development Methodologies

Partial preview of the text

Download Agile Methodologies XP-Software Development Methodologies and more Slides Software Development Methodologies in PDF only on Docsity!

Software Development Methodologies Lecturer:

Raman Ramsin

Lecture 10 Agile Methodologies: XP

1

Sharif University of Technology

Software Development Methodologies – Lecture 10

eXtreme Programming (XP)eXtreme

Programming (XP)

Developed by Beck in 1996

Developed

by Beck in 1996.

The first authentic XP book appeared in 1999

with a

The first authentic XP book appeared in 1999, with arevised and refined version appearing in 2004.

A

lthough some of the methodologies that are nowadays dubbed as agile are older than XP, it was the advent ofXP that sparked the agile movementXP that sparked the agile movement.

XP considers itself a software engineering

discipline

XP considers itself a software engineering

discipline

rather than a

methodology, yet it does incorporate a

process.

2

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP: Process

4

Sharif University of Technology

[Abrahamsson et al. 2002]

Software Development Methodologies – Lecture 10 XP: Process – Development Engine

p

g

T

he activities performed in the second, third and fourth phases of the process constitute the development “engine” of the XPmethodology.methodology. „

Each execution (run) of these phases produces a new release. „

A first release of the system is initially produced and deployed,which

is

then

incrementally

improved

and

complemented

which

is

then

incrementally

improved

and

complemented

during the

maintenance phase through further iterations (runs)

of the development engine.

5

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP Process: Exploration

p

1. Formation of the development team: the team typically consists of

„

A

coach acting as monitor and facilitator, a number of

programmers, and a business

representative (

customer) participating in project activities and supplying the team

representative (

customer) participating in project activities and supplying the team

with information and feedback „

[Optional] A number of

analysts to help elicit the requirements, a number of

testers

helping define acceptance tests, and a

resource manager

2. Development of the initial set of User Stories: A

User Story

„

defines a system feature as seen from the customer’s point of view. „

is written by the customer in his own terminology on index cards.

y^

gy

„

Is nothing but a short description (around three sentences) of a certain chunk offunctionality needed to be delivered by the system.

3. Creation of the system Metaphor:

y

p

„

A prototype (called

Spike or

Spike Solution) is developed, exploring potential

architectures for the system. „

The prototype helps the team define the system

Metaphor, which is typically a very

simple

high-level description of how the system works

simple, high level description of how the system works. „

It usually takes the form of a description-by-analogy in order to be easilyunderstandable to all the team members. „

Though informal, the metaphor gives an extremely useful idea of the overall

hit

t^

f th

t^

ith

t^

tti

t^

t^

i t

7

Sharif University of Technology

architecture of the system without setting too many constraints.

Software Development Methodologies – Lecture 10 XP Process: Development Engine –

Top-Level Activities

p

g

p

8

Sharif University of Technology

[Wells 2003]

Software Development Methodologies – Lecture 10 XP Process: Iterations to First Release^ 1. Iteration planning: at the start of each iteration, a planning meeting is held,

performing:

  1. Selection of user stories to implement,

and failed acceptance tests to rectify

p^

,^

p^

y

  1. Identification of programming tasks3. Task sign-up and estimation
    1. Development: the development activity in each iteration is itself an iterative

process with daily cycles consisting of the following activities:

  1. Holding daily stand up meetings 2

l^

d^

d^

d^

C ll

C d

O

h

  1. Analysis, design, coding, testing and integration in a Collective-Code-Ownership

environment

10

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP Process: Development Engine –

Iteration

A

ctivities

p

g

11

Sharif University of Technology

[Wells 2003]

Software Development Methodologies – Lecture 10 XP Process: Iterations to First Release -

Development

p

  1. Holding daily stand up meetings:

A short stand up meeting is held every morning in order to communicate †

A short stand up meeting is held every morning in order to communicateproblems and solutions, and help the team keep on track.

  1. Analysis, design, coding, testing and integration in a Collective-Code-

Ownership environment:Ownership environment:

Collective Code Ownership means that all the code developed is put in a sharedcode repository, and any developer can change his or others’ code in order toadd functionality, fix bugs, or refactor.

y,

g ,

test-driven development to make collective code ownership possible:

„

the developers have to create unit tests for their code as they develop it. „

All the code in the code repository includes unit tests, forming a suite of tests that isautomatically applied by test tools whenever code is added or changedautomatically applied by test tools whenever code is added or changed. „

The test suite safeguards the repository from malignant change: for code to beallowed integration into the repository, it must pass the entire test suite. „

Black-box acceptance tests based on the user stories are defined by the customerand developed by the team during the iteration

and are frequently applied (by

and developed by the team during the iteration, and are frequently applied (byautomated tools) to the code.

13

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP Process: Development Engine – Iteration

Development

Activities

14

Sharif University of Technology

[Wells 2003]

Software Development Methodologies – Lecture 10 XP Process: Development Engine – Iteration

Development

Activities

Activities in the Collective-Code-Ownership Environment

16

Sharif University of Technology

[Wells 2003]

Software Development Methodologies – Lecture 10 XP Process: Productionizing

g

System-wide verification and validation: The release is tested to make sure ofthe user’s approval and the system’s readiness for deployment.

„^

Acceptance tests

mostly developed during the iterations-to-first-release phase

„^

Acceptance tests, mostly developed during the iterations to first release phase,are used here as regression tests. „^

Defects found are resolved through iterations of the main development cycle.

Deployment into the production environment: the release is introduced intothe user environment.

„^

Involves the usual integration

conversion

tuning

training

and documentation

„^

Involves the usual integration, conversion, tuning, training, and documentationactivities typical of deployment efforts. „^

Any tuning and stabilization action on the release itself is regarded as adevelopment activity and is conducted through short iterations (typically weekly)of the development cycleof the development cycle.

17

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP Process: Death^ „

T

he project is declared dead when evolution is either unnecessary or impossible. „

The main activities performed in this phase of the XP process are:

Declaring the project as closed: this involves wrapping up the usual legal,fi

i l

d^

i l l

d

financial and social loose ends.

Post-mortem documentation and review: preparing a short document (no longerthan ten pages) providing a brief tour of the system, and writing a review

i i

h^

l^

l^

d f

h^

j

report summarizing the lessons learned from the project.

19

Sharif University of Technology

Software Development Methodologies – Lecture 10 XP: Strengths and Weaknesses^ „

Strengths ^

Iterative-incremental process

Based on system functionality captured in

User Stories

Based on system functionality captured in

User Stories

The process is tuned according to feedback during itsexecutionexecution

Traceability to requirements through the use of

user stories

throughout the process as the basis for tasks and tests

Based on system architecture (

Metaphor) identified through

prototypingA ti

i^

l^

t

A

ctive user involvement

Test-based development

20

Sharif University of Technology