Slashdot Mirror


Do Programmers Actually Use Assertions?

P.Chalin queries: "Do programmers actually use assertions (like the assert statement of various programming languages)? If so, what should be done when errors or exceptions are raised during the evaluation of an assertion? I am collecting opinions and stats via a short questionnaire. Thanks."

4 of 170 comments (clear)

  1. No. by Saeed+al-Sahaf · · Score: 5, Funny

    Real programmers do not use them. Code works fine the first time. You have "bugs" in your code???

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  2. My Ass Erts by lbmouse · · Score: 5, Funny

    ...when I sit and code too long.

  3. Re:assert ==let by AndroidCat · · Score: 3, Funny

    Dartmouth. If you used LET, did the computer really have to do it? They should have been more definite and used a MAKE, FORCE or DOITORDIE statement.

    --
    One line blog. I hear that they're called Twitters now.
  4. Re:I use Eiffel-style assertions in C++ by FuzzyDaddy · · Score: 3, Funny

    Programming by contract is all very nice until your methods start suing one another...

    --
    It's not wasting time, I'm educating myself.