Beruflich Dokumente
Kultur Dokumente
Sofware Process
Software Process
Process is distinct from product products are outcomes of executing a process on a project. Proper processes will help to achieve project objectives of high Q Product.
Sofware Process
Software Process
Process: A particular method, generally involving a number of activities Software Process: A set of activities, along with ordering constraints on execution, to produce software with desired result. That is, the process that deals with the technical and management issues of software development is called a software process. Better to view software process as comprising of many component processes
Sofware Process 3
Development focuses on development and quality steps needed to engineer the software Project management focuses on planning and controlling the development process
Development process is the heart of software process; other processes revolve around it These are executed by different people
developers execute engg. process project manager executes the mgmt process
Sofware Process 4
Component Processes
Configuration management process: manages the evolution of artifacts Change management process: how changes are incorporated Process management process: management of processes themselves Inspection process: How inspections are conducted on artifacts
Sofware Process 5
Process Specification
Process is generally a set of phases(steps / activitities) Each phase performs a well defined task and generally produces an output Intermediate outputs work products
(SRS,SDD,Code, Prototype..etc)
Having too many steps, results in too many work products or documents. Due to this, At top level, a process typically consists of a few steps, each satisfying a clear objective and producing a document which can be verified. How to perform a particular phase /step is addressed by methodologies for that activity.
Sofware Process 6
ETVX Specification
Entry criteria: what conditions must be satisfied for initiating this phase Task: what is to be done in this phase Verification: the checks done on the outputs of this phase eXit criteria: when can this phase be considered done successfully
Sofware Process
Predictability Support testability and Maintainability Support change Early defect removal Process improvement and feedback
Sofware Process
Predictability
i.e. outcome of a project should be predictable using a process Without predictability, cannot estimate, or say anything about quality or productivity Past performance can be used to predict future performance
Sofware Process 10
Predictability
A process is under control if following the same process produces similar results-results will have some variation, but the variation is mostly due to random causes and not due to process issues.
Repeatedly using the process produces similar results To consistently develop sw with high Q&P, process must be in control
Sofware Process
11
Cost of B is similar to Cost of A (done 2 years back) Implies that process used to implement B is same as A That is it assumes that process is predictable.
Sofware Process
12
Goal of the process should not be to reduce the effort of design and coding, but to reduce the cost of testing and maintenance. Both testing and maintenance depend heavily on quality of design and code. Hence , during the early phases of development process the prime issues should be Can it be easily tested ? Can it be easily modified?
Sofware Process
13
Contd..
Support testability as testing is the most expensive task; testing can consume 30 to 50% of total development effort Support maintainability as maintenance can be more expensive some times than development; over life up to 80% of total cost
Sofware Process
14
example
Requirement ----10% Design -----------10% Coding------------30% Testing-----------50% (depends on organization)
Sofware Process
15
Support Change
Software changes for various reasons Requirements change is a key reason Requirement changes cannot be wished away or treated as bad They must be accommodated in the process for sw development
Sofware Process
16
Remove defects early, as cost of removing defects increases with latency I.e. fixing a requirement defect in operation can cost a 100 times the cost of fixing it in requirements itself Hence, for high Q&P, the process must support early defect removal That is why there is a Verification in ETVX, and quality control tasks in the sw process
Sofware Process 17
Sofware Process
18
Process is not a static entity. To satisfy the objectives of quality improvement and cost reduction, the software process must be improved. Software process is considered as closed loop process. That is, the process must be improved based on previous experiences, and each project done using the existing process must feed information back to facilitate this improvement.
Sofware Process
19
Contd..
Process mgmt process involves in process improvement by : - Taking feedback from other processes and improve it. - Taking feedback from early parts of projects and improve the rest of the project.
Sofware Process 20
Summary
Process method for doing something Process typically has stages, each stage focusing on an identifiable task Stages have methodologies Software process consists of methods for developing software Best to view it as comprising of multiple processes
Sofware Process 21
Summary
Goal is to produce software with high quality and productivity Development process is central process Mgmt process is for controlling development. Other processes support development. Sw process should have high Q&P, predictability, and support for change
Sofware Process 22
Sofware Process
23
Process Models
A model provides generic structure of the process that can be followed by some projects to achieve their goals
Sofware Process
24
Process model
If a project chooses a model, it will generally tailor it to suit the project Many models have been proposed for the development process
Sofware Process
25
2. 3. 4.
Waterfall the oldest and widely used Prototyping Iterative currently used widely Timeboxing
Sofware Process
26
Waterfall Model
Phases are organized in Linear sequence of stages/phases A phase starts only when the previous has completed; no feedback The phases partition the project, each addressing a separate concern
Sofware Process
27
Sofware Process
28
Waterfall
Linear ordering implies each phase should have some output The output must be verified and validated Outputs of earlier phases: work products Planning usually overlaps with the requirements analysis. It has to be prepared before the other phase begins. Common outputs of a waterfall: SRS, project plan, design docs, test plan and reports, final code, software manuals
Sofware Process 29
Waterfall Advantages
Conceptually simple Cleanly divides the problem into distinct phases that can be performed independently Natural approach for problem solving Easy to monitor as each phase is completed & work product is produced.
Sofware Process 30
Waterfall disadvantages
Assumes that requirements can be specified and frozen before design begins- this is possible for systems designed to automate an existing
manual system. But for designing new systems, determining the requirements is difficult in early stage.
Follows the big bang approach all or nothing delivery; too risky as the user doesnot know until the very end what they are getting It has all or nothing value proposition Very document oriented, requiring docs at the end of each phase May choose outdated hardware technology as requirements need to be freezed earlier User feedback not allowed Cycle time is too long
Sofware Process
31
Waterfall Usage
Has been used widely Well suited for well understood problems, short duration project, automation of existing manual systems
Sofware Process
32
Prototyping
Prototyping addresses the requirement specification limitation of waterfall Instead of freezing requirements only by discussions before design and coding phase, a prototype is built to understand the requirements Helps alleviate the requirements risk A small waterfall model replaces the requirements stage
Sofware Process 33
Prototyping
Sofware Process
34
Prototyping
Development of prototype
Starts with initial known requirements Only key features which need better understanding are included in prototype No point in including those features that are well understood Feedback from users taken to improve the understanding of the requirements
Sofware Process 35
Prototype
The phases like designing,coding & testing are not done formally. Using prototype, the client get an actual feel of the system quick and dirty quality not important, scripting etc can be used Because the prototype is to be thrown away, only minimal documentation needs to be produced during prototyping. For example, design documents, a test plan, and a test case specification are not needed during the development of the prototype
Sofware Process 36
Advantages
Helps in requirements elicitation(better understanding). Effective method of demonstrating the feasibility of a certain approaches ( not clear, to meet certain constraints and algorithms) Reduces risk Costs incurred due to later changes in the requirements are substantially reduced. Leads to a better system
Sofware Process
37
Disadvantages
Possibly higher cost and schedule. so cost can be kept low By building only features needing clarification Things like exception handling, recovery, standards are omitted. Disallows later changes
Sofware Process
38
Usage of prototype
Suitable for complicated and large systems for which there is no manual process or existing system to help determine the requirements Systems with novice users When GUI is very important
Sofware Process
39
Iterative Development
Counters the all or nothing drawback of the waterfall model (i.e the output/product is produced only at the end is solved in this model) Combines benefit of prototyping and waterfall Develop and deliver software in increments Each increment is complete in itself Can be viewed as a sequence of waterfalls Feedback from one iteration is used in the future iterations
Sofware Process 40
Iterative development.
1. 2.
Sofware Process
41
Iterative Enhancement
Sofware Process
42
Iterative enhancement
First simple initial implementation is done for a subset of the overall problem Each increment provide a feedback to the client that is useful for determining the final requirements of the system A project control list is prepared which contain the tasks that must be performed to obtain the final implementation Each iteration removes the next task from the list and implements the task which include design phase, implementation phase and analysis phase.
Sofware Process
43
Contd
Each iteration gives feedback to the next iteration Selection of tasks in this manner will minimize the chances of error and reduce the redesign work. The process is iterated until the project control list is empty. The design and implementation phases of each step can be performed in a top-down manner or by using some other technique.
Sofware Process 44
Spiral development
Process is represented as a spiral rather than as a sequence of activities with backtracking. Each loop in the spiral represents a phase in the process. No fixed phases such as specification or design - loops in the spiral are chosen depending on what is required. Risks are explicitly assessed and resolved throughout the process. Inner most loop is concerned with the system feasibility, next loop with the requirement specification, the next loop with system design & so on
Sofware Process
45
Prototype 3
Simula tions , models , benchmar ks Concept of Oper ation S/W requir ements
Product design
Unit test Integ ration test De velop , verify ne xt-le vel pr oduct
Plan ne xt phase
Service
Sofware Process
46
Objective setting Specific objectives for the phase are identified. Risk assessment and reduction Risks are assessed and activities put in place to reduce the key risks. Development and validation A development model for the system is chosen which can be any of the generic models. Planning The project is reviewed and the next phase of the spiral is planned.
Sofware Process 47
Advantages
Get-as-you-pay, customer need not wait until entire system is implemented. Provide regular / quick deliveries. feedback for improvement Accommodates changes, Reduces risks Avoids requirements bloating, Priorities requirements Better product
Sofware Process 48
Disadvantages
Architecture/design may change due to frequent changes. It may not be optimal, rework may increase. total cost may be more as we need to undo the things Each iteration may have planning overhead
Sofware Process 49
Usage
For business where time is of essence Risks are more Where requirements are not known and will be known only with time
Sofware Process
50
Timeboxing
Iterative is linear sequence of iterations Each iteration is a mini waterfall decide the specs, then plan the iteration Time boxing fix an iteration duration, then determine the specs Divide iteration in a few equal stages Use pipelining concepts to execute iterations in parallel
Sofware Process 51
General iterative development fix the functionality for each iteration, then plan and execute it In time boxed iterations fix the duration of iteration and adjust the functionality to fit it Completion time is fixed, the functionality to be delivered is flexible
Sofware Process 52
This itself very useful in many situations Has predictable delivery times Overall product release and marketing can be better planned Makes time a non-negotiable parameter and helps focus attention on schedule Prevents requirements bloat Overall dev time is still unchanged
Sofware Process
53
What if we have multiple iterations executing in parallel Can reduce the average completion time by exploiting parallelism For parallel execution, can borrow pipelining concepts from hardware This leads to Timeboxing Process Model
Sofware Process 54
Development is done iteratively in fixed duration time boxes Each time box divided in fixed stages Each stage performs a clearly defined task that can be done independently Each stage approximately equal in duration There is a dedicated team for each stage When one stage team finishes, it hands over the project to the next team
Sofware Process 55
Timeboxing
With this type of time boxes, can use pipelining to reduce cycle time Like hardware pipelining view each iteration as an instruction As stages have dedicated teams, simultaneous execution of different iterations is possible
Sofware Process 56
Example
These stages are app. equal in many situations Can adjust durations by determining the boundaries suitably Can adjust duration by adjusting the team size for each stage
Pipelined Execution
Analysis Team starts executing it-1 Analysis Team finishes, hands over it-1 to Building Team, starts executing it-2 Analysis Team finishes it-2, hands over to Building Team; BT finishes it-1, hands over to Design Team; Analysis Team starts it-3, Building Team starts it-2 (and DT, it-1) Sofware Process 58
Timeboxing Execution
Software
TB1
Requirements
Build
Deploy
TB2
Requirements
Build
Deploy
TB3 TB4
Requirements
Build Requirements
Sofware Process
59
Timeboxing execution
First iteration finishes at time T Second finishes at T+T/3; third at T+2 T/3, and so on In steady state, delivery every T/3 time If T is 3 weeks, first delivery after 3 wks, 2nd after 4 wks, 3rd after 5 wks, In linear execution, delivery times will be 3 wks, 6 wks, 9 wks,
Sofware Process 60
Timeboxing execution
Duration of each iteration still the same Total work done in a time box is also the same Productivity of a time box is same Yet, average cycle time or delivery time has reduced to a third
Sofware Process
61
Team Size
In linear execution of iterations, the same team performs all stages If each stage has a team of S, in linear execution the team size is S In pipelined execution, the team size is three times (one for each stage) I.e. the total team size in timeboxing is larger; and this reduces cycle time
Sofware Process 62
Team Size
Merely by increasing the team size we cannot reduce cycle time - Brooks law Timeboxing allows structured way to add manpower to reduce cycle time Note that we cannot change the time of an iteration Brooks law still holds Work allocation different to allow larger team to function properly
Sofware Process 63
Build Team
Deployment Team
Sofware Process
64
Advantages
Sofware Process
65
Disadvantages
Larger teams, project mgmt is harder, high synchronization needed, Possibly increased cost Not suitable for projects where different iterations require different stages of different time length.
Sofware Process 66
Usage
When short delivery times very imp.; architecture is stable; flexibility in feature grouping
Sofware Process
67
Summary
Process is a means to achieve project objectives of high QP Process models define generic process, which can form basis of project process Process typically has stages, each stage focusing on an identifiable task Many models for development process have been proposed
Sofware Process 68
Summary waterfall
Strength Simple Easy to execute Intuitive and logical Easy contractually Weakness All or nothing too risky Req frozen early May chose outdated hardware/tech Disallows changes No feedback from users Encourages req bloating
Sofware Process
Types of Projects Well understood problems, short duration projects, automation of existing manual systems
69
Summary Prototyping
Strength Weakness Types of Projects
Helps req elicitation Reduces risk Better and more stable final system
Front heavy Possibly higher cost and schedule Encourages req bloating Disallows later change
Systems with novice users; or areas with req uncertainity. Heavy reporting based systems can benefit from UI proto
Sofware Process
70
Summary Iterative
Strength Weakness Types of Projects
Regular deliveries, leading to biz benefit Can accommodate changes naturally Allows user feedback Avoids req bloating Naturally prioritizes req Allows reasonable exit points Reduces risks
Overhead of planning each iteration Total cost may increase System arch and design may suffer Rework may increase
For businesses where time is imp; risk of long projects cannot be taken; req not known and evolve with time
Sofware Process
71
Summary Timeboxing
Strength Weakness Types of Projects
All benefits of iterative Planning for iterations somewhat easier Very short delivery times
PM becomes more complex Team size is larger Complicated lapses can lead to losses
Where very short delivery times are very important Where flexibility in grouping features Arch is stable
Sofware Process
72