this post was submitted on 16 Nov 2024
1049 points (99.2% liked)

Programmer Humor

19572 readers
751 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
[–] [email protected] 73 points 1 day ago* (last edited 1 day ago) (8 children)

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

[–] dch82 18 points 1 day ago (9 children)

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

[–] [email protected] 18 points 1 day ago (2 children)

Ah, but you see, "John" and "Doe" are two names - first and last - and when you say "My name is", you're really listing out your names, with spaces inbetween!

But then there's hyphenated names, and I have no idea how those are treated.

[–] dch82 13 points 1 day ago (1 children)

"John Doe" vs ["John", "Doe"] vs {"firstName":"John", "lastName":"Doe"}

load more comments (1 replies)
load more comments (1 replies)
load more comments (8 replies)
load more comments (7 replies)
[–] [email protected] 22 points 1 day ago (8 children)

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.

[–] [email protected] 18 points 1 day ago (1 children)

But differently spelled names are legally distinct.

[–] [email protected] 2 points 16 hours ago (1 children)

i think they mean that pronounciation matters for determing validity, not for the actual record or distinguishing between names

load more comments (1 replies)
load more comments (7 replies)
[–] [email protected] 154 points 1 day ago* (last edited 1 day 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.

[–] [email protected] 35 points 1 day ago (1 children)

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

[–] [email protected] 27 points 1 day ago (2 children)

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)
load more comments (1 replies)
[–] [email protected] 207 points 1 day 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.

[–] [email protected] 160 points 1 day ago* (last edited 1 day ago) (4 children)
[–] [email protected] 76 points 1 day 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

[–] [email protected] 25 points 1 day 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)
[–] [email protected] 26 points 1 day ago* (last edited 1 day ago) (1 children)

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.

[–] [email protected] 6 points 22 hours ago

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

load more comments (2 replies)
[–] [email protected] 7 points 22 hours ago
load more comments (1 replies)
[–] [email protected] 48 points 1 day ago (6 children)

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

[–] [email protected] 18 points 1 day ago (2 children)

How is your son X Æ A-12?

load more comments (2 replies)
load more comments (5 replies)
[–] [email protected] 20 points 1 day ago* (last edited 1 day ago) (2 children)

A line break is a non-printable character. So it would only work in the scope of electronic storage. The minute it hits other media, the line break character is subject to how that media handles it’s presence, and then it is lost permanently from that step forward.

Plus, many input forms make use of validation that will just trim anything that isn’t a character or number, removing the line break character.

[–] [email protected] 5 points 22 hours ago

A line break doesnt have to be electronic only. You just... start a new line on the paper.

If it were somehow legally allowed, the sanitization would be incorrect.

[–] [email protected] 4 points 21 hours ago* (last edited 21 hours ago) (6 children)

As someone with a very mildly unusual name, I can tell you that it doesn't matter whether a system could or could not meaningfully represent the name. Often the people or systems just refuse to acknowledge any deviation from what's expected. Sometimes databases are written to enforce arbitrary grammatical rules that make my name impossible to write, or the people using the systems will just "correct" the "error" without telling me. I don't mind that much but our normative systems just love to homogenise us.

load more comments (6 replies)
[–] [email protected] 79 points 1 day ago (11 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.

[–] [email protected] 55 points 1 day 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)
[–] [email protected] 34 points 1 day ago (4 children)
load more comments (4 replies)
[–] [email protected] 108 points 1 day ago (1 children)

That's easy, just call it Jhon\nDoe

[–] [email protected] 74 points 1 day ago (4 children)

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

[–] [email protected] 70 points 1 day 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)
[–] [email protected] 32 points 1 day ago (1 children)

I want the char 8 that makes a beep.

load more comments (1 replies)
[–] [email protected] 57 points 1 day ago* (last edited 1 day 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)
[–] [email protected] 67 points 1 day ago* (last edited 1 day ago)

What's the answer? I need the link

Edit: I found it

load more comments
view more: ‹ prev next ›