Falsehoods Programmers Believe About Names
Jamie points out this interesting article about how hard it is for programmers to get names right. Since software ultimately is used by and for humans, and we humans are pretty tightly linked to our names (whatever the language, spelling, or orthography), this is a big deal. This piece notes some of the ways that names get mishandled, and suggests rules of thumb (in the form of anti-suggestions) to encourage programmers to handle names more gracefully.
Who the hell has numbers in there name?
and let god sort them out...
That doesn't make sense. I can read your comment, therefore your inability to post it has gone away. The site is still slashdotted. Ergo, the slashdotting of the site has outlived your inability to post.
Oh wait... RFC2100...
I prefer the story of this mom.
Sapere aude!
After Reddit got done with the site yesterday, I decided "Sure, why not upgrade to Wordpress 3.0. I'll just turn off caching for a little while and..."
Help poke pirates in the eyepatch, arr.
Yeah, I might, if my memory weren't failing with age. ;-)
I found the article to be contrived and pointless.
Yes, there are people and entities that do not fit into a normal name slot in a database, and no, I don't care at all because it hasn't been a problem for anything I've written in the last thrity years. When someone pops up and says "My name is this thing I drew on the sidewalk using chipmunk poop, and it doesn't fit in your database", I'll say "Yes, you're right it doesn't, then go have a beer.
You can't handle every edge case in the universe because you'll never actually release anything.
My first name: "where 1=1 "
My last name: "'; drop table users; --"
You've probably compiled a lengthly list of sites vulnerable to SQL-injection. I'm sure you could sell that to someone somewhere to compensate you for your pain and suffering.
So, you shouldn't deploy software that doesn't, as the retarded article says, properly handle people with names that are over 65,000 characters long, where some portions are case sensitive, so if that part is lowercase instead of upper, that's a different name. But other parts are case insensitive, so its still the same name even in all caps. Oh, did I also mention that some of the letters in the name aren't part of any character set, so they can't even be typed in the first place? Because the article says that assuming names can even be text at all is wrong and your software is broken if you made that stupid assumption. (See Prince) PS, that person with the 65 thousand letter long name? He has 8,000 aliases and needs to enter all of them, better hope you allow that many aliases. Also, there is a huge subset of his name in common with a friend of his, but they are not related, it is sheer coincidence, you better not assume relation just because only two people in the world have the same last few hundred words of their name in common! Also, his brother has no name. Not, like his name is "No name" or he goes by "The artist formerly known as Prince", as in, his name is just the empty string, so your software better fucking not have name as a required field!
ASCII stupid question, get a stupid ANSI
You're not a programmer, are you?
Oh, don't worry, I can tell.
No problem is insoluble in all conceivable circumstances.
Help me Slashdot, you're my only hope.
Do you think they'd let you change your legal name to something like "O';DROP TABLE users"? If so, you should be all set.
If you program like you talk, you'll never ship anyway, because it'll never compile.
Unexpected EOF in String constant:
"Yes, you're right it doesn't, then go have a beer.
You can't handle every edge case in the universe because you'll never actually release anything.
This issue is pretty much universal. Even outside the binary world people still silly assumption about people's names.
For example, numerous people have raised objections about my signature. They always give me bullshit complaints like "Sir, that is not legible." or "um... that's not your name." or even "Did you just draw a penis on the dotted line?".
My signature does not have to be legible.
My signature does not have to be my name.
My signature does not have to contain my name.
My signature does not have to contain any name.
My signature does not have to be in the English language.
My signature does not have to be in any human language.
My signature does not have to consist of meaningful symbols.
I swear if I hear one more complaint about my signature I will carry around a portable photo printer to render goatse as my signature:
"Yes, my signature is an 600 ppi out-stretched anus. Deal with it. The law says that any mark that I make is a legally valid signature and you have to recognize it as such. You either sign the mortgage or I'm going to the next bank."
A database MUST treat all of these names the same: McClean, MacClean, MCLean, Mc Clean, Mac Clean. McCleen, ...
I assume you left out a "noot" in that sentence? I think there are quite a few people that will kindly (or maybe not-so-kindly) explain why "Mc" and "Mac" are noot the same.
fixed that
A database MUST treat all of these names the same: McClean, MacClean, MCLean, Mc Clean, Mac Clean. McCleen, ...
I assume you left out a "not" in that sentence? I think there are quite a few people that will kindly (or maybe not-so-kindly) explain why "Mc" and "Mac" are not the same.
Yeah, one goes in front of 'Donald's' and the other goes in front of 'beth'.
"I don't care about the Constitution!" --Bill O'Reilly, November 17, 2009
Nice rules. Still wouldn't handle my name.
"Software doesn't have to be perfect out of the shoot."
Are you saying software is like a bullet? Or perhaps you meant chute.
http://www.rootstrikers.org/
Who complained? The parents? If so, the only proper response would have been: "Well, what did you expect, numbnuts?"
If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
You could end up with one or more bruises if you get it wrong and then insist that "well, they're the same anyway".
Isn't that a general risk when dealing with scotsmen? :-)
But where does the difference with the missing 'a' come from?
bickerdyke
.. is Hfuhruhur-Uumellmahaye you insensitive clod !
One of the interesting problems a friend of mine in the food industry deals with is duplicate social security numbers combined with duplicate first and last names.
At some restaurants every one of the half dozen servers as the same first and last name.
Oh.. and sometimes their social security numbers are not consistent from week to week either.
She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
Because no one ever automated the process of filling out web-forms right?
Pffft, the idea is absurd! You'd need a computer to do that, and what spammer has a computer?
Oh, right. Yeah, all of them. My bad.
Security is mostly a superstition... Avoiding danger is no safer in the long run than outright exposure. - Helen Keller
So is mine!