Sunday, November 29, 2009

inmatarian comments on Embedded.com - The Use Of Assertions - A new study shows the power of seeding your code with assertions

more on assert in programming
inmatarian comments on Embedded.com - The Use Of Assertions - A new study shows the power of seeding your code with assertions: "

Assertions work so well for two reasons:

  1. They, of course, crash when your assumptions are wrong.
  2. They document your assumptions.

So when it comes to maintaining your code, you can follow the flow by reading the assertions.

"

No comments: