this post was submitted on 16 Nov 2024
1129 points (99.0% liked)

Programmer Humor

19623 readers
1 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 1 year ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] SlopppyEngineer@lemmy.world 217 points 1 week ago (3 children)

"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 166 points 1 week ago* (last edited 1 week ago) (6 children)
[–] bravesilvernest@lemmy.ml 84 points 1 week ago (2 children)

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

load more comments (2 replies)
load more comments (5 replies)
load more comments (2 replies)
[–] trustnoone@lemmy.sdf.org 171 points 1 week ago (28 children)

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 72 points 1 week ago (2 children)

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

load more comments (2 replies)
load more comments (27 replies)
[–] lime@feddit.nu 161 points 1 week ago* (last edited 1 week ago) (5 children)

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.

load more comments (5 replies)
[–] drew_belloc@programming.dev 112 points 1 week ago (1 children)

That's easy, just call it Jhon\nDoe

[–] riodoro1@lemmy.world 76 points 1 week ago (4 children)

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

[–] pelya@lemmy.world 71 points 1 week 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 88 points 1 week ago (12 children)

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.

[–] dditty@lemm.ee 3 points 6 days ago

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.

[–] Affidavit@lemm.ee 62 points 1 week ago (9 children)

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.

load more comments (9 replies)
load more comments (10 replies)
[–] Bookmeat@lemmy.world 76 points 1 week ago* (last edited 1 week ago) (21 children)

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

load more comments (21 replies)
[–] JackGreenEarth@lemm.ee 67 points 1 week ago* (last edited 1 week ago)

What's the answer? I need the link

Edit: I found it

[–] SaharaMaleikuhm@feddit.org 64 points 1 week ago* (last edited 1 week ago) (5 children)

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

load more comments (5 replies)
[–] perviouslyiner@lemmy.world 58 points 1 week ago* (last edited 1 week ago) (2 children)

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 58 points 1 week ago (1 children)

Sibling of Bobby Drop Tables

load more comments (1 replies)
load more comments
view more: ‹ prev next ›