|
From: Adam J. <aj...@i-...> - 2007-07-16 15:22:35
|
Jonathan,
Sorry Jonathan the post was for Arpit Jain, it was not directly at
you personally. By mistake I put your name in instead of Arpit Jain. I do
use system a fair amount to launch other programs or instruct the operating
system to perform some tasks. I would as stated never use system("pause") in
a release version of a software. As for gdb I am no fan. If I need to break
a program to peek at the values of some variables at one point. I will
insert system("pause') just to take a peek instead of using gdb. I am no gdb
guru, and maybe I should became one.
As you may already know, over my years of experience I have read and
hear from many a programmer, you should never have global variables,
#define, goto, etc. I understand their point of view, but if the programmer
who is programming understands the tradeoffs they are making and using one
of these items solves the problem
and makes the code more readable and maintainable, then use it.
I personally dislike when I have to debug someone's code and they
have written it in such a fashion that I have to use my secret decoder ring
:). I do agree with you in principle.
-Adam Jones
|