this post was submitted on 16 Nov 2024
750 points (99.5% liked)

Programmer Humor

19564 readers
1478 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 3) 34 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 8 hours ago (2 children)

Unix or dos format?

Anyway, you probably need to put a backslash before it to indicate line continuation.

But wouldn't it be better to use something more traditional, such as ?

load more comments (2 replies)
[–] [email protected] 98 points 12 hours ago (1 children)

That's easy, just call it Jhon\nDoe

[–] [email protected] 64 points 12 hours ago (3 children)

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

[–] [email protected] 61 points 11 hours 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] 17 points 12 hours ago (1 children)

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

[–] [email protected] 12 points 11 hours ago

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

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

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

[–] [email protected] 3 points 6 hours ago (2 children)

I really can't even begin to properly explain this because it's just so many layers of intuition. No, you absolutely cannot have a line break in your name. That's not a letter. That said, I'm fully prepared for someone to give me an example of some writing system that uses line breaks for unique purposes apart from spaces.

load more comments (2 replies)
[–] [email protected] 53 points 12 hours ago* (last edited 8 hours ago) (1 children)

Just noticed that the listing for ; DROP TABLE "COMPANIES"; -- LTD has been redacted by the government website‽

[–] [email protected] 4 points 7 hours ago (1 children)

Is it missing an apostrophe and a dash? Or they registered the wrong name?

Anyway, the use of quotes seem to have backfired. I blame Excel.

load more comments (1 replies)
[–] [email protected] 63 points 13 hours ago* (last edited 12 hours ago)

What's the answer? I need the link

Edit: I found it

[–] [email protected] 46 points 12 hours ago (2 children)

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

[–] [email protected] 25 points 12 hours ago

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

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

Bing Crosby

[–] [email protected] 12 points 9 hours ago (2 children)

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

[–] [email protected] 23 points 11 hours ago* (last edited 11 hours ago) (1 children)

NaN,
Not a Number, and now Not a Name

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

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

[–] [email protected] 15 points 10 hours ago

Always sanitize your Data inputs.

[–] [email protected] 19 points 12 hours ago

This sounds like the start of another sovcit "loophole"

load more comments
view more: ‹ prev next ›