this post was submitted on 16 Nov 2024
850 points (99.4% liked)

Programmer Humor

19572 readers
1671 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
[–] socsa@piefed.social 46 points 10 hours ago (7 children)

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

[–] bandwidthcrisis@lemmy.world 4 points 6 hours ago

I govenment site I visited recenly made a point of how it accepts emojis in passwords!

load more comments (6 replies)
[–] trustnoone@lemmy.sdf.org 128 points 13 hours ago (13 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 56 points 13 hours ago (1 children)

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

[–] AlecSadler@sh.itjust.works 23 points 10 hours ago

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

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

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

Edit: It wasn't?!

load more comments (1 replies)
[–] someguy3@lemmy.world 19 points 11 hours ago* (last edited 8 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 for systems.

[–] pmk@lemmy.sdf.org 42 points 11 hours ago (6 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.

load more comments (6 replies)
load more comments (10 replies)
[–] Sam_Bass@lemmy.world 2 points 5 hours ago

Be funny as fuck if Canada started extradition procedures when he landed

[–] phoenixz@lemmy.ca 5 points 7 hours ago

Good luck with that.

Most computer nayetems will trim the crap out of that name, the white spaces like space, tab, \r and \n will be gone by the time it's in the database

[–] Andromxda@lemmy.dbzer0.com 32 points 10 hours ago (3 children)
load more comments (3 replies)
[–] sxan@midwest.social 67 points 13 hours ago (10 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 46 points 12 hours ago (3 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 21 points 11 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 14 points 10 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 9 points 10 hours ago (1 children)

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

[–] Ephera@lemmy.ml 6 points 7 hours ago

Yeah, I'm just saying that the benefit of using such a regex isn't massive (unless you're building a service which can't send a mail).

a@b is a syntactically correct e-mail address. Most combinations of letters, an @-symbol and more letters will be syntactically correct, which is what most typos will look like. The regex will only catch fringe cases, such as a user accidentally hitting the spacebar.

And then, personally, I don't feel like it's worth pulling in one of those massive regexes (+ possibly a regex library) for most use-cases.

load more comments (2 replies)
load more comments (9 replies)
[–] lime@feddit.nu 135 points 15 hours ago* (last edited 15 hours 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 27 points 12 hours 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.

[–] UnrepentantAlgebra@lemmy.world 22 points 10 hours ago (1 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? 🤔

[–] toynbee@lemmy.world 17 points 10 hours ago (1 children)

I can tell you that buggering is not how you become a parent.

load more comments (1 replies)
load more comments (1 replies)
[–] Valmond@lemmy.world 31 points 12 hours ago (1 children)

I want the char 8 that makes a beep.

load more comments (1 replies)
[–] SlopppyEngineer@lemmy.world 190 points 16 hours ago (2 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 144 points 16 hours ago* (last edited 16 hours ago) (6 children)
[–] neanderthal@lemmy.world 18 points 10 hours ago* (last edited 10 hours 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.

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