Please enable JavaScript.
Coggle requires JavaScript to display documents.
2.3.1 - defensive design - Coggle Diagram
2.3.1 - defensive design
MAINTAINABILITY
use of sub programs
- makes code more readable as details of subroutine can be ignored when looking at whole program
- makes code more maintainable - each subroutine can be tested individually - easy to find errors
- each performs a single, well-defined task
-
indentation
- shows programmer where block of code starts and ends
- important for debugging and understanding how code works
-
commentary
- used to explain what each part of the code does
- easier for programmer to understand what they wrote and why
advantage: good practice to explain variables, parameters and return values being used
-
-
-
maintainability = a selection of techniques and methods that made code easy to debug, update and maintain
-
-