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

Programmer Humor

23231 readers
1153 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 2 years ago
MODERATORS
 
(page 5) 22 comments
sorted by: hot top controversial new old
[–] [email protected] 90 points 5 months ago (21 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.

load more comments (21 replies)
[–] [email protected] 13 points 5 months ago (2 children)

Am I allowed to include sql command words such as drop table in my child's name?

load more comments (2 replies)
[–] [email protected] 16 points 5 months ago

Always sanitize your Data inputs.

[–] [email protected] 164 points 5 months ago* (last edited 5 months 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.

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

that's amazing! Aren't codecs fun

load more comments (4 replies)
[–] [email protected] 25 points 5 months ago* (last edited 5 months ago) (2 children)

NaN,
Not a Number, and now Not a Name

[–] [email protected] 7 points 5 months ago

NaN: „Hey Nanna, can you call the nanny?“

load more comments (1 replies)
[–] [email protected] 59 points 5 months ago* (last edited 5 months 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] 51 points 5 months ago (2 children)

I'd rather include a bell character '\a'

[–] [email protected] 28 points 5 months ago

And that's why you're not safe for work.

load more comments (1 replies)
[–] [email protected] 21 points 5 months ago

This sounds like the start of another sovcit "loophole"

[–] [email protected] 220 points 5 months 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] 169 points 5 months ago* (last edited 5 months ago) (6 children)
[–] [email protected] 87 points 5 months 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)
[–] [email protected] 7 points 5 months ago

Yeah, this is his daughter

load more comments (4 replies)
load more comments (2 replies)
[–] [email protected] 114 points 5 months ago (1 children)

That's easy, just call it Jhon\nDoe

[–] [email protected] 77 points 5 months ago (3 children)

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

[–] [email protected] 9 points 5 months ago

With an address in 's-Hertogenbosch to help people who are lazy about escaping.

[–] [email protected] 72 points 5 months 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"

[–] [email protected] 21 points 5 months ago (1 children)

C and C derivatives will be fine unless they're fucking up encoding.

[–] [email protected] 18 points 5 months ago

Which rarely, if ever, happens. Especially with US software.

[–] [email protected] 67 points 5 months ago* (last edited 5 months ago)

What's the answer? I need the link

Edit: I found it

load more comments
view more: ‹ prev next ›