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
-
There are some tricks against that.
One is writing robust code that has internal checks on whether it is consistent, and gives some debug log output in case inconsistencies are found.
Another is to write code so that wrong code already looks wrong. I had that in a former co-worker's superb code after I took over. I was looking for something entirely different, and then I found a bug just because some stuff looked odd.
What also helps is proper architecture. If you have a big ball of mud where everything impacts everything else, bugs are not only more likely and harder to find, they're also harder to fix because the fix will break something else. Architect top-down, but implement and test bottom-up.
But the most important is to not just write down some stuff, but going through it mentally. Becoming one with the code. That's what "being in the zone" means. -
2020... still "write tests" or "try TDD" is still not the first answer.
Strange... strange... I will keep watching this. -
Personality traits of every successful developer I know.
1. Loves puzzles.
2. Loves precision.
3. Loves logic.
If this is not you I would really reconsider your choice of profession.
I honestly hate writing code. I hate debugging off-by-one bugs. I hate debugging in general. My fingers are weary from 11 years of this shit. I've spent 1 hour designing + implementing this tool in C, only to have spent 11+ hours debugging this tiny thing.
Ultimately, I hate the precision the damn computer demands. It's a prissy little bitch I want to hate fuck.
rant