3 ms·
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements. Brian Kernighan, “Unix for Beginners” Finally so
by vanusa 5y ago
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.
Brian Kernighan, “Unix for Beginners”
Finally someone has the courage to tell the truth.
s/debugging/testing/g and watch much of the current hype over TDD/CICD evaporate before your very eyes.
- omegalulw 5y agoI agree and disagree. When you are familiar or at lease somewhat familiar with a code base printf + careful thought is King. It also has the added benefit of forcing your to think through related edge cases you are missing or will miss if you fix the bug in a certain way. But when you are working on a massive codebase with significant state being maintained, a debugger will go a looong way.
- vanusa 5y agoRight - it's am 80/20 thing. Sometimes debuggers are more useful.