Subjects — D
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.
Sometimes it pays to stay in bed in Monday, rather than spending the rest of the week debugging Monday’s code.
Bloody instructions, which, being taught, return
To plague the inventor …
— Macbeth, act 1, scene 7, Macbeth
As soon as we started programming, we found out to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.