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



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

Software Engineering

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

Software Development Life Cycle (SDLC)

CSE 435 Software Engineering. Sept 16, 2015

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

Unit 1 Learning Objectives

Extreme Programming, an agile software development process

SOFTWARE PROCESS MODELS

Extreme Programming, an agile software development process

PROCESS OF MOVING FROM WATERFALL TO AGILE PROJECT MANAGEMENT MODEL

How To Understand The Limitations Of An Agile Software Development

CS4507 Advanced Software Engineering

Agile methods. Objectives

Quality Assurance Software Development Processes

TRADITIONAL VS MODERN SOFTWARE ENGINEERING MODELS: A REVIEW

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

6. Software Lifecycle Models. A software lifecycle model is a standardised format for planning organising, and running a new development project.

A Capability Maturity Model (CMM)

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

Rapid Software Development

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

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

CHAPTER_3 SOFTWARE ENGINEERING (PROCESS MODELS)

Software Development Process Models and their Impacts on Requirements Engineering Organizational Requirements Engineering

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

Software Engineering. Software Processes. Based on Software Engineering, 7 th Edition by Ian Sommerville

Introduction to Agile Software Development

Software Development Process

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

Introduction to Software Engineering (ESE : Einführung in SE)

Agile processes. Extreme Programming, an agile software development process

Unit I. Introduction

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

CS 389 Software Engineering. Lecture 2 Chapter 2 Software Processes. Adapted from: Chap 1. Sommerville 9 th ed. Chap 1. Pressman 6 th ed.

Software Development Methodologies

How To Understand The Software Process

Selecting a Software Development Methodology based on. Organizational Characteristics. Adrienne Farrell

COMP 354 Introduction to Software Engineering

Agile Projects 7. Agile Project Management 21

Agile Software Development Methodologies and Its Quality Assurance

Software Life Cycles and Configuration Management

Software Life Cycle. Main issues: Discussion of different life cycle models Maintenance or evolution

Classical Software Life Cycle Models

10/4/2013. Sharif University of Technology. Session # 3. Contents. Systems Analysis and Design

Principles of Software Engineering: Software Methodologies. COSI 120b, Spring 2005

Génie Logiciel Avancé Cours 6 Extreme Programming

Agile Software Development

To introduce software process models To describe three generic process models and when they may be used

2. Analysis, Design and Implementation

Development. Lecture 3

Introduction to extreme Programming (XP)

Web Application Development Process

IT3205: Fundamentals of Software Engineering (Compulsory)

Singhania University, Jhunjhunu, Rajasthan, India. 2 Department of Information Technology King Abdul Aziz University, Jeddah, Saudi Arabia

2. Analysis, Design and Implementation

Introduction to Software Engineering: Project Management ( Highlights )

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

1. Software Process Models (Sommerville Chapters 4, 17, 19, 12.4)

(Refer Slide Time: 01:52)

Applying Agile Methods in Rapidly Changing Environments

Lean vs. Agile similarities and differences Created by Stephen Barkar -

Agile Models. Software Engineering Marco Scotto Software Engineering

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

Agile Development Overview

Software Engineering. What is a system?

A Comparison between Five Models of Software Engineering

Software Process. Process: A sequence of activities, subject to constraints on resources, that produce an intended output of some kind.

Agile Software Development. Mohsen Afsharchi

INTERNATIONAL JOURNAL OF ADVANCES IN COMPUTING AND INFORMATION TECHNOLOGY An International online open access peer reviewed journal

ABHINAV NATIONAL MONTHLY REFEREED JOURNAL OF RESEARCH IN SCIENCE & TECHNOLOGY

Extreme Programming: Strengths and Weaknesses

The traditional project management uses conventional methods in software project management process.

Agile-Fall Process Flow Model A Right Candidate for Implementation in Software Development and Testing Processes for Software Organizations

Peter Mileff PhD SOFTWARE ENGINEERING. The Basics of Software Engineering. University of Miskolc Department of Information Technology

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

Software Development with Agile Methods

Umbrella: A New Component-Based Software Development Model

AGILE METHODOLOGY IN SOFTWARE DEVELOPMENT

Agile and Secure: Can We Be Both?

Agile Methodologies and Its Processes

Agile So)ware Development

Agile with XP and Scrum

Managing TM1 Projects

History of Agile Methods

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

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

Software Development Life Cycle

11.1 What is Project Management? Object-Oriented Software Engineering Practical Software Development using UML and Java. What is Project Management?

Large Scale Systems Design G52LSS

Transcription:

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

Roadmap Process, Method, Methodology?? What is a software process? Software Process Models Documentation Methodologies: RUP Focus on Extreme Programming 2

Process, method, methodology??

Process, method, methodology Process or method refers to the particular tasks carried out and how they are organised over the project life cycle Methodology refers to the general framework and principles used to organise the tasks Some authors use method to mean methodology Some authors use process for both 4

Methodology comprises an approach to software engineering a series of techniques and notations that support the approach a lifecycle model to structure the development process a unifying set of procedures and philosophy. 5

Software Process???

Software Process Process = Set of activities that lead to a software product lots of processes exist share some fundamental activities Product = What is delivered to the customer: Requirements specification, system, all documentation, manuals etc. 7

Software Process Activities Requirements collection Analysis Design Implementation Testing Maintenance Establish customer s needs Model and specify the requirements ( what ) Model and specify a solution ( how ) Construct a solution in software Validate the solution against the requirements Repair defects and adapt the solution to new requirements 8

Software Process Models Five of them

Software Process Models Abstract representation of a software process Waterfall model Prototyping Iterative and incremental development Boehm s spiral model Agile Development 10

Waterfall Development System Engineering Engineering Requirements Analysis Analy sis Design The classical software lifecycle models the software development as a step-by-step waterfall between the various development activities. Construction Testing Code Installation Code Maintenance 11

Waterfall Model Sequential ordering of phases After each phase: reports are signed of by partners heavyweight process next phase cannot start without ending the previous one in practice: certain overlap between phases starts with a Software Requirements Document almost impossible to change 12

Advantages The waterfall model is popular for upper management, because visible: it is easy to control project progress. sequential planning. documentation produced after each phase, 13

Disadvantages The waterfall model is unrealistic for large projects, because: Complete: a customer cannot state all requirements explicitly. Idealistic: in real projects iteration occurs (but tools and organization obstruct). Time: A working version of the system is only available late in the project. Change: it is very difficult and costly to adapt to changes in the requirements. 14

Waterfall process with backflow System Engineering Requirements Analy sis The cost of this form of iteration increases as the Design Design project progresses Construction making it impractical Testing Code and not effective. Code Installation Maintenance 15

Challenges Writing good and clear requirements is hard And... they change all the time! initial set was not complete business changes during project technology changes during project gain understanding during later phases... Evolutionary Development takes this into account 16

Note: Delivery versus Process Delivery = giving the product to the customer Can be: either when it is completely finished or incrementally: delivered in several pieces The process itself can be sequential or iterative sequential: every phase once, following another one iterative: possibly several loops of phases 17

Prototyping Initial analysis Define objectives Specify Prototyping is the process of creating an incomplete model of the future software program which can be used to test, explore or validate a hypothesis. Prototyping completed Evaluate Construct 18

Throwaway Prototyping A throwaway prototype is intended to validate requirements or explore design choices. quickly finally discarded Examples UI prototype - validate user requirements rapid prototype - validate functional requirements experimental prototype - validated technical feasibility 19

Evolutionary Prototyping An evolutionary prototype is intended to evolve in steps into a finished product. grow, don t build [Broo87a]: grow the system redesigning and refactoring along the way 20

Advantages Early demonstrations of system functionality help identify any misunderstandings between developer and client identified Client requirements that have been missed are Difficulties in the interface can be identified The feasibility and usefulness of the system can be tested, even though, by its very nature, the prototype is incomplete. 21

Disadvantages The client may perceive the prototype as part of the final system The focus on a limited prototype can distract developers from properly analyzing the complete project. Prototyping requires significant user involvement Excessive development time of the prototype 22

Iterative Approaches Incremental Delivery Boehm s Spiral Model phases spiral outwards, within space some process is chosen to best address risk Agile Development delay requirements and design decisions until they make sense 23

Incremental Delivery Customers identify services for system classify according to importance define delivery increments (part of functionality) repeat increment: detailed requirements + development maybe specify requirements for next increments deliver to customer 24

Incremental Development Define, outline requirements Assign requirements to increments Design system architecture Develop system increment Validate increment Integrate increment Validate system System incomplete Final System 25

Advantages Customers get partial, functional pieces of the application Customers can use the early increments to refine requirements for following increments Less risk of overall failure Because highest priority services delivered first, they automatically receive more testing 26

Disadvantages It can be difficult to map requirements to increment of right size because increments should be relatively small each increment should deliver something of value to client What basic facilities that can be reused in different parts of the system are necessary? not known, since not all requirements are available 27

Spiral Model Initial requirements gathering and project planning Further planning based on user comments Planning Risk analysis Risk analysis based on initial requirements Risk analysis based on user reaction to plan Go, no-go decision Risk assessment User evaluation of increments User evaluation Software development Progress towards final system Develop first increment Develop next increment 28

Boehm s Spiral model Process is represented as a spiral rather than as a sequence of activities with backtracking. Each loop in the spiral represents one phase in the process Each loop is split into 4 sectors: planning: define objectives and risks risk analysis: analyze and reduce risks engineering: development and validation evaluation and planning: project is reviewed and next phase of the spiral is planned 29

Agile Development Manifesto for Agile Software Development We are uncovering better ways of developing software by doing 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. The Manifesto for Agile Software Development 30

Advantages Customer is involved Increments are of value to customer discrepancies are discovered early-on Problem of changes in requirements are tackled by the process 31

Disadvantages Customer needs to agree to participate actively difficult in practice: managers are used to sequential approaches needs to involve people Writing contracts is difficult customer pays for time, not requirements Quality of code can more easily degrade Less documentation (system changes quickly) 32

Agile approaches Became quite popular recently Examples extreme programming (2000) Scrum (2001) Crystal (2001) Feature Driven Development (2002)... We ll look at extreme programming 33

Documentation

int a( int i, char c ) { if( c== m ) if( i< 1000 ) return 0; else if( i< 10000 ) return 500; else return 1200; else return 1300; } Meaning?? Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission. 35

int tax( int anearning, char astatus ) { if( astatus == m ) if( anearning < 1000 ) return 0; // no tax for married, < $1000 else if( anearning < 10000 ) return 500; // married, $1000-$10000 else return 1200; // married, >=$10000 // If not married, apply single tax rate of $1300 regardless else return 1300; } Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission. Meaning?? 36

/** * This method implements requirement 4.3: * State tax effective 9/1/98-12/31/99 * @author Eric J. Braude * @version 2.3.4 (8/6/98) * @param anearning: earnings 9/1/98 thru 12/31/99 * @param astatus: m signifies married (anything * else designates unmarried) */ int tax( int anearning, char astatus ) { Adapted from Software Engineering: An Object-Oriented Perspective by Eric J. Braude (Wiley 2001), with permission. 37

Documentation standards Standards improve communication among engineers. To be effective, standards must be perceived by engineers as being helpful to them Let development team decide on standards to apply. + Motivation. - Groups with different standards in organization: makes processcomparison & improvement (CMM) more difficult. Standards should be simple and clear 38

Organisations International Institute of Electronic and Electrical Engineering (IEEE) American National Standards Institute (ANSI) International Standards Organization (ISO) Software Engineering Institute (SEI) Object Management Group (OMG) 39

IEEE Documentation Set Software verification and validation plan (SVVP) verification: are we building the thing right? validation: are we building the right thing? Software quality assurance plan (SQAP) how to achieve quality goals? how to store documents and code and how to compose? Software project management plan (SPMP) how to conduct the project (cf. project management) Software requirements specification (SRS) specifies requirements (cf. requirements engineering) Software Design Document (SDD) describes architecture and design details (cf. patterns) Software configuration management plan (SCMP) Software Test Document (STD) how to test the application? (cf. tests) 40

Documentation Management Documentation management completeness: e.g. IEEE set of documents consistency: single source documentation use hyperlinks (if possible) to refer several times to the same entity configuration: where are the parts of the project located and which ones fit together 41

Unified Process

The Unified Process A process model derived from the work on the UML and associated processes. The different RUP phases: Inception: determine scope and purpose of the project, Elaboration: requirements capture and determine structure of the system, Construction: build the software, Transition: deals with product installation and rollout. 43

1 2 3 4 5 6 7 8 44

Agile Development Manifesto for Agile Software Development We are uncovering better ways of developing software by doing 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. The Manifesto for Agile Software Development 45

Extreme Programming

Extreme Programming (XP) Point of XP: coping with change and uncertainty Based on number of practices: small, frequent releases of the system, full-time engagement of customer, pair programming, collective ownership of the code, sustainable development, regular system releases, test-first development, continuous integration, constant refactoring, simplest thing that can work. 47

Driving Metaphor Driving a car is not about pointing the car in one direction and holding to it; driving is about making lots of little course corrections. Do the simplest thing that could possibly work 48

Customer-Developer Relationships A well-known experience: The customer and the developer sit in a boat in the ocean and are afraid of each other Customer fears They won't get what they asked for They must surrender the control of their careers to techies who don't care They'll pay too much for too little They won't know what is going on (the plans they see will be fairy tales) Developer fears They won't be given clear definitions of what needs to be done They will be given responsibility without authority They will be told to do things that don't make sense They'll have to sacrifice quality for deadlines Result: a lot of energy goes into protective measures and politics instead of success 49

The Customer Bill of Rights You have the right to an overall plan To steer a project, you need to know what can be accomplished within time and budget You have the right to get the most possible value out of every programming week You have the right to see progress in a running system. You have the right to change your mind, to substitute functionality and to change priorities without exorbitant costs. You have the right to be informed about schedule changes, in time to choose how to reduce the scope to restore the original date. The most valuable things are worked on first. Only a running system can give exact information about project state Market and business requirements change. We have to allow change. XP works to be sure everyone knows just what is really happening. 50

The Developer Bill of Rights You have the right to know what is needed, with clear declarations of priority. Tight communication with the customer. Customer directs by value. You have the right to produce quality work all the time. Unit Tests and Refactoring help to keep the code clean You have the right to ask for and receive help from peers, managers, and customers No one can ever refuse help to a team member You have the right to make and update your own estimates. Programmers know best how long it is going to take them You have the right to accept your responsibilities instead having them assigned to you We work most effectively when we have accepted our responsibilities instead of having them thrust upon us 51

Separation of Roles Customer makes business decisions Developers make technical decisions Business Decisions Scope Dates of the releases Priority Technical Decisions Estimates Dates within an iteration Team velocity Warnings about technical risks The Customer owns what you get while the developers own what it costs. 52

Describing XP Values Practices Principles 53

Basic XP Values Communication communicate problems&solutions, teamwork Simplicity eliminate wasted complexity Feedback change creates the need for feedback Courage effective action in the face of fear Respect care about you, the team, and the project 54

Principles Humanity, Economics, Mutual Benefit, Self-Similarity, Improvement, Diversity, Reflection, Flow, Opportunity, Redundancy, Failure, Quality, Baby Steps, Accepted Responsibility Will not detail them -- they govern what the practices tend to accomplish So, on to the practices! 55

Primary Practices Sit Together Whole Team Informative Workspace Energized Work Pair Programming Slack Ten Minute Build Continuous Integration Test-First Programming Incremental Design Stories Weekly Cycle Quarterly Cycle 56

Stories plan using units of customer-visible functionality name estimate Save with compression 8 hrs Currently the compression options are in a dialog subsequent to the save dialog. Make them part of the save dialog itself index card short description 57

7 more User Stories Students can purchase monthly parking passes online. Parking passes can be paid via credit cards. Parking passes can be paid via PayPal. Professors can input student marks. have prerequisites. Students can obtain their current seminar schedule. Students can only enroll in seminars for which they Transcripts will be available online via a standard browser. 58

Another example 59

User Stories vs. Use Case Not the same artifact! 60

Sit Together Develop in an open space big enough for the team 61

Informative Workspace Workspace = about your work 15 seconds to convey how project is going shows important, active information drinks & snacks available, and clean done this week this release to be estimated future 62

Pair Programming Write all production programs with two people sitting at one machine make enough room, move keyboard and mouse Pair programmers: keep each other on task brainstorm refinements to the system clarify ideas take initiative when partner is stuck (less frustration) hold each other accountable to practices 63

Pair programming and privacy Sometimes you might need some privacy then go work alone come back with the idea (NOT the code) quickly reimplemented with two benefits the whole team, not you alone 64

Pair Programming Rotate pairs frequently every couple of hours, at natural breaks in development with a timer, every 60 minutes (or 30 minutes for difficult problems) 65

Pair Programming and Personal Space Not everybody likes to sit close! Observe personal hygiene and health Sexual feelings are not in best interest of the team even when mutual When uncomfortable pairing with somebody, talk about it with someone safe chances are that you are not the only one everybody needs to feel comfortable 66

Weekly Cycle Plan work one week at a time. Do this on a meeting at the begin of each week 1. Review progress. 2. Let customers pick a week s worth of stories to implement this week. 3. Break the stories into tasks. Team members sign up for tasks and estimate them. Start writing tests that will run when the stories are completed 67

Ten-Minute Build Automatically build the whole system and run all of the tests in ten minutes longer: will not be used (and errors result) shorter: not enough time to drink coffee Note: if it takes longer than 10 minutes: maybe only rebuild changed part or test changes But: introduces errors. Only do this when necessary Lowers stress: Did we make a mistake? Let s see. 68

Continuous Integration Team Programming = Divide, Conquer, Integrate Integrate and test changes after no more than a couple of hours integration typically takes long when done at the end, risks the whole project when integration problems are discovered the longer you wait, the more it costs and the more unpredictable it becomes 69

Using Continuous Integration Synchronous After a task is finished, you integrate and run the tests Immediate feedback for you and your partner Asynchronous After submitting changes, the build system notices something new, builds and tests the system, and gives feedback by mail, notification, etc. Feedback typically comes when a new task is started Pair programmers might have been switched already 70

Test-first Programming Write a failing automated test before changing code Addresses many problems: Scope creep: focus coding by what the code should do, not on the just in case code Coupling and cohesion: If it s hard to write a test, there is a design problem (not a testing problem) Trust: clean working code + automated tests Rhythm: gives focus on what to do next efficient rhythm: test, code, refactor, test,... 71

Incremental Design Invest in the design of the system every day. Strive to the design of the system an excellent fit for the needs of the system that day Completely opposite to lots of other practices Waterfall and similar approaches Can work with XP because of the other practices Automated tests, continuous integration,... Note: you need to invest in design! not just implement story after story after story... 72

Corollary Practices Real Customer Involvement Incremental Deployment Team Continuity Shrinking teams Single Code Base Daily Deployment Negotiated Scope Contract Pay-Per-Use Root-Cause Analysis Shared Code Code and Tests 73

Stages in XP Project Initiation User Stories Release Planning Release (each Release is typically 1-6 months) Iteration 1 (typically 1-3 weeks) Iteration 2 : Iteration n 74

User stories capture requirements replaces use cases made by the customer used to create time estimates for release planning User stories are used to create acceptance tests verify proper implementation of story 75

Design and XP XP says: Design is daily activity, and Use the simplest solution that works incremental design 76

When to design in XP Just enough to get feedback for next iteration deferred until decision can be used immediately Therefore deploy software sooner make decisions with certainty avoid living with bad decisions maintain pace of development 77

Summary Development phases can be structured according to software process models Two big groups: specification based vs. iterative Waterfall (specification based): useful for big projects in known/stable domains Iterative approaches can support changing requirements looked at extreme programming in detail 78

References Ian Sommerville. Software Engineering. Eighth Edition. 2007. ISBN: 9780321313799 Eric Braude. Software Engineering. An Object- Oriented Perspective. Wiley. 2001. ISBN: 0471322083 extreme Programming Explained: Embrace Change -- Second edition. Kent Beck. Addison-Wesley Pub Co; ISBN: 0-321-27865-8; Extreme Programming, précis et concis. Traduction de Michel Casabianca. O Reilly, 2005. 79