I've been programming with that motto in my head for 17 years.....
P.S... Visual Studio debugger is a god send! I can put breakpoints directly on memory addresses!
Posted 20 September 2012 - 07:47 PM
Posted 20 September 2012 - 11:18 PM
You can in GDB too...P.S... Visual Studio debugger is a god send! I can put breakpoints directly on memory addresses!
br *0xdeadbeef^^ break when $pc == 0xdeadbeef
Edited by Cornstalks, 20 September 2012 - 11:23 PM.
Posted 21 September 2012 - 06:35 AM
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
Posted 21 September 2012 - 07:53 AM
That's not a very valid philosophy right there. Try applying it to Hitler, or Windows ME.If they didn't, they wouldn't exist in the first place.
Tristam MacDonald - SDE @ Amazon - swiftcoding [Need to sync your files via the cloud? | Need affordable web hosting?]
Posted 21 September 2012 - 08:01 AM
Posted 21 September 2012 - 12:01 PM
Posted 21 September 2012 - 12:20 PM
Posted 21 September 2012 - 02:16 PM
I don't think it is so much a case of abuse, as a case of dependency.I didn't even think that one could abuse a debugger but it seems every case exists.
Tristam MacDonald - SDE @ Amazon - swiftcoding [Need to sync your files via the cloud? | Need affordable web hosting?]
Posted 21 September 2012 - 02:33 PM
Posted 21 September 2012 - 03:01 PM
I'll quote you just for the typoI have no problem with a programmer who uses a debugger often and well. But he damn well better still be able to debug his code in an environment where a debugger isn't available, and he damn well better be able to walk through the entire execution of his code on a whiteboard.
Edited by Codarki, 21 September 2012 - 03:04 PM.
Posted 21 September 2012 - 03:11 PM
I don't see the typo...I'll quote you just for the typo
I have no problem with a programmer who uses a debugger often and well. But he damn well better still be able to debug his code in an environment where a debugger isn't available, and he damn well better be able to walk through the entire execution of his code on a whiteboard.
"But he damn well better still be able todebug hiscode in an environment where a debugger isn't available"
Posted 21 September 2012 - 03:28 PM
Codarki's point is suggesting it isn't 'debugging' without a debugger. That's probably an issue for a different discussion, but I would disagree - one can find bugs (i.e. through testing), and fix them, all without ever touching a debugger.I don't see the typo...
Tristam MacDonald - SDE @ Amazon - swiftcoding [Need to sync your files via the cloud? | Need affordable web hosting?]
Posted 21 September 2012 - 04:48 PM
Ah, I see. Yeah, I'd say they're separate, but both are important.Codarki's point is suggesting it isn't 'debugging' without a debugger. That's probably an issue for a different discussion, but I would disagree - one can find bugs (i.e. through testing), and fix them, all without ever touching a debugger.
I don't see the typo...
Posted 21 September 2012 - 06:50 PM
Posted 21 September 2012 - 07:19 PM
Posted 21 September 2012 - 10:53 PM
Well, fine, but what is good for 'prevention is better than cure' is formal unit tests. I think all new code should be tested but don't see how that equates to all new code should be stepped through with a debugger.I need to take issue with the "debugger as tool of last resort" thinking some have expounded upthread. I also use a debugger as a "prevention is better than cure" tool, so all new code is always developed and initially tested using debug builds.
Posted 21 September 2012 - 11:00 PM
I do both -- just like back when you had math homework, you couldn't just write the final answer down; your teacher always asked you to show your "working", to show how you got to the answer.Well, fine, but what is good for 'prevention is better than cure' is formal unit tests. I think all new code should be tested but don't see how that equates to all new code should be stepped through with a debugger.
I need to take issue with the "debugger as tool of last resort" thinking some have expounded upthread. I also use a debugger as a "prevention is better than cure" tool, so all new code is always developed and initially tested using debug builds.
Edited by Hodgman, 21 September 2012 - 11:06 PM.
Posted 22 September 2012 - 06:10 AM
That's not a very valid philosophy right there. Try applying it to Hitler, or Windows ME.
If they didn't, they wouldn't exist in the first place.
Edited by Olof Hedman, 22 September 2012 - 06:20 AM.