Maintainability Flashcards
What are the 4 reasons why a program may need modifying?
To add a new feature
To fix a bug
To improve the speed or performance
To port it so that it will run on a different CPU or Operating System
What is the process of maintainability?
The process of ensuring that code can be easily amended or updated
Why are ‘comments’ useful in code?
They can explain what a particular line or block of code is doing
What are 4 good ways of maintainability?
Extensive comments to explain each part of the code and its overall purpose
Effective use of indentation to easily see related blocks of code
Effective use of blank lines to visually split up the source code into related parts
Using sensible and meaningful names to variables, constants and functio