Extreme Programming, an agile software development process



Similar documents
Extreme Programming, an agile software development process

Agile processes. Extreme Programming, an agile software development process. Extreme Programming. Risk: The Basic Problem

Agile processes. Extreme Programming, an agile software development process

Ingegneria del Software Corso di Laurea in Informatica per il Management. Agile software development

XP & Scrum. extreme Programming. XP Roles, cont!d. XP Roles. Functional Tests. project stays on course. about the stories

Introduction. Motivational Principles. An Introduction to extreme Programming. Jonathan I. Maletic, Ph.D.

Introduction to Agile Software Development. EECS 690 Agile Software Development

EXTREME PROGRAMMING AGILE METHOD USED IN PROJECT MANAGEMENT

Agile and Secure: Can We Be Both?

History of Agile Methods

Introduction to extreme Programming (XP)

Contents. 3 Agile Modelling Introduction Modelling Misconceptions 31

Development Techniques. CSE301 University of Sunderland Harry R. Erwin, PhD

Extreme Programming - A Model For Agile Software Development

Agile Development Overview

Continuous Integration: Improving Software Quality and Reducing Risk. Preetam Palwe Aftek Limited

Lecture 21 March 7, 2013

Agile QA s Revolutionary Impact on Project Management

CSE 435 Software Engineering. Sept 16, 2015

Agile Projects 7. Agile Project Management 21

An Introduction to Extreme Programming

Agile with XP and Scrum

Agile and Secure: OWASP AppSec Seattle Oct The OWASP Foundation

Génie Logiciel et Gestion de Projets. Software Processes Focus on Extreme Programming

Software Development Life Cycle Models - Process Models. Week 2, Session 1

Agile Development with C#

Introduction to Agile Software Development Process. Software Development Life Cycles

Distributed Agile Development. Bapiraju Nandury Product Development Manager Bangalore Development Centre

Java course - IAG0040. Unit testing & Agile Software Development

Agile Software Development. Mohsen Afsharchi

Extreme Programming. Sergey Konovalov and Stefan Misslinger. May 23, 2006

Agile and Secure Can We Be Both? Chicago OWASP. June 20 th, 2007

XP and TDD. Extreme Programming and Test Driven Development. Bertrand Meyer, Manuel Oriol Andreas Leitner. Chair of Software Engineering ETH Zurich

Software Engineering

Topics covered. Agile methods Plan-driven and agile development Extreme programming Agile project management Scaling agile methods

Agile Software Development

Corso di Laurea Magistrale in Informatica, Università di Padova Tecnologie open-source, Anno accademico 2010/2011. Development Processes 1 / 51

Software Development with Agile Methods

Agile So)ware Development

Deep Agile Blending Scrum and Extreme Programming. Jeff Sutherland Ron Jeffries

SOFTWARE PROCESS MODELS

AGILE BUSINESS INTELLIGENCE

Quality Assurance Software Development Processes

Agile Planet. A Travel Guide to the Agile Universe Fabian Schiller. This book is for sale at

Agile Software Development in the Large

Software Requirements and Specification

Software Development Life Cycle (SDLC)

What Does Large Mean? Copyright 2003 by N. Josuttis and J. Eckstein 3. Why is Large an Issue?

Agile and PRINCE2 And how they integrate. enterprise.bcs.org

Large Scale Systems Design G52LSS

Life Cycle Models. V. Paúl Pauca. CSC Fall Department of Computer Science Wake Forest University. Object Oriented Software Engineering

RUP and XP, Part I: Finding Common Ground

Rapid software development. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 17 Slide 1

Agile Software Development

Using Simulation to teach project management skills. Dr. Alain April, ÉTS Montréal

Digital Transformation of the Enterprise for SMAC: Can Scrum help?

How to manage agile development? Rose Pruyne Jack Reed

A Capability Maturity Model (CMM)

Agile Software Project Management Methodologies

Agile Project Management By Mark C. Layton

Xtreme RUP. Ne t BJECTIVES. Lightening Up the Rational Unified Process. 2/9/2001 Copyright 2001 Net Objectives 1. Agenda

CMMI - The AGILE Way By Hitesh Sanghavi

In the IEEE Standard Glossary of Software Engineering Terminology the Software Life Cycle is:

Exception Handling. development.

Génie Logiciel et Gestion de Projets. Software Processes Focus on Extreme Programming

Introduction to Agile Software Development

Agile and ITIL And how they integrate. enterprise.bcs.org

Integrating Requirements Engineering into Software Engineering Processes

Agile Beyond The Team 1

D25-2. Agile and Scrum Introduction

Waterfall to Agile. DFI Case Study By Nick Van, PMP

Software Development Methodologies

Advanced Software Engineering. Software Development Processes

Agile and Enterprise Architecture

How To Understand The Limitations Of An Agile Software Development

Agile Testing and Extreme Programming

Agile Software Development with Scrum. Jeff Sutherland Gabrielle Benefield

AGILE SOFTWARE DEVELOPMENT

The Role of Agile Methodology in Project Management

Basic Trends of Modern Software Development

UC Santa Barbara. CS189A - Capstone. Christopher Kruegel Department of Computer Science UC Santa Barbara

Agile Software Development Methodologies and Its Quality Assurance

Lean Configuration Management

Agile for Project and Programme Managers

How To Model In An Agile World

Agile Methodologies XP and Scrum

Agile project management: A magic bullet?

Software Engineering and Scientific Computing

AGILE vs. WATERFALL METHODOLOGIES

Agile Methodologies and Its Processes

New Developments in an Agile World: Drafting Software Development Agreements. By: Paul H. Arne 1,2

Development Methodologies. Types of Methodologies. Example Methodologies. Dr. James A. Bednar. Dr. David Robertson

INF5120 Modellbasert Systemutvikling

Role of Agile Methodology in Software Development

Mapping The Best Practices of XP and Project Management: Well defined approach for Project Manager


Génie Logiciel Avancé Cours 6 Extreme Programming

Creating a High Maturity Agile Implementation

Agile Models. Software Engineering Marco Scotto Software Engineering

A Viable Systems Engineering Approach. Presented by: Dick Carlson

Transcription:

Extreme Programming, an agile software development process Paul Jackson School of Informatics University of Edinburgh

Recall: Waterfall and Spiral Models Waterfall: Spiral: Split project into controlled iteration: each iteration is a mini-waterfall. Spiral in towards the solution. 2 / 27

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 That is, while there is value in the items on the right, we value the items on the left more. 3 / 27

Agile flowchart 4 / 27

12 principles of Agile Customer satisfaction by rapid delivery of useful software Welcome changing requirements, even late in development Working software is delivered frequently (weeks rather than months) Working software is the principal measure of progress Sustainable development, able to maintain a constant pace Close, daily co-operation between business people and developers Face-to-face conversation is the best form of communication (co-location) Projects are built around motivated individuals, who should be trusted to get job done, given right support Continuous attention to technical excellence and good design Simplicity the art of maximizing the amount of work not done is essential Best requirements and designs from self-organizing teams Regular reflection on process and tuning of behaviour 5 / 27

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, Beck Extreme Programming Explained: Embrace Change 6 / 27

Example risks and the XP responses schedule slips: Short iterations give frequent feedback; features prioritised project cancelled after many slips: Customer chooses smallest release with biggest value system goes sour after release: Frequent rerunning of tests maximises quality defect rate too high at release: Tests written with both unit-level and customer perspectives business misunderstood: Customer representative embedded in development team false feature rich: Only highest priority tasks addressed staff turnover: Programmers estimate task times; new programmers nurtured 7 / 27

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 Keeping cost down is partly luck (i.e. being in the kind of project where that s possible) partly judgement (e.g., following those of XP s practices, like refactoring, which help to reduce cost). 8 / 27

XP classification of software development activities coding testing listening designing Illuminating exercise: map these onto standard activities and contemplate implications of differences. 9 / 27

Recall: Unified Process Activites 6 Engineering activities: Business modelling Requirements Analysis and design Implementation Test Deployment 3 Supporting activities: Configuration and change management Project management Environment (e.g. process and tools) 10 / 27

XP Practices The Planning Game Small releases Metaphor Simple design Testing Refactoring Pair programming Collective ownership Continuous integration 40-hour week On-site customer Coding standards 11 / 27

The Planning Game Release planning game customer and developers. 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. Game captures, e.g., that you can t make a total release in less than the sum of the times it s going to take to do all the bits: that s against the rules. 12 / 27

On-site customer A customer someone capable of making the business s decisions in the planning game sits with the development team (maybe doing their normal work when not needed to interact with the development team), always ready to clarify, write functional tests, make small-scale priority and scope decisions. 13 / 27

Small releases Release as frequently as is possible whilst still adding some business value in each release. This ensures that you get feedback as soon as possible and lets the customer have the most essential functionality asap. (May be talking about every week to every month outside XP each 6 months would be more usual even in an iterative project, longer not uncommon.) 14 / 27

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 communicated. 15 / 27

Continuous integration Code is integrated and tested at most a few hours or one day after being written. E.g. when a pair wants to checkpoint they go to an integration machine, integrate and fix any bugs against the latest full build, add their changes to the central CM database. 16 / 27

Simple design Motto: do the simplest thing that could possibly work. Don t design for tomorrow: you might not need it. 17 / 27

Testing Any program feature without an automated test simply doesn t exist. Test everything that could break. Programmers write unit tests using a good automated testing framework (e.g. JUnit) to minimise the effort of writing running and checking tests. Customers, with developer help, write functional tests. 18 / 27

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. i.e. do refactorings that you know are beneficial (NB you have to know about the duplication and have permission to fix it... ownership in common) 19 / 27

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: Is this whole approach going to work? What are some other test cases that might not work yet? Is there some way to simplify the whole system so the current problem just disappears? 20 / 27

Collective ownership i.e. you don t have your modules which no-one else is allowed to touch. If any pair sees a way to improve the design of the whole system they don t need anyone else s permission to go ahead and make all the necessary changes. Of course a good configuration management tool is vital. 21 / 27

Coding standards The whole team adheres to a single set of conventions about how code is written (in order to make pair programming and collective ownership work). 22 / 27

Sustainable pace aka 40 hour week, but this means not 60, rather than not 35! People need to be fresh, creative, careful and confident to work effectively in the way XP prescribes. There might be a week coming up to deadlines when people had to work more than this, but there shouldn t be two consecutive such weeks. 23 / 27

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; if you do simple design but not refactoring, you ll get stuck! 24 / 27

Where is XP applicable? The scope of situations in which XP is appropriate is somewhat controversial. Two examples there are documentated cases where it has worked well for development in-house of custom software for a given organisation (e.g. Chrysler). 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 XP does need: team in one place, customer on site, etc. Agile is broader. Other Agile processes include Scrum and DSDM. 25 / 27

Relating different processes 26 / 27

Reading Suggested : Extreme Programming explained: Embrace change. Kent Beck. Suggested : Sommerville. Significantly more in 9th and 10th Eds (Ch 3). than 8th Ed. (17.1, 17.2). Good for balance. 27 / 27