116 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
78 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
39 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
13 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
4 points

shudders in NodeJS

permalink
report
parent
reply
14 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
7 points

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

permalink
report
parent
reply
4 points

they should have just used rust smh

permalink
report
parent
reply
3 points

Yeah, this is his daughter

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
6 points
Ca\r\rie
permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
76 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
13 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
12 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
10 points

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

permalink
report
parent
reply
12 points

that’s amazing! Aren’t codecs fun

permalink
report
parent
reply
62 points

That’s easy, just call it Jhon\nDoe

permalink
report
reply
35 points

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

permalink
report
parent
reply
32 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
10 points

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

permalink
report
parent
reply
8 points

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

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
61 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
23 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 from 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
4 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

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

permalink
report
parent
reply
16 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
15 points

Always worth posting this classic.

permalink
report
parent
reply
14 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
4 points
4 points

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

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
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
4 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.

permalink
report
parent
reply
14 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
2 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
1 point

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

permalink
report
parent
reply
3 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
0 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
-10 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
33 points

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

permalink
report
parent
reply
10 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
-6 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
5 points

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

permalink
report
parent
reply
49 points
*

Once I was tasked with doing QA testing for an app which was planned to initially go live in the states of Georgia and Tenessee. One of the required fields was the user’s legal name. I therefore looked up the laws on baby names in those two states.

Georgia has simple rules where a child’s forename must be a sequence of the 26 regular Latin letters.

Tenessee seemed to only require that a child’s name was writable under some writing system, which would imply any unicode code point is permissible.

At the time, I logged a bug that a hypothetical user born in Tenessee with a name consisting of a single emoji couldn’t enter their legal name. I reckon it would also be legal to call a Tenessee baby 'John '.

permalink
report
reply
32 points

Sounds like you did a thorough job as a QA tester. As a software engineer, I love to see it.

permalink
report
parent
reply
11 points

By the time the app was due to go live, we’d only reported bugs with the signup and login flows. This was misinterpreted as there only being issues with the signup and login flows, and the app launched on time. In reality, it was impossible to get past the login screen.

permalink
report
parent
reply
6 points

And then let me guess… Of course the QA testers get the blame, when in reality it’s either management or marketing that wanted to pushe the app out.

permalink
report
parent
reply
22 points

im sure the devs tasked at fixing that bug loved u ;-)

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

  • 5.3K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments