- Sep 19, 2000
- 10,284
- 138
- 106
So on another board in another time and place I am in an argument with a guy about system("pause"); Essentially his argument goes something like this.
"System pause is expensive and very wasteful, therefore it shouldn't be used"
My argument goes something like this.
The command's entire purpose is to stop the program. Why on earth should a user care if the program stops in 1 cycle or 8 cycles? The point is to stop the program. And ultimately it isn't THAT expensive anyways (100k of memory, *gasp*).
Ok, the biggest con I can see is that it is non-portable. But other then that, it is meant to stop a program, why is it such a bad thing if it takes more time to stop a program? Did I just miss programmers monthly here? Was there some memo that I should have known about the efficiency of your stopping commands? Is it really THAT bad of a habit?
"System pause is expensive and very wasteful, therefore it shouldn't be used"
My argument goes something like this.
The command's entire purpose is to stop the program. Why on earth should a user care if the program stops in 1 cycle or 8 cycles? The point is to stop the program. And ultimately it isn't THAT expensive anyways (100k of memory, *gasp*).
Ok, the biggest con I can see is that it is non-portable. But other then that, it is meant to stop a program, why is it such a bad thing if it takes more time to stop a program? Did I just miss programmers monthly here? Was there some memo that I should have known about the efficiency of your stopping commands? Is it really THAT bad of a habit?