217 points

“We call her Carrie, because of the carriage return.”

You can also try to give the child NULL as middle name for additional fun.

permalink
report
reply
166 points
*

someone tried that with their license plate, it turned out well: https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/

edit: archive link

permalink
report
parent
reply
84 points

I just realized that the shitty software on the other side of the divide is casting null to ”null", which absolutely explains that issue. What a cluster

permalink
report
parent
reply
30 points

Yeah, I love to rag on languages with weak typing, because of the potential for a bug, but seeing it play out in reality, directly with user input, that’s certainly something else.

permalink
report
parent
reply
17 points

shudders in NodeJS

permalink
report
parent
reply
28 points
*

He is being too nice. He needs to get a lawyer and sue that shitty company for harassment and whatever else.

ETA: The US isn’t overly litigious. We are under litigious if anything.

permalink
report
parent
reply
9 points

Large corporations are overly litigious. Individuals can’t afford to be litigious enough.

permalink
report
parent
reply
7 points

Yeah, this is his daughter

permalink
report
parent
reply
7 points

they should have just used rust smh

permalink
report
parent
reply
3 points

Oh no, it gets worse:

Prank or not, Tartaro was playing with fire by going with NULL in the first place. “He had it coming,” says Christopher Null, a journalist who has written previously for WIRED about the challenges his last name presents. “All you ever get is errors and crashes and headaches.”

Archive link: https://archive.ph/o/Foe1r/https://www.wired.com/2015/11/null/

permalink
report
parent
reply
7 points
Ca\r\rie
permalink
report
parent
reply
4 points

Hey “java.lang.NullPointerException” can I borrow your pen?

permalink
report
parent
reply
170 points

I have an apostrophe and it’s super annoying as some companies see it as a SQL injection hack and sanitize it.

So I’ve received ID with Mc%20dole or they add a space in it. Or I’ll get a work email with an apostrophe but I cant use it anywhere because sites have it disabled. And I’ve missed my flight because I changed my ticket once to add the apostrophe and the system just broke at the gate.

Worse yet many flight companies have “you will not be able to board if your ID doesn’t exactly reflect your details” but their form doesn’t allow it. Even most forms for card payments don’t allow it even though it’s the name on my card.

permalink
report
reply
72 points

%20 is encoded space if I remember right, so even then they were already incorrect

permalink
report
parent
reply
33 points

It sounds like maybe they sanitized the apostrophe to a space and then encoded it

permalink
report
parent
reply
5 points

Yep, the apostrophe would be %27

So Mc%27dole

permalink
report
parent
reply
45 points

Always worth posting this classic.

permalink
report
parent
reply
29 points
*

There’s also the version with examples if you want to know exactly what and why it breaks.

And the git that collects all of these in one place, if you want to really nerd out.

permalink
report
parent
reply
13 points
12 points
*

This is going to be bobby tables isn’t it?

Edit: It wasn’t?!

permalink
report
parent
reply
4 points

Lol I went through the exact same process.

permalink
report
parent
reply
2 points

Been there, seen that, had to deal with it. Now add the problem that there are people who don’t know their birth date or not even the f-ing year they were born in. And I’m not talking about someone from a lost tribe at the Amazonas.

permalink
report
parent
reply
39 points
*

I have an apostrophe and it’s super annoying as some companies see it as a SQL injection hack and sanitize it.

My surname contains a character that’s only present in the Polish alphabet. Writing my full name as is broke lots of systems, encoding, printed paperwork and even British naturalisation application on Home Office website. My surname was part of my username back at uni, and everytime I tried to login on Windows, it would crash underlying LDAP server, logging everyone in the classroom out and forcing ICT to restart the server.

permalink
report
parent
reply
5 points

everytime I tried to login on Windows, it would crash underlying LDAP server, logging everyone in the classroom out and forcing ICT to restart the server.

Now that’s the way to do it! Make it everybody’s problem, not just yours.

permalink
report
parent
reply
20 points
*

you will not be able to board if your ID doesn’t exactly reflect your details"

Do they care about an apostrophe though? I can see any punctuation being a problem for systems.

permalink
report
parent
reply
55 points

I had to convince people to let me on board a plane because my name contain a swedish letter (å). Their computer system translated it into “aa”, which then didn’t match my passport.

permalink
report
parent
reply
8 points
*

That one I can actually see, having an extra letter that doesn’t match. Dropped punctuation or symbols (whatever the flair is called) though personally I wouldn’t care.

permalink
report
parent
reply
2 points

Your name is transliterated in your passport? That’s on the Swedish authorities then.

permalink
report
parent
reply
7 points

I have an apostrophe

Scottish/Irish?

some companies see it as a SQL injection hack and sanitize it.

Which kind of apostrophe?

A straight apostrophe, fine - that can and does get used in valid SQL injection attacks. I would be disgusted at any input form that didn’t sanitize that.

But a curly apostrophe? Nothing should be filtering a curly apostrophe, as it has no function or use within SQL. So if you learn how to bring that up in alt codes (Windows, specifically), Key combos (Mac) or dead keys (Linux), as well as direct Unicode codes for most any Win/Mac/*Nix platform, you should be golden.

Unless the developer of that input form was a complete moron and made extra-tight validation.

Plus, knowing the inputs for a lot of extended UTF-8 characters not found on a normal keyboard is also a wee bit of a typing superpower.

permalink
report
parent
reply
4 points

Same shit with American custom forms. On the one hand, they threaten you with Armageddon if you fill out the form incorrectly, on the other hand, they only allow plain letters, numbers, and a handful of special characters. Nobody there has the capacity of the mind that maybe a name cannot be correctly represented with that tiny subset of characters. So it is simply impossible to fill out that form without breaking the law. And it is a customs form, so they should know that people filling it out are most likely foreigners.

permalink
report
parent
reply
3 points

Spent lots of effort to get names for my kids that avoid this. Swedish/French. It’s harder than it sounds.

permalink
report
parent
reply
-26 points

… why are you putting an apostrophe in McDole? The O-apostrophe in Irish names is an anglicisation of Ó, eg. Ó Briain becomes O’Brien. Mac Dól would become MacDole/McDole.

permalink
report
parent
reply
85 points

Yeah fuck this guy for spelling his name the way it was given to him what an asshole

permalink
report
parent
reply
29 points

Probably some bureaucrat decades ago making an incorrect assumption that passed down through generations. Happened to my family. No Irish roots whatsoever, yet somehow we ended up with the annoying form-breaking apostrophe in our ‘legal’ name just because it begins with the letter ‘o’.

“Oscar??? Surely, you’re mistaken. I hereby decree your name to be O’Scar!” ~Arsehole circa 1937

permalink
report
parent
reply
-9 points

Hey Militant Left, just because every question directed at you assumes you are an asshole, doesn’t mean the same applies to questions to other people

permalink
report
parent
reply
9 points

Mc’Dole is what they said, not McDo’le.

permalink
report
parent
reply
160 points
*

asking questions like this is how i found out that one of the allowed characters in names in my country is ÿ, which is fine in Latin-1 but in 7-bit ASCII is DEL.

permalink
report
reply
40 points

This sounds like it would create a whole list of fun and irritating edge conditions for some poor bugger to debug. Love it.

permalink
report
parent
reply
29 points

If someone else has to debug the problems caused by a parent naming their child with a special character, does that make the parent the bugger? 🤔

permalink
report
parent
reply
20 points

I can tell you that buggering is not how you become a parent.

permalink
report
parent
reply
22 points

that’s amazing! Aren’t codecs fun

permalink
report
parent
reply
112 points

That’s easy, just call it Jhon\nDoe

permalink
report
reply
76 points

John\0Doe will fuck with all C (and C based derivatives) software that touches it.

permalink
report
parent
reply
71 points

Nah, it will end up simply as “John” in the database. You need “John%sDoe” to crash C software with unsafe printf() calls, and even then it’s better to use several “%s”

permalink
report
parent
reply
20 points

C and C derivatives will be fine unless they’re fucking up encoding.

permalink
report
parent
reply
17 points

Which rarely, if ever, happens. Especially with US software.

permalink
report
parent
reply
9 points

With an address in 's-Hertogenbosch to help people who are lazy about escaping.

permalink
report
parent
reply

There are a frightening number of systems that don’t allow “-”, which isn’t even an edge case. A lot of people - mostly women - hyphenate their last names on marriage, rather than throw their old name away. My wife did. She legally changed her name when she came of age, and when we met and married years later she said, “I paid for money for my name; I’m not letting it go.” (Note: I wasn’t pressuring her to take my name.) So she hyphenated it, and has come to regret the decision. She says she should have switched, or not, but the hyphen causes problems everywhere. It’s not a legal character in a lot of systems, including some government systems.

permalink
report
reply
62 points

It boggles my mind how so many websites and platforms incorrectly say my e-mail address is ‘invalid’ because it has an apostrophe in it.

No. It is NOT invalid. I have been receiving e-mails for years. You just have a shitty developer.

permalink
report
parent
reply
25 points

worst thing is, the regex to check email has been available for decades and it’s fine with apostrophies

permalink
report
parent
reply
18 points

Well, and remember: If in doubt, send them an e-mail. You probably want to do that anyways to ensure they have access to that mailbox.

You can try to use a regex as a basic sanity check, so they’ve not accidentally typed a completely different info into there, but the e-mail standard allows so many wild mail addresses, that your basic sanity check might as well be whether they’ve typed an @ into there.

permalink
report
parent
reply
3 points

There are many regexes that validate email, and they usually aren’t compliant with the RFC, there are some details in the very old answer on SO. So, better not validate and just send a confirmation, than restrict and lock people out, imo

permalink
report
parent
reply

Yes! Hyphens and “+” are also legal, and while most will accept a dash, many don’t allow ‘+’. But it’s explicitly allowed in the spec!

permalink
report
parent
reply
4 points

Ugh and that happens a lot if your email domain has an even slightly unusual TLD too.

permalink
report
parent
reply
22 points
*

And you’d think a simple solution is just leave out the hyphen when you put you name in, but that can also lead to problems when the system is looking for a 100% perfect match.

And good luck if they need to scan the barcode on your ID.

permalink
report
parent
reply

Then the first part is interpreted (in the US, anyway) as a middle name, not as part of the last name. I did run into a recently married woman who did that: dropped her middle name, moved her last to the middle, and used her spouse’s last name.

More commonly, places that don’t take hyphens tend to just run the two names together: Axel-Smith becomes AxelSmith.

Programmers can be really dumb.

permalink
report
parent
reply
7 points

As someone who’s mexican I encounter that more than one would think since I have 2 last names and it gets weird sometimes since I also have a middle name.

permalink
report
parent
reply
6 points

My mom didn’t hyphenate, but she does include her maiden name when writing her full name, after her middle name. It never even occurred to me that that’s uncommon.

permalink
report
parent
reply
1 point

This kind of makes me want to name my kid Pascal-Case

permalink
report
parent
reply
8 points

I have come across a shockingly large amount of people who not only have a hyphenated last name but also have a hypenated first name! Dealing with every new computer system is like a new adventure

permalink
report
parent
reply
6 points

You’d think by now Jean-Luc Picard would be a well known example and systems are able to deal with it.

permalink
report
parent
reply
3 points

There are also fringe externalities from this too. I have my mom’s last name for my middle name and my dad’s for my last name. But back in the 90s, my state would erroneously handle that scenario as having no middle name and both names hyphenated for a last name. I didn’t find this out until I turned 18 and tried to get a retail job and they wouldn’t hire me until it got fixed.

First I had to go to the Dept of Health and get a new birth certificate, then I had to do the same at the social security administration for a new social security card. Hours and hours over multiple days just so I could earn minimum wage folding and selling used clothing. Ironically, the name mixup never was a problem when I did taxes previously.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2K

    Monthly active users

  • 861

    Posts

  • 14K

    Comments