Maintaining Programs (CIE IGCSE Computer Science)

Revision Note

Test Yourself
Becci Peters

Expertise

Computer Science

Maintaining Programs

Why is it important to create a maintainable program?

  • Improve program quality:
    • A maintainable program is easier to understand and modify, which leads to fewer bugs and better program quality
  • Reduce development time and costs:
    • A maintainable program requires less time and effort to modify, which reduces development time and costs
  • Enables collaboration:
    • A maintainable program makes it easier for multiple developers to work together on the same project, as it's easier to understand and modify
  • Increase program lifespan:
    • A maintainable program is more likely to be updated and maintained over time, which increases its lifespan and usefulness
  • Adapt to changing requirements:
    • A maintainable program is easier to modify to adapt to changing requirements or new features

How do you create a well maintained program?

  • Use meaningful identifiers:
    • Identifiers are names given to variables, constants, arrays, procedures and functions
    • Use descriptive and meaningful identifiers to make your code easier to understand and maintain
    • Avoid using single letters or abbreviations that may not be clear to others
  • Use the commenting feature provided by the programming language:
    • Comments are used to add descriptions to the code that help readers understand what the code is doing
    • Use comments to explain the purpose of variables, constants, procedures, functions and any other parts of the code that may not be immediately clear
    • Use comments to document any assumptions or limitations of the code
  • Use procedures and functions:
    • Procedures and functions are reusable blocks of code that perform specific tasks
    • Using procedures and functions allows you to modularise your code and make it easier to understand, debug and maintain
    • Procedures and functions should have descriptive names that clearly indicate what they do
  • Relevant and appropriate commenting of syntax:
    • Commenting of syntax is used to explain the purpose of individual lines or blocks of code within the program
    • Use commenting of syntax to describe complex algorithms, or to provide additional information on the purpose or behaviour of code

You've read 0 of your 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Becci Peters

Author: Becci Peters

Becci has been a passionate Computing teacher for over 9 years, teaching Computing across the UK helping to engage, interest and develop confidence in the subject at all levels. Working as a Head of Department and then as an educational consultant, Becci has advised schools in England, where her role was to support and coach teachers to improve Computing teaching for all. Becci is also a senior examiner for multiple exam boards covering GCSE & A-level. She has worked as a lecturer at a university, lecturing trainee teachers for Computing.