My Secret Life as a Spaghetti Coder
home | about | contact | privacy statement
... Do you suck?

In a slightly invective tone, Reg makes some great points about assumptions in validation, and the real trouble it can cause. I'm not entirely sure how often I've been guilty, but I know I'll pay a lot closer attention from here on out.

When you build a web app, remember: if it's going public, it has the potential to mess with people's lives.

And now I'm off to re-check those regular expressions I've been using to validate email addresses...

Hey! Why don't you make your life easier and subscribe to the full post or short blurb RSS feed? I'm so confident you'll love my smelly pasta plate wisdom that I'm offering a no-strings-attached, lifetime money back guarantee!


Comments
Leave a comment

I can't even begin to tell you how often this type of thing happens to me (with the hyphenated last name). It's really frustrating to deal with, not to mention all of the time and money it wastes getting my name corrected on credit cards, accounts, etc.

Posted by Rob Brooks-Bilson on Sep 20, 2007 at 03:54 PM UTC - 5 hrs

It's never something I've really thought about. Generally I don't go restricting people's names, though I am almost certain I've restricted emails.

In any case, accept my apologies if I've ever caused you trouble - I won't let it happen again! =)

Posted by Sam on Sep 20, 2007 at 04:50 PM UTC - 5 hrs

The good news is that ColdFusion rocks it hard core once again:

#IsValid( "email", "invective+travel@gmail.com" )#

... gives us:

YES

Posted by Ben Nadel on Sep 21, 2007 at 07:13 AM UTC - 5 hrs

Wow. I'm a moron. When did they put that in there? (Answer: CF7) I guess I should take a closer look when they release new versions - I've been using CF since 4.5, and I don't think I've ever used that function. Of course, we're upgrading straight from CF6 to 8, so that might have something to do with it.

Ben, I think you will be coauthoring the next round of CF books at this pace. Thanks for the insight.

Posted by Sam on Sep 21, 2007 at 07:56 AM UTC - 5 hrs

Thanks for the kind words. Coauthoring would be a nice goal :)

Posted by Ben Nadel on Sep 23, 2007 at 01:54 PM UTC - 5 hrs

Leave a comment

Leave this field empty
Your Name
Email (not displayed, more info?)
Website

Comment:

Subcribe to this comment thread
Remember my details
Google
Web CodeOdor.com

Me
Picture of me

Topics
.NET (19)
AI/Machine Learning (14)
Answers To 100 Interview Questions (10)
Bioinformatics (2)
Business (1)
C and C++ (6)
cfrails (22)
ColdFusion (78)
Customer Relations (15)
Databases (3)
DRY (18)
DSLs (11)
Future Tech (5)
Games (5)
Groovy/Grails (8)
Hardware (1)
IDEs (9)
Java (38)
JavaScript (4)
Linux (2)
Lisp (1)
Mac OS (4)
Management (15)
MediaServerX (1)
Miscellany (76)
OOAD (37)
Productivity (11)
Programming (168)
Programming Quotables (9)
Rails (31)
Ruby (67)
Save Your Job (58)
scriptaGulous (4)
Software Development Process (23)
TDD (41)
TDDing xorblog (6)
Tools (5)
Web Development (8)
Windows (1)
With (1)
YAGNI (10)

Resources
Agile Manifesto & Principles
Principles Of OOD
ColdFusion
CFUnit
Ruby
Ruby on Rails
JUnit



RSS 2.0: Full Post | Short Blurb
Subscribe by email:

Delivered by FeedBurner