September 26, 2005

Barry's take on Assert

Barry Lapthorn has a response to my Assert is Evil posting where he concludes that assertions aren't needed if you have tests... He also raises a point that I missed which is that the typical assert on Windows machines causes a dialog box to pop up and stop your program giving you the option of debugging it or ignoring the assert, etc. This kind of response is not especially useful if you're writing code that doesn't interact with a user, such as a service, as the code may not be able to show a dialog box ...

[Updated 3rd October]
See the following follow up postings:


Share this entry: Email it! | bookmark it! | digg it! | reddit!

Posted by Len at September 26, 2005 07:59 AM | Comments (2) | Categories : Geek Speak
Comments

Another salvo in the ongoing debate about assertions...

Posted by: Mark Pearce at September 26, 2005 09:31 PM

For those of you who didn't spot the link to Mark's latest post, it's here: http://sleeksoft.co.uk/public/techblog/articles/20050926_1.html

Interesting piece, Mark, I'll comment on it tomorrow.

Posted by: Len at September 26, 2005 10:30 PM
Post a comment









Remember personal info?




Enter this code in the box below to prove that you're not some kind of automated spam robot...