• No results found

Extreme Programming, an agile software development process

N/A
N/A
Protected

Academic year: 2021

Share "Extreme Programming, an agile software development process"

Copied!
26
0
0

Loading.... (view fulltext now)

Full text

(1)

Extreme Programming, an agile software

development process

Nigel Goddard

(2)

Recall: Waterfall and Spiral Models

Waterfall:

(3)

Agile processes

What the spiral models were reaching towards was that software development has to be agile: able to react quickly to change. The Agile Manifesto http://agilemanifesto.org:

We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value:

Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan

(4)
(5)

12 principles of Agile

I Customer satisfaction by rapid delivery of useful software

I Welcome changing requirements, even late in development

I Working software is delivered frequently (weeks rather than months)

I Working software is the principal measure of progress

I Sustainable development, able to maintain a constant pace

I Close, daily co-operation between business people and developers

I Face-to-face conversation is the best form of communication (co-location)

I Projects are built around motivated individuals, who should be trusted

I Continuous attention to technical excellence and good design

I Simplicity- The art of maximizing the amount of work not done - is essential

I Self-organizing teams

(6)

Extreme Programming

One variant: Extreme Programming (XP) is

“a humanistic discipline of software development, based on values of communication, simplicity, feedback and courage”

People: Kent Beck,Ward Cunningham, Ron Jeffries, Martin Fowler, Erich Gamma...

More info: www.extremeprogramming.org,

(7)

Risk: The Basic Problem

I schedule slips

I project cancelled

I system goes sour

I defect rate rises

I business misunderstood

I false feature rich

I staff turnover

(8)

Key insight of XP

Traditional methodologies are that way because

the cost of coping with a requirements change or correcting a defect rises exponentially through the development lifecycle Need: flexibility without cost

(9)

XP classification of software development activities

I coding

I testing

I listening

I designing

(10)

Recall: Unified Process Activites

6 Engineering activities:

I Business modelling

I Requirements

I Analysis and design

I Implementation

I Test

I Deployment 3 Supporting activities:

I Configuration and change management

I Project management

(11)

XP Practices

(12)

The Planning Game

I Release planning game – customer and developers.

I Iteration planning game – just developers

Customer understands scope, priority, business needs for releases: sorts cards by priority.

Developers estimate risk and effort: sorts cards by risk, split cards if more than 2-4 weeks.

(13)

On-site customer

(14)

Small releases

(15)

Metaphor

Is basically XP’s word for part of what other people call

architecture – it avoids the word architecture to emphasise that it doesn’t just mean the overall structure of the system. “Metaphor” is intended to suggest an overarching coherence, easily

(16)

Continuous integration

(17)

Simple design

(18)

Testing

(19)

Refactoring

As we discussed before: but here refactoring is especially vital because of the way XP dives almost straight into coding. Later redesign is vital. A maxim for not getting buried in refactoring is “Three strikes and you refactor”: For example, consider removing code duplication.

1. The first time you need some piece of code you just write it.

2. The second time, you curse but probably duplicate it anyway.

3. The third time, you refactor and use the shared code.

(20)

Pair programming

All production code is written by two people at one machine. You pair with different people on the team and take each role at different times.

There are two roles in each pair. The one with the keyboard and the mouse, is coding. The other partner is thinking more strategically about:

I Is this whole approach going to work?

I What are some other test cases that might not work yet?

(21)

Collective ownership

(22)

Coding standards

(23)

Sustainable pace

(24)

Mix and match?

Can you use just some of the XP practices?

Maybe... but they are very interrelated, so it’s dangerous.

E.g., if you do collective ownership but not coding standards, the code will end up a mess;

(25)

Where is XP applicable?

The scope of situations in which XP is appropriate is somewhat controversial. Two examples

I there are documentated cases where it has worked well for development in-house of custom software for a given organisation (e.g. Chrysler).

I A decade ago it seemed clear that it wouldn’t work for Microsoft: big releases were an essential part of the business; even the frequency of updates they did used to annoy people. Now we have automated updates to OSs, and Microsoft is a Gold Sponsor of an Agile conference

(26)

References

Related documents

Challenges and Our Goal. Based on the obser- vations mentioned above, we aim to address the fol- lowing challenges in this paper: 1) Can we design a generic and practical

These strategies include (1) problematising tasks by inserting obstacles to the solution, limiting problem information or requiring students to use particular representations

We fitted a linear mixed model to Yield ( Y ) with four fixed effects: Trial location [ TL ], December mean tem- perature [ DecTm ], October mean temperature [ OctTm ] and the

Channel.When Channel Type is set to PDTCH and the cell does not support EDGE services, the default value is EGPRS Normal Channel.When Channel Type is set to PDTCH and the cell

Specifically, there is abundant opportunity to access increased net revenue via the deployment of technology designed to address four key managed care processes: payment

This research is about human resource planning in telecom sector, and find out different ways how can help to increase the organizational performance of

Primary Practices 1 Metaphor 2 Whole team 3 Informative workspace 4 Cycles 5 Release planning 6 Small releases 7 Testing 8 Pair programming 9 Refactoring.. 10 Simple, incremental

small releases, simple design, system metaphor, re-factoring, coding standards, pair programming, 40-hours work week, continuous integration, collective code ownership,