J
James Kuyper
Richard said:Al Balmer said:Richard seems to have missed the "if" clause in the above quote.Richard wrote:
[...]
“Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.†– Brian W. Kernighan
This quote is maybe sometimes applicable. But not always.
Debugging well structured and documented code is generally quite
easy. [...]
No. "Cleverly" means many different things and means different things
when coding than when debugging.
But this phrase is trotted out all the time to suggest that good
programmers dont need debuggers.
That interpretation of it is simply garbage.
That's a weird interpretation! The quote is about debugging, not
debuggers. It's about the importance of writing code so it can be
debugged, which implies that debugging is important too, not that it's
unnecessary.
Who's saying this? Can you give an example? I just searched on Google
for messages containing the word "debugger" and that quotation. The
overwhelming majority of the 100 most relevant hits were from quotations
inside signatures, mostly on this newsgroup, and mostly by Mark
Macintyre. However, the handful of messages that actually were about
that quotation included not a single one making the misinterpretation
you describe.