Producing robust programs Flashcards
(6 cards)
1
Q
What defensive design considerations are there?
A
Anticipate misuse
Authentication to make sure the user is legit
2
Q
What is input validation?
A
Checking that data is sensible
3
Q
What are the types of input validation(5)?
A
Range
Type
Length
Presense
Format
4
Q
How do you improve maintainability?
A
Use correct naming conventions
Use subprograms
Use comments
Indent
5
Q
What is the point of testing?
A
To ensure that for any input, the program works right
6
Q
What are the types of testing?
A
Iterative, carried out using a plan during the development stage.
Final testing, carried out when the program is completely finished and all parts of it have been tested