.fx: quote
A form of defensive design intended to ensure the continuing function of a piece of software in spite of unforeseeable usage of said software.
Defensive programming techniques are used especially when a piece of software could be misused mischievously or inadvertently to catastrophic effect.
- Every line of code is a liability
- Codify your assumptions
- Executable documentation is preferable
- Asserts
- Logging
- Unit tests