[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Are people really using Identity constraints specified in


us phone number validation
> In discussing these problems, two categories of validation 
> were identified:
> 
> 1. "Syntactical" or "structural" validation 
> 2. "Semantic" or "business rule" validation
> 
> "Syntactical" or "structural" validation is useful in 
> eliminating a certain
> number of mechanical data entry errors, such as leaving out 
> required items
> or putting strings in fields that require numbers (e.g. phone numbers,
> dates, etc.)

I was under the impression US phone numbers could be alphabetic? 

I am not convinced that the distinction you are making is a real one. In the
end, all the rules are essentially social rules.   

> If you are going to validate, then validate! In Problem #2 
> the user was
> forced to enter a 2-character state code, despite being from the UK.
> Several people noted that the problem was not with too much 
> validation, but
> with not enough validation.  If the system had been doing a good job
> validating then "ZZ" would not have been allowed for the state code.
> Further, full validation would have determined that if the 
> country code is
> UK then no value is required for the state code.
> 

This is a classic addictive response. If validation is harming me, do more
of it. 

The strategy 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 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.

Michael Kay


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.