Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
grayfox35937y*Me, trying to save this in any way if possible*
I think what it might wanted to explain (and failed horribly), is that assertions should be used only in development environment and not in production code. -
Gophyr19137y@antorqs there are some cases where you're always going to want assert. If you have a 10 or 100 thousand line project, assert is very useful in making sure all of the different parts work together properly, etc.
-
grayfox35937y@Gophyr Yeah, but again, in development code.
What I mean is: you don't rely on assertions as conditions in production code. -
Omg "makes the code stop"
I suddenly don't remember the exact words; I saw it 30 seconds ago. Brain, you good?
Related Rants
Yesterday was the first day of an "Advanced" C programming class. I looked at the first homework afterwards and saw this:
NEVER use 'assert'. Real programmers don't use assert in big software projects because it makes your code stop.
Who the... What... How... Why would you...
*sigh* it's going to be a long two months.
rant
real programmers
assert
c