Meaning by Generalisation
Methods of Generalisation
IEEE classification
Economy of Defects
The longer a defect is undiscovered: the higher the cose to remove it
- The cost grows exponentially in distance between the injection and elimination
Why does defects decrease the predictability of a project
Kinds of Engineering Mistakes
How to deal with mistakes
Techniques for Construction test Cases
What is Boundary analysis
pick values on and near boundaries
What is Equivalence classes
pick a case from every equivalence class
How to decide on pass vs. fail when making a test case
What is a Robust Program
continues to behave reasonably in the presence of a defect, a violated precondition call
What is the best way a robust program deals with default
At best: provide an approximation of defect-free behavior. Also known as graceful degradation.
What is the worst way a robust program deals with default
At worst: halt with a meaningful error message without causing damage.
What is a partial Function
Do nothing when given a wrong call: “Its up to the client to call it correctly”
What is a return special value for a robust program
The program returns a special value, which we know is not a legal value, to show that the function was not called properly.
Why can’t we use special values for a robust program?
Because there may not be a specific value that is not a legal a value
What are the three ways to deal with violated precodition (make a robust program1)
What is the best way to deal with a violated precondition (make a robust program)
Advantages of robustness
Disadvantages of robustness