in reply to Re: Re: Re: Re: Re: Re: "Correct" program style questions
in thread "Correct" program style questions
One reason for processing parameters that "aren't there" is to check that someone isn't modifying a URI in an attempt to break the code?
Yes. At least, that's one way you might legitimately find yourself checking for parameters that aren't there. In that case, however, you are still checking for parameters that you expect to be there. I think there are three good options in that exceptional case:
I don't think it is a good practice to write code that simply circumvents warnings which only arise under exceptional conditions. The use of the or-empty construct that started this discussion was just that.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Re: "Correct" program style questions
by BrowserUk (Patriarch) on Oct 24, 2002 at 02:58 UTC | |
by sauoq (Abbot) on Oct 24, 2002 at 04:33 UTC |