1106
top 50 comments
sorted by: hot top controversial new old
[-] SlopppyEngineer@lemmy.world 212 points 2 months ago

"We call her Carrie, because of the carriage return."

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

[-] morgunkorn@discuss.tchncs.de 160 points 2 months ago* (last edited 2 months ago)
[-] bravesilvernest@lemmy.ml 81 points 2 months ago

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

[-] Ephera@lemmy.ml 29 points 2 months ago

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.

load more comments (1 replies)
[-] neanderthal@lemmy.world 27 points 2 months ago* (last edited 2 months ago)

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.

load more comments (1 replies)
load more comments (3 replies)
load more comments (2 replies)
[-] trustnoone@lemmy.sdf.org 168 points 2 months ago

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.

[-] AdNecrias@lemmy.pt 70 points 2 months ago

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

[-] AlecSadler@sh.itjust.works 33 points 2 months ago

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

load more comments (1 replies)
[-] MirthfulAlembic@lemmy.world 48 points 2 months ago
[-] JohnEdwa@sopuli.xyz 31 points 2 months ago* (last edited 2 months ago)

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.

load more comments (4 replies)
[-] agilob@programming.dev 40 points 2 months ago* (last edited 2 months ago)

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.

load more comments (1 replies)
load more comments (18 replies)
[-] lime@feddit.nu 155 points 2 months ago* (last edited 2 months ago)

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.

[-] Whelks_chance@lemmy.world 39 points 2 months ago

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

[-] UnrepentantAlgebra@lemmy.world 28 points 2 months ago

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? 🤔

load more comments (2 replies)
[-] itslilith 22 points 2 months ago

that's amazing! Aren't codecs fun

[-] drew_belloc@programming.dev 109 points 2 months ago

That's easy, just call it Jhon\nDoe

[-] riodoro1@lemmy.world 75 points 2 months ago

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

[-] pelya@lemmy.world 70 points 2 months ago

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"

load more comments (3 replies)
[-] sxan@midwest.social 87 points 2 months ago

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.

[-] Affidavit@lemm.ee 62 points 2 months ago

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.

[-] rumba@lemmy.zip 27 points 2 months ago

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

load more comments (6 replies)
load more comments (2 replies)
[-] troybot@midwest.social 22 points 2 months ago* (last edited 2 months ago)

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.

load more comments (7 replies)
load more comments (3 replies)
[-] AnyOldName3@lemmy.world 75 points 2 months ago* (last edited 2 months ago)

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

[-] dan@upvote.au 48 points 2 months ago

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

load more comments (3 replies)
[-] lseif@sopuli.xyz 31 points 2 months ago

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

[-] Bookmeat@lemmy.world 74 points 2 months ago* (last edited 2 months ago)

Not legal in Canada. Your legal name must use Latin characters only. This is a sore point for indigenous people.

[-] dch82@lemmy.zip 21 points 2 months ago

Hello my name is JohnDoe. My name only contains Latin characters, no spaces allowed.

load more comments (12 replies)
load more comments (3 replies)
[-] SaharaMaleikuhm@feddit.org 61 points 2 months ago* (last edited 2 months ago)

No, cause "John\nDoe" messes up my regex. Sorry, out of the question. I'm not good with regex.

[-] lseif@sopuli.xyz 25 points 2 months ago

no one is "good" with regex.

load more comments (4 replies)
[-] perviouslyiner@lemmy.world 57 points 2 months ago* (last edited 2 months ago)

Just noticed that the listing for ; DROP TABLE "COMPANIES"; -- LTD has been redacted by the government website‽

load more comments (2 replies)
[-] rambling_lunatic@sh.itjust.works 54 points 2 months ago

Sibling of Bobby Drop Tables

load more comments (1 replies)
[-] frayedpickles@lemmy.cafe 53 points 2 months ago

Can I kill someone who wants to do this? How do I legally get away with it?

[-] socsa@piefed.social 50 points 2 months ago

If elected president my first order of business will be to make all birth certificates fully unicode compatible.

load more comments (7 replies)
[-] Atomic@sh.itjust.works 49 points 2 months ago

Not legal in Sweden. Our "IRS" must also accept the name and deem it legal.

I for one like this. As it stops some very stupid people to name their children some very stupid names. Such as "Adolf Hitler".

And yes. Someone did try to name their child this and they were appropriately stoped from doing it.

load more comments (6 replies)
[-] clutchtwopointzero@lemmy.world 48 points 2 months ago

C programmers would ask whether a null-terminated name would be acceptable

[-] aarRJaay@lemm.ee 46 points 2 months ago

Ask Robert'); DROP TABLE Students; 's mum how it went.

load more comments (1 replies)
[-] PanoptiDon@lemmy.world 45 points 2 months ago
[-] Busyvar@jlai.lu 35 points 2 months ago

Frontend devs hates this guy.

load more comments (1 replies)
[-] Valmond@lemmy.world 35 points 2 months ago

I want the char 8 that makes a beep.

load more comments (2 replies)
[-] Andromxda@lemmy.dbzer0.com 33 points 2 months ago
load more comments (4 replies)
[-] takeheart@lemmy.world 24 points 2 months ago

Na, names are about pronunciation (how you call someone). Written letters are an approximation of that. You can't pronounce a newline, so there's that.

[-] watersnipje 22 points 2 months ago

John
(long pause)
Doe

load more comments (11 replies)
[-] TGhost@lemm.ee 23 points 2 months ago* (last edited 2 months ago)

NaN,
Not a Number, and now Not a Name

load more comments (2 replies)
[-] ano_ba_to@sopuli.xyz 22 points 2 months ago* (last edited 2 months ago)

It's impossible to represent that on paper. It could be misrepresented as a specific number of spaces. Depending on the position on the paper, it may also be hard to tell if the carriage return comes with the line feed. Unless you want the document to be in ASCII or EBCDIC hex, it's like writing an ambiguous math problem where the answer is different depending on how you were taught about the order of operations. Don't do this to your kid, Abcde.

[-] vordalack@lemm.ee 22 points 2 months ago

It's time to log off and get a vasectomy

[-] Blackmist@feddit.uk 21 points 2 months ago

This sounds like the start of another sovcit "loophole"

load more comments
view more: next ›
this post was submitted on 16 Nov 2024
1106 points (100.0% liked)

Programmer Humor

20230 readers
1270 users here now

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

founded 2 years ago
MODERATORS