|
In this session will be talking about Defensive Programming and how to
implement Defensive Programming in Delphi.
I will show a number of methods organized into what I like to call
a "Lines of Defence" approach, with each line of defence catching
errors not detected or prevented by previous lines of defence.
My "Lines of Defence" are:
- Making the impossible, impossible
- Defence Contracts
- Verification
- Safely using other objects
- Catching exceptions and reporting the call stack
|