CS 5150 Software Engineering Lecture 2 Software Processes

  • Slides: 37
Download presentation
CS 5150 Software Engineering Lecture 2 Software Processes CS 5150 1

CS 5150 Software Engineering Lecture 2 Software Processes CS 5150 1

Administration Project teams • Any announcement to class? • People who would like to

Administration Project teams • Any announcement to class? • People who would like to form teams? CS 5150 2

Administration Project teams When you have formed your team and reached agreement with your

Administration Project teams When you have formed your team and reached agreement with your client, please send a message to cs 5150 -l@lists. cornell. edu with the names of the team, the client's name, and the topic of the project. Letter "l" CS 5150 3

Project Suggestion: e. Commons Harvesting from Web sites for the Cornell academic repository John

Project Suggestion: e. Commons Harvesting from Web sites for the Cornell academic repository John Saylor, Cornell University Library CS 5150 4

Project Suggestion: i. Phone Applications from CIT Registrar's services using i. Phone Ron Di.

Project Suggestion: i. Phone Applications from CIT Registrar's services using i. Phone Ron Di. Napoli, Cornell Information Technologies CS 5150 5

Project Suggestion: Paperless World Eliminate paper from credit card transactions Keith Cowing, Johnson School,

Project Suggestion: Paperless World Eliminate paper from credit card transactions Keith Cowing, Johnson School, Cornell University CS 5150 6

Project Concept: Student Disability Services (SDS) Booking system for CULift service Michele D. Fish,

Project Concept: Student Disability Services (SDS) Booking system for CULift service Michele D. Fish, Student Disability Services Center for Learning & Teaching CS 5150 7

Project Suggestion: Online Surveys Online surveys for social science research Y. Connie Yuan, Assistant

Project Suggestion: Online Surveys Online surveys for social science research Y. Connie Yuan, Assistant Professor, Department of Communication CS 5150 8

Project Suggestion: Tickets for Military Non-profit organization to connect military members with people who

Project Suggestion: Tickets for Military Non-profit organization to connect military members with people who have tickets to sporting events that they cannot attend Michael Merrell, Johnson School, Cornell University CS 5150 9

Project Suggestion: Tracking system for HR A tracking and work flow system to handle

Project Suggestion: Tracking system for HR A tracking and work flow system to handle the process of recruiting Brian Martinson, Director of Human Resources, Faculty of Computer and Information Science CS 5150 10

Project Suggestion: Chinese Students Studying Overseas Robin W. Si, School of Hotel Administration, Cornell

Project Suggestion: Chinese Students Studying Overseas Robin W. Si, School of Hotel Administration, Cornell University Support for Chinese students who wish to study in the United States or other foreign countries CS 5150 11

Project Concept: Cornell Cooperative Extension Cornell Collaborative Web Publishing Project Raj Smith, Department of

Project Concept: Cornell Cooperative Extension Cornell Collaborative Web Publishing Project Raj Smith, Department of Natural Resources and Cooperative Extension CS 5150 12

A Classic Book Frederick P. Brooks, Jr. The Mythical Man Month. Addison-Wesley, 1972. CS

A Classic Book Frederick P. Brooks, Jr. The Mythical Man Month. Addison-Wesley, 1972. CS 5150 13

Software Process Fundamental Assumption: Good processes lead to good software Good processes reduce risk

Software Process Fundamental Assumption: Good processes lead to good software Good processes reduce risk Good processes enhance visibility CS 5150 14

Variety of Software Processes Software products are very varied. . . Therefore, there is

Variety of Software Processes Software products are very varied. . . Therefore, there is no standard process for all software engineering projects BUT successful software development projects all need to address similar issues. This creates a number of process steps that must be part of all software projects CS 5150 15

Basic Process Steps in all Software Development • Feasibility and planning • Requirements •

Basic Process Steps in all Software Development • Feasibility and planning • Requirements • System and program design • Implementation and testing • Acceptance testing and release • Operation and maintenance It is essential to distinguish among these process steps and to be clear which you are doing at any given moment. Do not confuse requirements and design CS 5150 16

Process Step: Feasibility and Planning A feasibility study precedes the decision to begin a

Process Step: Feasibility and Planning A feasibility study precedes the decision to begin a project. • What is the scope of the proposed project? • Is the project technically feasible? • What are the projected benefits? • What are the costs, timetable? A feasibility study leads to a decision: go or no-go. CS 5150 17

Process Step: Requirements define the function of the system from the client's viewpoint. The

Process Step: Requirements define the function of the system from the client's viewpoint. The requirements establish the system's functionality, constraints and goals by consultation with the client and users. They are then defined in a manner that is understandable by both the client and the development staff. CS 5150 18

Process Step: System and Program Design describes the system from the software developers' viewpoint

Process Step: System and Program Design describes the system from the software developers' viewpoint System design: Match the requirements to hardware or software systems. Establishes an overall system architecture Program design: Represent the software system functions in a form that can be transformed into one or more executable programs CS 5150 19

Process Step: Implementation and Testing Implementation (coding) The software design is realized as a

Process Step: Implementation and Testing Implementation (coding) The software design is realized as a set of programs or program units. (The software components may be written specifically, acquired from elsewhere, or modified. ) Testing Individual components are tested against specifications. The individual program units are integrated and tested against the design by the development staff as a complete system. CS 5150 20

Process Step: Acceptance Testing and Release Acceptance testing The complete system is tested against

Process Step: Acceptance Testing and Release Acceptance testing The complete system is tested against the requirements by the client. Delivery and release The complete system is delivered to the client and released into production. CS 5150 21

Process Step: Operation and Maintenance Operation: The system is put into practical use. Maintenance:

Process Step: Operation and Maintenance Operation: The system is put into practical use. Maintenance: Errors and problems are identified and fixed. Evolution: The system evolves over time as requirements change, to add new functions or adapt the technical environment. Phase out: The system is withdrawn from service. This is sometimes called the Software Life Cycle CS 5150 22

Sequence of Processes Every software project will include these basic processes, in some shape

Sequence of Processes Every software project will include these basic processes, in some shape or form, but: • They may be formal or informal • They may be carried out in various sequences Major alternatives • Iterative: Go quickly through all process steps to create a rough system, then repeat them to improve the system. Iterative refinement. • Sequential: As far as possible, complete each process step before beginning the next. Waterfall model. CS 5150 23

Iterative Processes: Requirements and Risk Mistakes in the requirements are the most expensive to

Iterative Processes: Requirements and Risk Mistakes in the requirements are the most expensive to correct. -> Integration of browser into operational system Requirements are hard to understand until there is an operational system • Especially with user interfaces Iterative software processes Create an outline system quickly, review it with clients, test it with users, improve the understanding of the requirements • Rapid prototypes • Throw away code CS 5150 24

Iterative Development: Iterative Refinement (Evolutionary Development) Concept: Initial implementation for client and user comment,

Iterative Development: Iterative Refinement (Evolutionary Development) Concept: Initial implementation for client and user comment, followed by refinement until system is complete. • Vaporware: user interface mock-up • Throw-away software components • Dummy modules • Rapid prototyping • Successive refinement Get something to evaluate as quickly as possible! CS 5150 25

Iterative Refinement Evaluation Implementation CS 5150 Requirements Design 26

Iterative Refinement Evaluation Implementation CS 5150 Requirements Design 26

Iterative Refinement Evaluation may be continuous Concurrent Activities Requirements Outline Description Design Implementation CS

Iterative Refinement Evaluation may be continuous Concurrent Activities Requirements Outline Description Design Implementation CS 5150 Initial Version Intermediate Versions Final Version 27

Sequential Development: The Waterfall Model Requirements Feasibility study Requirements Design System design Implementation Program

Sequential Development: The Waterfall Model Requirements Feasibility study Requirements Design System design Implementation Program design Implementation (coding) Testing Acceptance & release Operation & maintenance CS 5150 28

Discussion of the Waterfall Model Advantages: • • Process visibility Separation of tasks Quality

Discussion of the Waterfall Model Advantages: • • Process visibility Separation of tasks Quality control at each step Cost monitoring at each step Disadvantages: Each stage in the process reveals new understanding of the previous stages, that often requires the earlier stages to be revised. The Waterfall Model is not enough! CS 5150 29

Sequence of Processes A pure sequential model is impossible Examples: • A feasibility study

Sequence of Processes A pure sequential model is impossible Examples: • A feasibility study cannot create a proposed budget and schedule without a preliminary study of the requirements and a tentative design. • Detailed design or implementation usually reveals gaps in the requirements specification. The plan must allow for some form of iteration. CS 5150 30

Modified Waterfall Model Feasibility study Waterfall model with feedback Requirements System design This is

Modified Waterfall Model Feasibility study Waterfall model with feedback Requirements System design This is better Program design Implementation (coding) Testing Acceptance & release Operation & maintenance CS 5150 31

Mixed Processes: Phased Development Combine sequential and iterative elements A simple system with basic

Mixed Processes: Phased Development Combine sequential and iterative elements A simple system with basic functionality is brought quickly into production (Phase 1). Subsequent phases are based on experience gained from users of each previous phase. Advantages • Pay-back on investment begins soon. • Requirement are more clearly understood in developing subsequent phases CS 5150 32

Phased Development Online When software is released online it is possible to divide it

Phased Development Online When software is released online it is possible to divide it into very small phases that are developed and released in quick succession. Example: Amazon. com divides most software development into phases of about four weeks elapsed time. This approach is excellent for continual enhancement of a system within a well established architecture. It is not possible for shrink wrapped software, embedded systems, or similar environments. CS 5150 33

Example: Iterative Refinement + Waterfall Model: Problem: Add graphics package to a programming environment

Example: Iterative Refinement + Waterfall Model: Problem: Add graphics package to a programming environment Phase 1: Iterative refinement Extend current environment with a preprocessor and run-time support package. Test with users. Make several new versions until users are pleased with function. Throw the code away. Phase 2: Modified waterfall Use the results of Phase 1 as the basis for a detailed set of requirements. Write new compiler and run-time system incorporating graphics elements. Make minor adjustments to requirements as needed. CS 5150 34

Observations about Software Processes Completed projects should have the basic process steps but. .

Observations about Software Processes Completed projects should have the basic process steps but. . . the development process is always partly evolutionary. Risk is lowered by: • Prototyping key components • Dividing into phases • Following a visible software process • Making use of reusable components Conclusion It is not possible to complete each step and throw it over the wall. CS 5150 35

CS 501 Project Presentations: Iterative Option Evaluation Requirements first presentation second presentation third presentation

CS 501 Project Presentations: Iterative Option Evaluation Requirements first presentation second presentation third presentation Implementation CS 5150 Design 36

CS 501 Project Presentations: Sequential Option 1. Requirements Feasibility study Requirements 2. Design System

CS 501 Project Presentations: Sequential Option 1. Requirements Feasibility study Requirements 2. Design System design Program design 3. Implementation (coding) If you follow a sequential process the three presentations should be as shown. CS 5150 Testing Acceptance & release Operation & maintenance 37