Life-Cycle Model. Software Life-Cycle Models. Software Development in Theory. Software Development in Practice



Similar documents
Slide 2.1. Slide 2.3. Slide 2.5

Object-Oriented and Classical Software Engineering

CHAPTER 02 SOFTWARE LIFE-CYCLE MODELS

SOFTWARE PROCESS MODELS

Object-Oriented and Classical Software Engineering

Software Engineering. An Introduction. Fakhar Lodhi

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

Development Methodologies

Introduction to Software Project Management. CITS3220 Software Requirements & Project Management

COMP 354 Introduction to Software Engineering

SE464/CS446/ECE452 Software Life-Cycle and Process Models. Instructor: Krzysztof Czarnecki

The Software Process. The Unified Process (Cont.) The Unified Process (Cont.)

CHAPTER 01 THE SCOPE OF SOFTWARE ENGINEERING

Software Development Life Cycle (SDLC)

Software Life-Cycle. Series of steps through which software product progresses. A life-cycle is selected during requirement Phase

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

A Capability Maturity Model (CMM)

ASSESSMENT OF SOFTWARE PROCESS MODELS

Software Development Life Cycle

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

Object-Oriented Software Engineering

Basic Trends of Modern Software Development

Process Models and Metrics

Software Life Cycle Processes

Agile and lean methods for managing application development process

Software Development Process

(Refer Slide Time: 01:52)

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

A Comparison between Five Models of Software Engineering

CSE 435 Software Engineering. Sept 16, 2015

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

TRADITIONAL VS MODERN SOFTWARE ENGINEERING MODELS: A REVIEW

An Assessment between Software Development Life Cycle Models of Software Engineering

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

Agile Software Development Methodologies and Its Quality Assurance

Agile and lean methods for managing application development process

Software Life Cycle. Management of what to do in what order

CHAPTER_3 SOFTWARE ENGINEERING (PROCESS MODELS)

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

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

Process Methodology. Wegmans Deli Kiosk. for. Version 1.0. Prepared by DELI-cious Developers. Rochester Institute of Technology

Advanced Software Engineering. Software Development Processes

Transitioning Your Software Process To Agile Jeffery Payne Chief Executive Officer Coveros, Inc.

Introduction to Agile and Scrum

Surveying and evaluating tools for managing processes for software intensive systems

Agile Scrum Workshop

What is a life cycle model?

Objectives. The software process. Basic software process Models. Waterfall model. Software Processes

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

Classical Software Life Cycle Models

Information Systems Development Process (Software Development Life Cycle)

SEEM4570 System Design and Implementation Lecture 10 Software Development Process

Chapter 9 Software Evolution

Non-Technical Issues in Software Development

Module 2. Software Life Cycle Model. Version 2 CSE IIT, Kharagpur

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

CPSC 491 Lecture Notes Fall 2013

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

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

10.1 Determining What the Client Needs. Determining What the Client Needs (contd) Determining What the Client Needs (contd)

Agile So)ware Development

Software Engineering. What is a system?

Rapid Development & Software Project Survival Guide Steve McConnell Dave Root (Developed with Mel Rosso-Llopart)

And the Models Are System/Software Development Life Cycle. Why Life Cycle Approach for Software?

Software Development Processes. Software Life-Cycle Models

Today: Software Development Models (cont)

Software Engineering. So(ware Evolu1on

Rapid Software Development

An Agile Project Management Model

Nova Software Quality Assurance Process

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

Agile Methodologies and Its Processes

A Comparison Between Five Models Of Software Engineering

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

Foundations for Systems Development

Software Development Processes. Software Life-Cycle Models. Process Models in Other Fields. CIS 422/522 Spring

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

Software Development Process Models

Software Engineering Introduction & Background. Complaints. General Problems. Department of Computer Science Kent State University

Agile Software Development

Extreme Programming, an agile software development process

Agile Development and Testing Practices highlighted by the case studies as being particularly valuable from a software quality perspective

Software Quality Assurance in Agile, XP, Waterfall and Spiral A Comparative Study

ITERATIVE DEVELOPMENT: KEY TECHNIQUE FOR MANAGING SOFTWARE DEVELOPMENTS. Dwayne Read Strategic Systems (WA) Pty Ltd

Software Development Process and Activities. CS 490MT/5555, Fall 2015, Yongjie Zheng

White Paper IT Methodology Overview & Context

Modellistica Medica. Maria Grazia Pia, INFN Genova. Scuola di Specializzazione in Fisica Sanitaria Genova Anno Accademico

CSC 492 The Practice of Software Engineering. Lecture 3 University of Mount Union Software Life Cycle Models

A Survey of Software Development Process Models in Software Engineering

CHAPTER 11 REQUIREMENTS

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

Introduction to Software Paradigms & Procedural Programming Paradigm

Unit I. Introduction

The Software Development Life Cycle (SDLC)

Mastering the Iteration: An Agile White Paper

Software Process for QA

ABHINAV NATIONAL MONTHLY REFEREED JOURNAL OF RESEARCH IN SCIENCE & TECHNOLOGY

Managing TM1 Projects

PROCESS OF MOVING FROM WATERFALL TO AGILE PROJECT MANAGEMENT MODEL

Transcription:

Life-Cycle Model Software Life-Cycle Models Xiaojun Qi It specifies the various phases/workflows of the software process, such as the requirements, analysis (specification), design, implementation, and postdelivery maintenance, and the order in which they are to be carried out. 1 2 Software Development in Theory Ideally, software is developed as described in Chapter 1 Linear Starting from scratch Software Development in Practice In the real world, software development is totally different and is more chaotic Software professionals make mistakes The client s requirements change while the software product is being developed A software product is a model of the real world, and the real world is continually changing. 3 4 1. Code-and-Fix Life-Cycle Model No design No specifications Code-and-Fix Life-Cycle Model The product is implemented without requirements or specifications, or any attempt at design. The developers simply throw code together and rework it as many times as necessary to satisfy the client. The easiest way to develop software The most expensive way for maintenance (i.e., maintenance nightmare) 5 It is used in small project and is totally unsatisfactory for products of any reasonable size. 6 1

2. Waterfall Life-Cycle Model The linear life cycle model with feedback loops The waterfall model cannot show the order of events 7 Waterfall Life-Cycle Model No phase is complete until the documentation for that phase has been completed and the products of that phase have been approved by the software quality assurance (SQA) group. If the products of an earlier phase have to be changed as a consequence of following a feedback loop, that earlier phase is deemed to be complete only when the documentation for the phase has been modified and the modifications have been checked by the SQA group. 8 Waterfall Life-Cycle Model Advantages: Documentation is provided at each phase All the products of each phase (including the documentation) are meticulously checked by SQA. Maintenance is easier Disadvantages: Specification documents are long, detailed, and boring to read. 9 Linear model Rapid 3. Rapid-Prototyping Life-Cycle Model 10 Rapid-Prototyping Life-Cycle Model A rapid prototype is a working model that is functionally equivalent to a subset of the product. The first step is to build a rapid prototype and let the client and future users interact and experiment with the rapid prototype. Strength: The development of the product is essentially linear, proceeding from the rapid prototype to the delivered product. The feedback loops of the waterfall model are less likely to be needed in the rapid prototyping model. It is built rapidly and modified rapidly to reflect the Rapid-Prototyping Life-Cycle Model Weakness: One the client s real needs have been determined, the rapid prototype implementation is discarded. The lessons learned from the rapid prototype implementation are retained and used in subsequent development phases. client s needs. Speed is of the essence. 11 12 2

4. Open-Source Life-Cycle Model Open-Source Life-Cycle Model The first informal phase One individual builds an initial version and makes it available via the Internet (e.g., SourceForge.net) If there is sufficient interest in the project, the initial version is widely downloaded; users become co-developers; and the product is extended Key point: Individuals generally work voluntarily on an open-source project in their spare time Postdelivery maintenance life-cycle model 13 14 Open-Source Life-Cycle Model The second Informal Phase Reporting and correcting defects Corrective maintenance Adding additional functionality Perfective maintenance Porting the program to a new environment Adaptive maintenance The second informal phase consists solely of postdelivery maintenance The word co-developers on the previous slide Open-Source Life-Cycle Model An initial working version is produced using the rapid-prototyping model, the code-and-fix model, and the open-source life-cycle model. The initial version of the rapid-prototyping model is then discarded. The initial versions of Code-and-fix model and open-source life-cycle model become the target product There are generally no specifications and no design. However, open-source software production has attracted some of the world s finest software experts. They can function should rather be co-maintainers 15 16 effectively without specifications or designs Open-Source Life-Cycle Model A point will be reached when the open-source product is no longer maintainable The open-source life-cycle model is restricted in its applicability It can be extremely successful for infrastructure projects, such as : Operating systems (Linux, OpenBSD, Mach, Darwin), Web browsers (Firefox, Netscape), Compilers (gcc), Web servers (Apache), and Database management systems (MySQL) There cannot be open-source development of a software product to be used in just one commercial organization The open-source life-cycle model is inapplicable unless the target product is viewed by a wide range of users as useful 17 Open-Source vs. Closed-Source Closed-source software is maintained and tested by employees Users can submit failure reports but never fault reports Open-source software is generally maintained by unpaid volunteers Users are strongly encouraged to submit defect reports, both failure reports and fault reports Core group: Small number of dedicated maintainers with the inclination, the time, and the necessary skills to submit fault reports ( fixes ); They take responsibility for managing the project; They have the authority to install fixes Peripheral group: Users who choose to submit defect reports from time to time 18 3

Open-Source vs. Closed-Source New versions of closed-source software are typically released roughly once a year After careful testing by the SQA group The core group releases a new version of an open-source product as soon as it is ready Perhaps a month or even a day after the previous version was released The core group performs minimal testing Extensive testing is performed by the members of the peripheral group in the course of utilizing the software Release early and often 19 Winburg Mini Case Study Episode 1: The first version is implemented Episode 2: A fault is found The product is too slow because of an implementation fault Changes to the implementation are begun Episode 3: The requirements change A faster algorithm is used Episode 4: A new design is adopted Development is complete Epilogue: A few years later, these problems recur 20 5. Evolution-Tree Life-Cycle Model The model for Winburg Mini Case Study 21 Evolution-Tree Life-Cycle Model The explicit order of events is shown At the end of each episode We have a baseline, a complete set of artifacts (a constitute component of a software product) Example: Baseline at the end of Episode 4: Requirements 4, Analysis 4, Design 4, Implementation 4 22 Teal Tractors Mini Case Study While the Teal Tractors software product is being constructed, the requirements change The company is expanding into Canada Changes needed include: Additional sales regions must be added The product must be able to handle Canadian taxes and other Canadian business aspects The product must be extended to handle two different currencies, USD and CAD These changes may be Great for the company; but Moving Target Problem Moving Target Problem: The requirements change while the software product is being developed. This change is inevitable Growing companies are always going to change If the individual calling for changes has sufficient clout, nothing can be done to prevent the changes being implemented. The software product can be adversely impacted Numerous changes can induce dependencies within the code. Any change made to a software product can potentially cause a regression fault. That is, a change to one part of the software induces a fault in an apparently unrelated part of the software If there are too many changes, the entire product may have to be redesigned and reimplemented There is no solution to the moving target problem!! Disastrous for the software product 23 24 4

6. Iterative and Incremental Life-Cycle Model: Iteration In the real life, we cannot speak about the analysis phase Instead, the operations of the analysis phase are spread out over the life cycle as a consequence of both the moving target problem and the need to correct the inevitable mistakes The basic software development process is iterative Each successive version is intended to be closer to its target than its predecessor 25 Iterative and Incremental Life-Cycle Model: Incrementation Miller s Law: At any one time, we can concentrate on only approximately seven chunks (units of information) To handle larger amounts of information, use stepwise refinement Concentrate on the aspects that are currently the most important Postpone aspects that are currently less critical Every aspect is eventually handled, but in the order of current importance This is an incremental process 26 Iterative-and-Incremental Model Iteration and incrementation are used in conjunction with one another 1) There is no single requirements phase/workflow or design phase/workflow 2) Instead, there are multiple instances of each phase/workflow. However, only one phase/workflow predominates at most times. 27 Workflows All five core workflows are performed over the entire life cycle However, at most times one workflow predominates Examples: At the beginning of the life cycle The requirements workflow predominates At the end of the life cycle The implementation and test workflows predominate Planning and documentation activities are performed throughout the life cycle 28 Iterative-and-Incremental Life-Cycle Model Iteration is performed during each incrementation Combine the Evolution-Tree and the Iterative-and-Incremental Models 29 30 5

Combine the Evolution-Tree and the Iterative-and-Incremental Models Each episode corresponds to an increment Not every increment includes every workflow Increment B was not completed Dashed lines denote maintenance Episodes 2, 3: Corrective maintenance Episode 4: Perfective maintenance 31 Risks and Other Aspects of Iteration and Incrementation We can consider the project as a whole as a set of mini projects (increments) Each mini project extends the Requirements artifacts, Analysis artifacts, Design artifacts, Implementation artifacts, Testing artifacts During each mini project, we Extend the artifacts (incrementation); Check the artifacts (test workflow); and If necessary, change the relevant artifacts (iteration) The final set of artifacts is the complete product 32 Risks and Other Aspects of Iteration and Incrementation Each iteration can be viewed as a small but complete waterfall life-cycle model During each iteration we select a portion of the software product Strength of the Iterative-and- Incremental Model There are multiple opportunities for checking that the software product is correct Every iteration incorporates the test workflow Faults can be detected and corrected early On that portion we perform the Classical requirements phase Classical analysis phase Classical design phase Classical implementation phase 33 The robustness of the architecture can be determined early in the life cycle Architecture the various component modules and how they fit together Robustness the property of being able to handle extensions and changes without falling apart 34 Strength of the Iterative-and- Incremental Model We can mitigate (resolve) risks early Risks are invariably involved in software development and maintenance We always have a working version of the software product Variation: Deliver partial versions to smooth the introduction of the new product in the client organization Managing Iteration and Incrementation The iterative-and-incremental life-cycle model is as regimented as the waterfall model since developing a software product using the iterative-andincremental model is equivalent to developing a series of smaller software products, all using the waterfall model. The project as a whole is broken up into a series of waterfall mini projects. During each mini-project, iteration is performed as needed. For each increment, the requirements, analysis, design, and implementation phases are repeatedly performed until it is clear that no further iteration is needed. That is: each increment is a waterfall mini project. The iterative-and-incremental life-cycle model is the waterfall model, applied successively There is empirical evidence that the lifecycle model works 35 36 6

7. Agile Processes: Extreme Programming Extreme programming is a somewhat controversial new approach to software development based on the iterative-andincremental model. The software development team determines the various features (stories) the client would like the product to support. Agile Processes: Extreme Programming Based on the features (stories) the client wants: The development team estimates the duration and cost of each feature The client selects the features for next build using cost-benefit analysis The proposed build is broken down into smaller pieces termed tasks The programmer draws up test cases for a task Test-driven development (TDD) 37 38 Agile Processes: Extreme Programming Pair Programming: The programmer works together with a partner on one screen to implement the task and ensure that all the test cases work correctly. Continuous integration of tasks since a number of pairs implement tasks in parallel The TDD test cases used for the task are retained and utilized in all further integration testing. 39 Unusual Features of Extreme Programming (XP) The computers of the XP team are put in the center of a large room lined with cubicles. A client representative works with the XP team at all times. Software professionals cannot work overtime for 2 successive weeks. There is no specialization. Instead, all members of the XP team work on analysis, design, code, and testing. There is no overall design step before the various builds are constructed. Instead, the design is modified while the product is being built. This procedure is termed refactoring. 40 Agile Processes Extreme programming is one of a number of new paradigms that are collectively referred to as agile processes. Agile processes are characterized by Less emphasis on analysis and design Earlier implementation (working software is considered more important than detailed documentation) Responsiveness to change in requirements Close collaboration with the client 41 Agile Processes A principle in the Manifesto is Deliver working software frequently Ideally every 2 or 3 weeks One way of achieving this is to use timeboxing Used for many years as a time-management technique A specific amount of time is set aside for a task Typically 3 weeks for each iteration The team members then do the best job they can during that time Agile processes demand fixed time, not fixed features 42 7

Agile Processes Another common feature of agile processes is stand-up meetings Short meetings held at a regular time each day Attendance is required Participants stand in a circle They do not sit around a table To ensure the meeting lasts no more than 15 minutes The aim of a stand-up meeting is To raise problems, not solve them Solutions are found at follow-up meetings, Agile Processes Stand-up meetings and timeboxing are both Successful management techniques Now utilized within the context of agile processes Both techniques are instances of two basic principles that underlie all agile methods: Communication; and Satisfying the client s needs as quickly as possible preferably held directly after the stand-up meeting 43 44 Evaluating Agile Processes Agile processes have had some successes with small-scale software development However, medium- and large-scale software development is very different The key decider: The impact of agile processes on postdelivery maintenance Refactoring is an essential component of agile processes Refactoring continues during maintenance Will refactoring increase the cost of Evaluating Agile Processes Agile processes are good when requirements are vague or changing It is too soon to evaluate agile processes There are not enough data yet Even if agile processes are proven to be disappointing Some features (such as pair programming) may be adopted as mainstream software engineering practices postdelivery maintenance? 45 46 8. Synchronize-and-Stabilize Life-Cycle Model Microsoft s life cycle model Requirements: Interview numerous potential clients for the package and extract a list of features of highest priority to the clients. Draw up specifications Divide the work into three or four builds. The 1 st build: Most critical features. The 2 nd build: The next most critical features. Each build is carried out by a number of small teams working in parallel. 47 Synchronize-and-Stabilize Life-Cycle Model Synchronize at the end of each day: Put the partially completed components together and test and debug the resulting product. Stabilize at the end of each build: Fix remaining faults and no further changes will be made to the specifications 48 8

Synchronize-and-Stabilize Life-Cycle Model Advantages: The repeated synchronization step ensures that the various components always work together. The regular execution of the partially constructed product makes the developers gain early insight into the operation of the product and modify the requirements if necessary during the course of a build. 9. Spiral Life-Cycle Model Simplified form Rapid prototyping model plus risk analysis preceding each phase If all risks cannot be mitigated, the project is immediately terminated 49 50 Full Spiral Life-Cycle Model Precede each phase by Alternatives Risk analysis Follow each phase by Evaluation Planning of the next phase Radial dimension: cumulative costs to date Angular dimension: progress through the spiral. 51 Spiral Life-Cycle Model Minimize risk via the use of prototypes and other means. Two types of risk: Analyzable Risk: Time and cost Un-analyzable Risk: Personnel turnover Difference between small-scale and large-scale software Evaluate the delivery promises of a hardware supplier 52 Spiral Life-Cycle Model Precede each phase by determining: Objective of the phase; Alternatives for achieving the objectives; Constraints imposed on those alternatives. Strategy is analyzed from the viewpoint of risk. Attempts are made to resolve every potential risk. Spiral Life-Cycle Mode Strengths The emphasis on alternatives and constraints supports the reuse of existing software and the incorporation of software quality as a specific objective. There is essentially no distinction between development and maintenance since maintenance is another cycle of the spiral. Follow each phase by: The results of the phase are evaluated. The next phase is planned. 53 Weaknesses For large-scale software only For internal (in-house) software only 54 9

Comparison of Life-Cycle Models Different life-cycle models have been presented Each with its own strengths and weaknesses Criteria for deciding on a model include: The organization Its management The skills of the employees The nature of the product Best suggestion Mix-and-match life-cycle model 55 56 10