this post was submitted on 16 Nov 2024
574 points (99.3% liked)

Programmer Humor

19570 readers
1257 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
[–] Atomic@sh.itjust.works 4 points 18 minutes ago (1 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.

[–] Lemminary@lemmy.world 1 points 7 minutes ago

If only Sweden invaded the rest of the world instead of Russia... *le sigh*

[–] Bookmeat@lemmy.world 35 points 2 hours ago* (last edited 2 hours ago) (2 children)

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

[–] dch82@lemmy.zip 6 points 1 hour ago (2 children)

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

[–] kuberoot@discuss.tchncs.de 6 points 37 minutes ago (1 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@lemmy.zip 5 points 17 minutes ago (1 children)

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

[–] Lemminary@lemmy.world 1 points 4 minutes ago* (last edited 4 minutes ago)
console.log(Object.values(name).join("\n"));
[–] Andromxda@lemmy.dbzer0.com 3 points 1 hour ago* (last edited 1 hour ago) (1 children)

The Romans also had spaces in between words

[–] dch82@lemmy.zip 5 points 1 hour ago* (last edited 1 hour ago) (1 children)

But did they have lowercase?

EDIT: Hello my name is JOHN DOE. Only latin characters allowed

[–] Andromxda@lemmy.dbzer0.com 1 points 37 minutes ago* (last edited 35 minutes ago)

But did they have ~~lowercase~~ english language?

Salve! John Doe nomen meum est.

Only latin ~~characters~~ allowed

(That's all the latin I remember from school back then)

[–] executivechimp@discuss.tchncs.de 3 points 1 hour ago (1 children)

Did the Romans not use line breaks?

[–] gamermanh@lemmy.dbzer0.com 3 points 1 hour ago (1 children)

Blank spaces arent characters by definition as they're the space that allows the letters to exist

[–] executivechimp@discuss.tchncs.de 1 points 12 minutes ago

Deep. Is Python a form of Jazz?

[–] socsa@piefed.social 35 points 2 hours ago (1 children)

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

[–] agilob@programming.dev 5 points 21 minutes ago

How is your son X Æ A-12?

[–] Andromxda@lemmy.dbzer0.com 25 points 2 hours ago (3 children)
load more comments (3 replies)
[–] Steamymoomilk@sh.itjust.works 2 points 1 hour ago

John doe is invaild syntax.

It just be

(John \doe);

[–] trustnoone@lemmy.sdf.org 87 points 4 hours ago (11 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.

[–] agilob@programming.dev 5 points 18 minutes ago* (last edited 17 minutes 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 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.

[–] someguy3@lemmy.world 15 points 3 hours ago* (last edited 2 hours ago) (1 children)

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.

[–] pmk@lemmy.sdf.org 29 points 3 hours ago (1 children)

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.

[–] someguy3@lemmy.world 7 points 2 hours ago* (last edited 2 hours ago)

That one I can actually see, having an extra letter that bdoesn't match. Dropped punctuation or symbols (whatever the flair is called) though personally I wouldn't care.

[–] AdNecrias 38 points 4 hours ago (1 children)

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

[–] AlecSadler@sh.itjust.works 8 points 2 hours ago

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

[–] MirthfulAlembic@lemmy.world 22 points 4 hours ago (3 children)
[–] JohnEdwa@sopuli.xyz 10 points 2 hours ago* (last edited 2 hours 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.

[–] SpatchyIsOnline@lemmy.world 4 points 2 hours ago* (last edited 2 hours ago)

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

Edit: It wasn't?!

load more comments (1 replies)
load more comments (7 replies)
[–] Valmond@lemmy.world 25 points 4 hours ago

I want the char 8 that makes a beep.

[–] sxan@midwest.social 52 points 5 hours ago (6 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 30 points 3 hours ago (2 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.

[–] rumba@lemmy.zip 14 points 3 hours ago (1 children)

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

[–] Ephera@lemmy.ml 5 points 2 hours ago (1 children)

Well, and remember: If in doubt, send them an e-mail. You probably want to do that anyways to ensure they have access to that mailbox.

You can try to use a regex as a basic sanity check, so they've not accidentally typed a completely different info into there, but the e-mail standard allows so many wild mail addresses, that your basic sanity check might as well be whether they've typed an @ into there.

[–] rumba@lemmy.zip 3 points 2 hours ago

The regexes are written to comply with RFC 5332 and 6854

They are well defined and you can absolutely definitively check whether an address is allowable or not.

https://datatracker.ietf.org/doc/html/rfc5322

load more comments (1 replies)
load more comments (5 replies)
load more comments
view more: next ›