Why don't people usually use asserts throughout their application?
Q. Why don't people usually use asserts throughout their application? A. Most people dont use asserts in code for various reasons, including: They are not concerned about testing / validating their code; They prefer their code to do something even if not correct rather than failing; They prefer the code that does the testing to be in a test suite, rather than mixed in with production code for speed, clarity, separation of concern reasons, or the asserts they wish to use are context sensitive, so putting it in production code is hard; Thanks Dipankar for the A2A