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

Programmer Humor

19623 readers
5 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
 
top 50 comments
sorted by: hot top controversial new old
[–] erayerdin@programming.dev 6 points 5 days ago

"ethics aside" truly a starter for a qa

[–] chaitae3@lemmy.world 9 points 6 days ago

Apparently no-one did it yet, so I'll name my child +++ATH0

[–] ofak@lemmy.world 4 points 6 days ago

John

Doe, related to Derrick Nippl-e perhaps? (Fry and Laurie)

[–] 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)
[–] grue@lemmy.world 3 points 6 days ago

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/

[–] 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 (4 replies)
load more comments (2 replies)
[–] trustnoone@lemmy.sdf.org 170 points 1 week ago (22 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.

[–] Treczoks@lemmy.world 4 points 6 days ago

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.

[–] 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

[–] lord_ryvan@ttrpg.network 5 points 6 days ago

Yep, the apostrophe would be %27

So Mc%27dole

[–] AlecSadler@sh.itjust.works 33 points 1 week ago

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

[–] MirthfulAlembic@lemmy.world 45 points 1 week ago (5 children)
[–] Treczoks@lemmy.world 2 points 6 days ago

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.

load more comments (4 replies)
[–] agilob@programming.dev 39 points 1 week ago* (last edited 1 week ago) (1 children)

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 160 points 1 week ago* (last edited 1 week ago) (2 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.

[–] Whelks_chance@lemmy.world 40 points 1 week ago (3 children)

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

load more comments (3 replies)
load more comments (1 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.

[–] 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 (11 replies)
[–] AnyOldName3@lemmy.world 76 points 1 week ago* (last edited 1 week ago) (2 children)

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

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)
load more comments (1 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 66 points 1 week ago* (last edited 1 week ago)

What's the answer? I need the link

Edit: I found it

[–] SaharaMaleikuhm 62 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 59 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)
[–] socsa@piefed.social 51 points 1 week ago (8 children)

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

load more comments (8 replies)
[–] frayedpickles@lemmy.cafe 51 points 1 week ago (5 children)

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

load more comments (5 replies)
[–] Atomic@sh.itjust.works 50 points 1 week ago (9 children)

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 (9 replies)
[–] clutchtwopointzero@lemmy.world 49 points 1 week ago

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

[–] aarRJaay@lemm.ee 47 points 1 week ago (1 children)

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

[–] Hazmatastic@lemm.ee 10 points 1 week ago

Ah, little Bobby Tables we call him

[–] PanoptiDon@lemmy.world 45 points 1 week ago (1 children)
load more comments (1 replies)
[–] Valmond@lemmy.world 35 points 1 week ago (2 children)

I want the char 8 that makes a beep.

[–] Busyvar@jlai.lu 35 points 1 week ago (1 children)

Frontend devs hates this guy.

[–] ArtVandelay@lemmy.world 4 points 6 days ago

Still better than Jennifer Null I guess

[–] Andromxda@lemmy.dbzer0.com 33 points 1 week ago (4 children)
load more comments (4 replies)
load more comments
view more: next ›