Thursday, April 16, 2009

Bug #1234

In our web-based system, customers are not allowed to use post office boxes. We would check this with our "bulletproof" regular expression. Bulletproof means we haven't had any complaints. Until we did. Something along the lines of "Incident XXXX: Customer who lives on Post Office Road can't update her address information".

We ended up doing a special code-behind check specifically for this customer's address. Elegant? Nah. Hackish? The very essence of what a hack is. Did it work? Great! No problems reported since, and it's been months since this was implemented.

No comments: