News for hackers. Stuff that matters.
Re:Modern C [pdf] by PDoyle on Monday November 28, 2016 @07:59AM (#13055098)
> Assert easily allows lazy programmers to let their programs freely crash without properly handling error conditions.

This is what he meant by misuse. Properly-used assertions are meant to document and check conditions that were thought to be impossible by the developer. Not just unlikely, or illegal, but impossible. If a condition is possible, and you check it with assert, that's a bug.

Re:Modern C [pdf] by dvirsky on Monday November 28, 2016 @03:36PM (#13058189)
I came to detest assert when I was working on a project with another guy, who used it generously, as a substitute for assertions in (non existing) unit tests. Nothing would annoy me more than working on my code, running it, and having all sorts of weird assertions pop up all over the place from this guy's code.
Re:Modern C [pdf] by kruhft on Monday November 28, 2016 @12:53PM (#13057087)
The biggest problem I've seen with assert[1] is putting functioning code inside one and then not knowing why your code no longer works with NDEBUG.

[1] http://en.cppreference.com/w/c/error/assert

Re:Modern C [pdf] by mixedCase on Monday November 28, 2016 @11:38AM (#13056496)
Those are panic territory, which carries a different connotation than the word assert (which has very likely influenced in its very widespread misuse).