Archive for the ‘Web’ Category

Programmers of the World, remove the hyphens!

Friday, January 22nd, 2010

Like many of you, I’ve written code for web sites. How hard is it to remove spaces and hyphens in credit card numbers and phone numbers? Usually, it’s a one-line regexp. And some test cases. Don’t forget the test cases.

People make measurably fewer mistakes when they can punctuate long number strings. It’s easy enough for us to let them do it.

So write the code.

Web site rants, part 1

Sunday, February 1st, 2009

I’m sure this will be a regular feature (web site rants, that is).

The support web site for Canon printers (and probably other products) has a search timeout. I was trying to find some helpful information about how to get my Canon Pixma iP1600 to actually feed paper, instead of just grinding for a while. It’s never been very good at doing that. I went away from the computer for a few minutes to see the block structure one of my daughters built. I come back, and the search session has timed out.

There are lots of web sessions I want to time out (my bank account comes to mind). But a search in the printer knowledge base? What’s up with that?