Lists Home |
Date Index |
> >From Michael Kay:
> > The strategy (validating the user's address) assumes that
> > you know better than your customers what constitutes a
> > valid address. Let's face it, you don't, and you never
> > will. A much better strategy is to let them (the user) express
> > their address in their own terms. After all, that's what they
> > do in old-fashioned paper correspondence, and it seems
> > to work quite well.
I have to say this is wrong in numerous levels, however only wrong in the
context of certain types of applications and certain types of developers.
Let us assume that I have a governmental application for the country of X,
addresses in X are to be formatted in a very specific manner, I know the rules
of all addresses that are valid addresses in the country of X. once an address
that is a valid X address comes into any X application it can be shared freely
between all X applications (I'm speaking technical feasibility here) if my
application is supposed to be restricted to addresses that are only X addresses
then if an address is not a valid X address it follows that either they address
a. filled out incorrectly by mistake, the client knows the proper address
for the country of X but they mistyped
b. filled out incorrectly by mistake, the client does not know the proper
address rules for the country of X, perhaps the client is a recent immigrant or
a student from abroad
c. filled out incorrectly by malice.
d. filled out correctly but the client is not actually able to be a client for
If I know, as I do, that the address is not valid then I can save it for later
analytical processes to determine which one of these errors it is, but not save
it to do some particular thing for the client (interesting thing which in most
cases will not be done)
The problem is that applications are written which have as their target the
earth with the limits appropriate to a subsection thereof, which of course was
one of the examples that prompted Michael's observation.
It would be nice to formulate this with some pithy saying, but I can't come up
with one at the moment.