2.3 Producing robust programs Flashcards
What are the defensive design considerations
Anticipating misuse
Authentication
How do you maintain a program
Use subroutines
Name variables reasonably
Indentation
Commenting
What is the difference between iterative and final testing
Iterative - testing while making the program
Final - testing after the code is complete
What is the difference between syntax and logic errors
Syntax - the program will crash when you run it
Logic - the program will run but it won’t give you the desired result
What are the types of test data
Normal - what you expect the user to enter and be accepted
Invalid - what the user enters and will be rejected
Boundary - values that are just inside the boundary that should be accepted, and values just outside the boundary that should not be accepted