|
Jim Langston said; >It is not impossible to write bug free code. It is actually very >easy to do so, as long as when you are designing and coding the >program you think of and validate any data the users can input. >Too many times I have been looking at someone else's program >and tell them, "well, if the user puts in a value less than zero the >program will crash". The response has almost always been, "Well >they shouldn't put in values less than zero. Let it crash". > >That has not been acceptable to me. I will go ahead and add the >extra one to 3 lines it takes to validate the values entered. My >feeling has always been if I allow the user to enter something, I >darn better well be able to handle it in my program, or I am not >going to let them enter it in the first place. What is the reason for the difference in attitude between you and "The other programmer"? Coming from a Midrange Green Screen business app background I "Inherently" think like you do. As I am creating the "Input" field I am thinking of it's validation and permissible values. It's NOT an after thought. Also, It would seem that if you come from a PC development background, you may not think "Inherently" about two or more people going for the same resource at the same time. This consideration was "Inbred" in a multi-user environment like the 34,36,38 & AS/400. Any thoughts? John Carr +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.