Re:Portrait of a N00b
by andrewflnr on Sunday November 13, 2011 @07:54PM
(#3232340)
I don't know about the "not clever enough by definition" part, but I agree that debugging is harder than writing new code.
If you're debugging your own code, you're trying to find something out about it that you didn't understand when you wrote it. You're looking for one of an almost infinite variety of side effects or subtle misunderstandings of interfaces, and you have to find which one it is. There are usually more ways to go wrong than right. You then have to change your brain to add this understanding, which is difficult, while writing code is likely to take advantage of existing mental structures.
When you're debugging someone else's code, you have all the same problems, except you don't have the benefit of knowing what the writer was thinking at the time, that initial understanding.
So yes, you have more time to do it, but that's because it takes longer, and it's more a wrack-your-brains time than writing code.
If you're debugging your own code, you're trying to find something out about it that you didn't understand when you wrote it. You're looking for one of an almost infinite variety of side effects or subtle misunderstandings of interfaces, and you have to find which one it is. There are usually more ways to go wrong than right. You then have to change your brain to add this understanding, which is difficult, while writing code is likely to take advantage of existing mental structures.
When you're debugging someone else's code, you have all the same problems, except you don't have the benefit of knowing what the writer was thinking at the time, that initial understanding.
So yes, you have more time to do it, but that's because it takes longer, and it's more a wrack-your-brains time than writing code.