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
-
Grumm17903yThe code always works.
Not our fault the IDE is crap, the language didn't support this, compiler is wrong, bad keyboard... -
Nah, i don't expect my code to work.
That is why i use extensive logging, have generic exception catching at the top level, make extensive use of the type system (or type annotations in dynamically typed languages), try to keep the code branch count small, and live by the fail fast, fail safe doctrine. All that makes debugging a sortof okayish experience and leads to fast fixes and good maintainability in general. -
test, test, test, test
then when you think you are done
test again
test every use case you can think of, and if you are able, do a fuzzy test
you will find a bug -
i dont think my code works.. i build it in my IDE and if theres an error i fix it :)
Related Rants
Just read this in a blog post by Jon Arundel, I think he's spot on:
"Programmers are incurable optimists: we always think our code will work, despite much evidence to the contrary."
random
quote