Professional Documents
Culture Documents
Chapter 5 Quality and Maintenance 2024
Chapter 5 Quality and Maintenance 2024
Maintenance
Learning Outcome
• Software change
• System Re-engineering
• Quality Management
• Process improvement
• Cost Estimation
Software Change
Software change is inevitable:
New requirements emerge when the software is used
The business environment changes
Errors must be repaired
New computers and equipment are added to the system
The performance or reliability of the system may have to be improved
A key problem for all organizations is implementing and managing change to their
existing software systems
Importance of Evolution
Organizations have huge investments in their software systems –they are critical
business assets
To maintain the value of these assets to the business, they must be changed and
updated
The majority of the software budget in large companies is devoted to changing and
evolving existing software rather than developing new software
Evolution and Servicing
Evolution
The stage in a software system’s life cycle where it is in operational use and is evolving as new requirements
are proposed and implemented in the system
Servicing
At this stage, the software remains useful but the only changes made are those required to keep it
operational, i.e. bug fixes and changes to reflect changes in the software’s environment. No new functionality is
added
Phase-out
The software may still be used but no further changes are made to it
Change Implementation
Iteration of the development process where the revisions to the system are designed,
implemented and tested
A critical difference is that the first stage of change implementation may involve
program understanding, especially if the original system developers are not responsible
for the change implementation
During the program understanding phase, you have to understand how the program is
structured, how it delivers functionality and how the proposed change might affect the
program
Urgent Change Requests
Urgent changes may have to be implemented without going through all stages of the
software engineering process
If a serious system fault has to be repaired to allow normal operation to continue
If changes to the system’s environment (e.g. an OS upgrade) have unexpected effects
If there are business changes that require a very rapid response (e.g. the release of a
competing product)
Software Maintenance
Modifying a program after it has been put into use
The term is mostly used for changing custom software. Generic software products are
said to evolve to create new versions.
Maintenance does not normally involve major changes to the system’s architecture
Changes are implemented by modifying existing components and adding new
components to the system
Types of Maintenance
Maintenance to repair software faults
Changing a system to correct deficiencies in the way meets its requirements
Maintenance to adapt software to a different operating environment
Changing a system so that it operates in a different environment (computer, OS, etc.)
from its initial implementation
Maintenance to add to or modify the system’s functionality
Modifying the system to satisfy new requirements
Maintenance Costs
Usually greater than development costs (2* to 100* depending
on the application) Cost Factor Description
Team Maintenance costs are reduced if the same staff
Affected by both technical and non-technical factors
stability are involved with them for sometime
Increases as software is maintained. Maintenance corrupts the
software structure so makes further maintenance more difficult.
Contractual The developers of a system may have no
Ageing software can have high support costs (e.g. old responsibility contractual responsibility for maintenance so there
languages, compilers etc.). is no incentive to design for future change
Change acceptance depends on the maintainability of the components affected by the change
Maintenance costs depend on the number of changes and costs of change depend on maintainability
Metrics
Complexity Metrics Process Metrics
Reduced risk
There is a high risk in new software development. There
may be development problems, staffing problems and
specification problems.
Advantages
Reduced cost
The cost of re-engineering is often significantly less than
the costs of developing new software.
Re-Engineering Process
Source code translation
Convert code to a new language
Reverse engineering
Analyze the program to understand it
Program modularization
Reorganize the program structure
Data reengineering
Clean-up and restructure system data
Re-Engineering Cost Factors
The quality of the software to be reengineered
This can be a problem with old systems based on technology that is no longer widely used
Data Re-engineering
•Involves analysing and reorganising the data structures (and sometimes the data values) in a program
•May be part of the process of migrating from a file-based system to a DBMS-based system or changing from one DBMS
to another
•Objective is to create a managed data environment
Software Quality Management
•Concerned with ensuring that the required level of quality is achieved in a software product
•Involves defining appropriate quality standards and procedures and ensuring that these are
followed
•Should aim to develop a ‘quality culture’ where quality is seen as everyone’s responsibility
•Quality management is therefore not just concerned with reducing defects but also with other
product qualities
What is Quality?
•Quality, simplistically, means that a product should meet its specification
•This is problematical for software systems
Tension between customer quality requirements (efficiency, reliability, etc.) and developer
quality requirements (maintainability, reusability, etc.)
Some quality requirements are difficult to specify in an unambiguous way
Software specifications are usually incomplete and often inconsistent
Quality Management Activities
•Quality assurance
Select applicable procedures and standards for a particular project and modify these as required
•Quality control
Ensure that procedures and standards are followed by the software development team
•Product introduction
•Product plans
•Process descriptions
•Quality goals
•Risks and risk management
•Quality plans should be short, succinct documents
If they are too long, no-one will read them
Quality Control
•Checking the software development process to ensure that procedures and standards are being
followed
•Two approaches to quality control
Quality reviews
Automated software assessment and software measurement
Quality Review
•The principal method of validating the quality of a processor of a product
•Group examined part or all of a processor system and its documentation to find potential
problems
•There are different types of review with different objectives
Inspections for defect removal (product)
Reviews for progress assessment (product and process)
Quality reviews (product and standards)
Objective of Quality Review
•Objective is the discovery of system defects and inconsistencies
•Any documents produced in the process may be reviewed
•Review teams should be relatively small and reviews should be fairly short
•Review should be recorded and records maintained
Process of Quality Review
•A group of people carefully examine part or all of a software system and its associated
documentation.
•Code, designs, specifications, test plans, standards, etc. can all be reviewed.
•Software or documents may be 'signed off’ at a review which signifies that progress to the next
development stage has been approved by management.
Review Results
•Comments made during the review should be classified.
No action. No change to the software or documentation is required.
Refer for repair. Designer or programmer should correct an identified fault.
Reconsider overall design. The problem identified in the review impacts other parts of the
design. Some overall judgement must be made about the most cost-effective way of solving the
problem.
•Requirements and specification errors may have to be referred to the client.
Product Metric
•A quality metric should be a predictor of product quality
•closely related to software quality attributes • collected by measurements made of the system
representations
It is relatively easy to measure the response time of
a system (performance attribute) or the number of •indirect relationship with quality attributes
failures (reliability attribute)
need to derive a relationship between these metrics
metrics help assess efficiency and reliability and properties such as complexity, understandability
and maintainability
•For design-based activity, other factors are also involved especially the capabilities of the designers
Process Analysis and Modelling
•Process analysis
The study of existing processes to understand the relationships between parts of the process and to
compare them with other processes
•Process modelling
The documentation of a process which records the tasks, the roles and the entities used
Process models may be presented from different perspectives
However, where organisations do not have clearly defined process standards this is very difficult as you don’t know
what to measure. A process may have to be defined before any measurement is possible
•Process measurements should be used to assess process improvements
But this does not mean that measurements should drive the improvements. The improvement driver should be the
organizational objectives
No detailed process model. Development team chose their own way
of working
•Managed
For large systems, management is usually the principal problem so you need a strictly managed process.
For smaller systems, more informality is possible.
•There is no uniformly applicable process which should be standardised with in an organisation
High costs may be incurred if you force an inappropriate process on a development team
Change Management
• Software systems are subject to continual change requests
◦ From users
◦ From developers
◦ From market forces
• Storage Management
◦ System stores the differences between versions rather that all the version code
• Independent development
◦ Only one version at a time may be checked out for change
◦ Parallel working on different versions
Release Management
• Releases incorporate changes forced on the system by errors discovered by users and by
hardware changes
• They also incorporate new system functionality
• Release planning is concerned with when to issue a system version as a release
• May also include
◦ Configuration files defining how the release is configured for a particular installation
◦ Data files
◦ Installation program or shell script
◦ Electronic and paper documentation
◦ Packaging and associated publicity
• Release management must not assume that all previous releases have been accepted
◦ All files required for a release should be re-created when a new release is installed
Software Cost Components
•Hardware and software costs
•FPs can be used to estimate LOC depending on the average number of LOC per FP for a given language
AVC is a language-dependent factor varying from 200-300 for assemble language to 2-40 for a 4GL
•Object points are easier to estimate from a specification than function points as they are simply concerned with
screens, reports and 3GL modules
•They can therefore be estimated at a nearly point in the development process. At this stage, it is very difficult to
estimate the number of lines of code in a system
Example
•Real-time embedded systems, 40-160 LOC/P-month
•In object points, productivity has been measured between 4 and 50 object points/month depending on tool support and developer
capability
Software Cost Estimation
•Empirical techniques:
an educated guess based on past experience.
•Heuristic techniques:
assume that the characteristics to be estimated can be expressed in terms of some mathematical
expression.
•Analytical techniques:
derive the required results starting from certain simple assumptions.
Cost Estimation Approach
•There is no simple way to make an accurate estimate of the effort required to develop a software system
The estimate defines the budget and the product is adjusted to meet the budget
Techniques
1. Algorithmic cost modelling
2. Expert judgement
3. Estimation by analogy
4. Parkinson’s Law
5. Pricing to win
Algorithmic Cost Modelling
•A formulaic approach based on historical cost information and which is generally based on the
size of the software
Effort = A x SizeB x M
•Most commonly used product attribute for cost estimation is code size
•Most models are basically similar but with different values for A, B and M
Software Size
LOC (Lines of Code):
Simple stand most widely used metric.
Comments and blank lines should not be counted
Programming language
Distribution of system
•As the development process progresses then the size estimate becomes more
accurate
Expert Judgement
•One or more experts in both software development and the application domain use their experience to
predict software costs. Process iterates until some consensus is reached.
• Suffers from Individual bias.
•Advantages: Relatively cheap estimation method. Can be accurate if experts have direct experience of
similar systems
•Disadvantages: Very inaccurate if there are no experts!
Delphi Estimation
•Overcomes some of the problems in Expert judgement
•Team of Experts and a coordinator.
Start at the system level and assess the overall Start at the component level and estimate the
system functionality and how this is delivered effort required for each component. Add these
through sub-systems efforts to reach a final estimate
•Usable without knowledge of the system •Usable when the architecture of the system is
architecture and the components that might be part known and components identified
of the system
•Accurate method if the system has been designed in
•Takes into account costs such as integration, detail
configuration management and documentation
•May underestimate costs of system level activities
•Can underestimate the cost of solving difficult low- such as integration and documentation
level technical problems