Capricious programming
Hex-Rays (hexrays) <infohex-rayscom> Monday, February 20 2006 22:23.16 CST


Textbooks on software engineering prescribe to check preconditions at the beginning of a function. This is a really good idea: the sooner we detect that the input data or environment does not match our expectations, the easier it is to trace and debug the application. A nice function with precondition checking refuses to "work" if the preconditions are not satisfied.



Comments
Posted: Wednesday, December 31 1969 18:00.00 CST