You’re ordering auto parts online. The order form requires a mandatory phone number. It allows ten digits for the phone number.
You enter your phone number with area code: xxxxxxxxxx
The scripting on the form automatically reformats the phone number to make it “pretty”, like this: (xxx) xxx-xxxx
And then it all goes pear-shaped, because NEXT the field length limiting script kicks in and truncates that to ten characters: (xxx) xxx-
So, you can’t submit your order form without a valid phone number.
And you can’t submit your order form with a valid phone number, because by the time you hit submit, the form has automatically invalidated it.
FAIL.
Tags:
no subject
Just like the damn "ENTER YOUR CREDIT CARD WITH SPACES NO WAIT DASHES NO NO SPACES AAAGH!" forms. Parse it. With spaces, dashes, whatever, it's all unambiguous. Even a moron coder could write the parser that ignores them.
Oh, wait. Maybe not. (http://www.codinghorror.com/blog/archives/000781.html)
no subject
Man.
no subject
no subject
From a purely end-user perspective, I've been convinced that the limbo bar for coding is has been set so low progressively that it is now six feet under the sand.
no subject
I am still disturbed today when I remember that conversation, and it was four and a half years ago.
no subject
The article you cite is one that actually makes me feel pretty bitter. "199 out of 200 applicants can't solve simple programming problems." I've contributed code to half a dozen open-source programming projects, I have code in two device drivers in the mainline Linux kernel including the aha154x SCSI driver, I've written multiple entire applications single-handed, I've built entire IT infrastructures from scratch, I've done things "experts in the field" told me couldn't be done¹, I know half a dozen different operating systems, but I can't get a fucking job.
[1] Example: I wanted to have a way to whitelist "problem" addresses in Sendmail and pass them through all subsequent address filtering unchallenged. Since the filters I was using were based on how-to code from Claus Aßmann, I asked him the correct way to do it. He told me "You can't do that, it isn't possible in Sendmail." I had it working the day after he told me it couldn't be done.
no subject
Well, read it. See if you can figure out a plan of attack from it.
no subject
If I wanted to be really fancy I could even check for common errors when validating the phone number. For example if there were 11 digits I chould check if the first digit is a 1. If so remove it and recheck the validity of the number.
no subject
Which way would you rather make sales, if you are the business manager?
no subject
no subject
(And frankly, even if it is an insanely good price, if you make the customer jump through hoops to get it, the odds are that customer's not coming back.)
no subject
Some web coder probably ran into this great parser for phone numbers, or worse, decided to write a really great one, without thinking that the DBA was only going to allow ten bytes. Worse, if parts of the web site are sourced from different outside vendors. I can just see some IT guy trying to get this straightened out, if he even knows it is happening. The indirection likely involves overseas contacts. But they are saving money.
no subject
no subject
no subject