Most of the life of software is after its first delivery. The cost of keeping it working over many years is often greater than the cost of building it.

Software Maintenance

Maintenance is the modification of software after delivery. Corrective maintenance fixes faults found in use. Adaptive maintenance changes the software to suit a new environment, such as a new operating system or law. Perfective maintenance adds features or improves performance as users ask. Preventive maintenance restructures the code to make future changes easier and to avoid problems. Perfective and adaptive work normally account for most of the effort. Maintenance is hard because the people who wrote the code may have left, the documents may be out of date, and a change in one place may cause a fault in another.

Definition: Software maintenance. The modification of a software product after delivery to correct faults, improve performance or other attributes, or adapt it to a changed environment.

Updates

Updates deliver changes to users after release. They include patches for fixes, minor updates for small improvements and major upgrades for new versions. Updates should be tested, include release notes, be applied with an easy way to go back, and be compatible with the earlier data. Security updates need to reach users quickly. Automatic updates help, but they must be handled with care.

End of Life and Migration

Every product comes to an end of life (EOL), at which the developer stops selling it or supporting it. The reasons include old technology, high cost of maintenance, a better product, or a loss of demand. The end of life is announced in advance, with a sunset plan that sets the dates of the end of sale, the end of support and the end of availability. Users then need migration, a move to a new system. The strategies include big-bang migration, in which the switch is made on one date, phased migration, in which parts or user groups are moved in turn, and parallel running, in which both systems are used for a time and their results compared. Data are converted and checked, users are trained, and the old system is kept in read-only form for some time. Re-engineering or reverse engineering may be used to rebuild an old system in a modern form.

Table 4.6: Types of maintenance

Type Purpose Example
Corrective Fix faults Correct a wrong total
Adaptive Fit a new environment Support a new browser
Perfective Improve or add features Add an export option
Preventive Make future change easier Restructure messy code

Example 4.6: Classifying maintenance

Problem: Classify each change: (a) a report shows a wrong date, (b) the app is changed to run on a new version of the operating system, (c) a search filter is added at users' request, (d) a very long function is split into smaller ones.

Solution:

  1. A wrong date is a fault, so it is corrective.
  2. A new operating system is a changed environment, so it is adaptive.
  3. A new filter is an improvement for users, so it is perfective.
  4. Splitting the function makes future change easier, so it is preventive.

Result: (a) corrective, (b) adaptive, (c) perfective, (d) preventive.

Common mistakes

  • Assuming that maintenance means only fixing faults. Most of it is adaptive and perfective.
  • Ending support without notice and without a migration plan.
  • Migrating data without checking it afterwards.

Key takeaways

  • The four types of maintenance are corrective, adaptive, perfective and preventive.
  • Updates may be patches, minor updates or major upgrades.
  • End of life needs advance notice and a sunset plan.
  • Migration may be big bang, phased or parallel.

Practice questions

  1. Name the four types of software maintenance.
  2. What is end of life of a product?
  3. What is parallel running in migration?

Answers to the practice questions

  1. Corrective, adaptive, perfective and preventive.
  2. The point at which the developer stops selling or supporting it.
  3. Using the old and the new systems together for a time and comparing their results.

Sources

  • Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit IV