2012-11-29 Code Complete chap.8 sec 2,3
"Garbage in, nothing out/error message out" instead of "Garbage in, garbage out".
assertion コードは開発時のもので puroduct からは除くものである。
Assertion 利用のガイドライン
error handling は起こるかもしれない条件に対して使うが、
assertion は決して起こってはいけない条件に対して使う。
error handling は不正な入力のためのもので assertion はバグのためのもの。
実行コードは書かないこと。
副作用が起きるから。
error handling と assertion のどちらをあるいは両方書くかについては議論があるようだ。