CS223: Software Engineering Lecture 18: The XP. Recap Introduction to Agile Methodology Customer centric approach Issues of Agile methodology Where to.

Slides:



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

Rapid software development
1 Software Engineering Muhammad Fahad Khan Software Engineering Muhammad Fahad Khan University Of Engineering.
Alternate Software Development Methodologies
Agile Development.
Chapter 3 – Agile Software Development Chapter 3 Agile Software Development130/10/2014.
Chapter 3 – Agile Software Development
1 Software Testing and Quality Assurance Lecture 34 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 17 Slide 1 Chapter 17: Rapid software development November 3, 2008.
Chapter 3 – Agile Software Development Lecture 1 1Chapter 3 Agile software development.
Agile Software Development
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 17 Slide 1 Extreme Programming.
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development Lecture 2 1Chapter 3 Agile software development.
Chapter 3 – Agile Software Development 1Chapter 3 Agile software development.
Chapter 3 – Agile Software Development Lecture 1 1Chapter 3 Agile software development That's been one of my mantras - focus and simplicity. Simple can.
Chapter 3 – Agile Software Development Lecture 1 1Chapter 3 Agile software development.
Chapter 3 Agile Software Development (2/2) Yonsei University 2 nd Semester, 2013 Sanghyun Park.
Software Engineering Lecture 5 – Agile Software Development
Figures – Chapter 3. Figure 3.1 The principles of agile methods PrincipleDescription Customer involvementCustomers should be closely involved throughout.
Agile Software Development Chapter 3 – Lecture 1 Adrián Susinos.
Extreme Programming(XP)
Chapter 3 – Agile Software Development Pepper modification of Sommerville presentation & Colm O’hEocha – AgileInnovation Ltd presentation 1Chapter 3 Agile.
Extreme/Agile Programming Prabhaker Mateti. ACK These slides are collected from many authors along with a few of mine. Many thanks to all these authors.
 Chapter 3 – Agile Software Development Chapter 3 Agile software development1.
Chapter 3 – Agile Software Development Lecture 2 1Chapter 3 Agile software development.
Rapid software development 1. Topics covered Agile methods Extreme programming Rapid application development Software prototyping 2.
Chapter 3 Agile Software Development (1/2) Yonsei University 2 nd Semester, 2015 Sanghyun Park.
LECTURE 1 Chapter 3 – Agile Software Development Sumber dari : cse.stfx.ca/~mlin/cs485/lectures/agile.pp.
Chapter 2 Software processes. Topics covered Software process models Process activities Coping with change.
Chapter 3 – Agile Software Development
Traditional Process Models A quick overview. 2 Waterfall Model (Diagram) Communication Project initiation Requirements gathering Planning Estimating Scheduling.
Lecture 4 – XP and Agile 17/9/15. Plan-driven and agile development Plan-driven development A plan-driven approach to software engineering is based around.
Requirements Engineering Requirements Engineering in Agile Methods Lecture-28.
Chapter 3 – Agile Software Development Chapter 3 Agile Software Development130/10/2014.
Chapter 3 – Agile Software Development 1Chapter 3 Agile software development Ian Sommerville, Software Engineering, 9 th Edition Pearson Education, Addison-Wesley.
Agile Methods Presentation By: Jason Abbett. Definition A process to rapidly develop software Many kinds of agile methods but few are practiced.
Extreme Programming. Extreme Programming (XP) Formulated in 1999 by Kent Beck, Ward Cunningham and Ron Jeffries Agile software development methodology.
Chapter 3 – Agile Software Development Lecture 1 1Chapter 3 Agile software development.
1Chapter 3 Agile software development Chapter 3 – Agile Software Development Lecture 1.
Chapter 3 – Agile Software Development Lecture 1 1Chapter 3 Agile software development.
CS223: Software Engineering Lecture 16: The Agile Methodology.
Agile Software Development 1Chapter 3 Agile software development.
Part  Agile project management - Scrum  Agile methods and large projects 3.
Agile Software Development 1. Topics covered Agile methods Plan-driven and agile development Extreme programming 2.
Chapter 3 – Agile Software Development 1Chapter 3 Agile software development.
Chapter 3 – Agile Software Development Part 1a 1.
Chapter 3 Agile software development 1 Chapter 3 – Agile Software Development.
Software engineering (cs3529) target classes: cs14: A,B
Agile Software Development Chapter 3
CS223: Software Engineering
Chapter 3 Agile Software Development
CompSci 280 S Introduction to Software Development
CS390: Software Engineering
Lecture 3 Agile Software
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Rapid software development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Chapter 3 – Agile Software Development
Extreme Programming.
Presentation transcript:

CS223: Software Engineering Lecture 18: The XP

Recap Introduction to Agile Methodology Customer centric approach Issues of Agile methodology Where to apply Agile Where not to apply Agile

Objective After completing this lecture students will be able to Explain the features of Extreme Programming (XP) Describe the phases of XP Identify projects where XP can be used Implement XP in their projects

Key points Agile methods are incremental development methods that focus on o Rapid development, o Frequent releases of the software, o Reducing process overheads and o Producing high-quality code. They involve the customer directly in the development process. Choice of an approach depend on the o Type of software being developed, o Capabilities of the development team and o Culture of the company developing the system. XP is a well-known agile method that integrates a range of good programming practices

Extreme programming Perhaps the best-known and most widely used agile method Extreme Programming (XP) takes an ‘extreme’ approach to iterative development. o New versions may be built several times per day; o Increments are delivered to customers every 2 weeks; o All tests must be run for every build and the build is only accepted if tests run successfully.

XP and agile principles Incremental development is supported through small, frequent system releases. Customer involvement means full-time customer engagement with the team. People not process through pair programming, collective ownership and a process that avoids long working hours. Change supported through regular system releases. Maintaining simplicity through constant refactoring of code.

The XP release cycle

Extreme programming practices (a) Principle or practiceDescription Incremental planningRequirements are recorded on story cards and the stories to be included in a release are determined by the time available and their relative priority. Small releasesThe minimal useful set of functionality that provides business value is developed first. Simple designEnough design is carried out to meet the current requirements and no more. Test-first development An automated unit test framework is used to write tests for a new piece of functionality before that functionality itself is implemented. RefactoringAll developers are expected to refactor the code continuously as soon as possible code improvements are found. This keeps the code simple and maintainable.

Extreme programming practices (b) Pair programmingDevelopers work in pairs, checking each other’s work and providing the support to always do a good job. Collective ownership The pairs of developers work on all areas of the system, so that no islands of expertise develop. Continuous integration As soon as the work on a task is complete, it is integrated into the whole system. Sustainable paceLarge amounts of overtime are not considered acceptable. On-site customerA representative of the end-user of the system (the customer) should be available full time for the use of the XP team

Examples of task cards for prescribing medication

Refactoring Programming team look for possible software improvements Make these improvements even where there is no immediate need for them. This improves the understandability of the software Changes are easier to make because the code is well-structured and clear. However, some changes requires architecture refactoring o This is much more expensive.

Examples of refactoring Re-organization of a class hierarchy to remove duplicate code. Tidying up and renaming attributes and methods to make them easier to understand. The replacement of inline code with calls to methods that have been included in a program library.

Testing in XP Testing is central to XP XP has developed an approach where o The program is tested after every change has been made. XP testing features: o Test-first development. o Incremental test development from scenarios. o User involvement in test development and validation. o Automated test harnesses are used to run all component tests each time that a new release is built.

Test-first development Writing tests before code clarifies the requirements to be implemented. Tests are written as programs rather than data so that they can be executed automatically. The test includes a check that it has executed correctly. o Usually relies on a testing framework such as Junit. All previous and new tests are run automatically when new functionality is added o Checking that the new functionality has not introduced errors.

Customer involvement The role of the customer in the testing process is to o Help develop acceptance tests for the stories that are to be implemented in the next release of the system. The customer who is part of the team writes tests as development proceeds. All new code is validated to ensure that it is what the customer needs. However, people adopting the customer role have limited time available and so cannot work full-time with the development team.

Test case description example

XP testing difficulties Programmers prefer programming to testing and sometimes they take short cuts when writing tests. o E.g. they may write incomplete tests that do not check for all possible exceptions that may occur. Some tests can be very difficult to write incrementally. o E.g., in a complex user interface, it is often difficult to write unit tests for the code that implements the ‘display logic’ and workflow between screens. It difficult to judge the completeness of a set of tests. Test set may not provide complete coverage.

Pair programming In XP, programmers work in pairs. This helps develop common ownership of code and spreads knowledge across the team. It serves as an informal review process as each line of code is looked at by more than 1 person. It encourages refactoring as the whole team can benefit from this. Development productivity with pair programming is similar to that of two people working independently.

Agile project management The principal responsibility is to manage the project so that o The software is delivered on time and o Within the planned budget for the project. The standard approach to project management is plan-driven. o Managers draw up a plan for the project showing  what should be delivered,  when it should be delivered and  who will work on the development of the project deliverables. Agile project management requires a different approach o adapted to incremental development and the particular strengths of agile methods.

Thank you Next Lecture: Modularization