John Baird
Coatesville, Pennsylvanie, États-Unis
Mike Yearwood
Toronto, Ontario, Canada
Arent' we taking this a little to the extreme? If I am the programmer, it is my responsibility to see that parameters are passed correctly between my functions. If I am counting on the user for input parameters, then I check them. I've seen programs were there were 20 lines of parameter checking on a simple function call. Its ridiculous and a waste of time and effort.
>Errors do happen and I believe we should do everything possible to stop them. If a physician makes a mistake and the patient dies because of an improperly sealed artery, do you think the doctor should not be responsible? Heck, doctors get sued for much less than that. It's so easy for us to ensure our tools are not abused. If my routine crashes because it was called improperly that may prevent a far more serious error. I don't continue driving my car while fire is coming out from under the hood.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement