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

Programmer Humor

19589 readers
700 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
[–] aarRJaay@lemm.ee 19 points 8 hours ago

Ask Robert'); DROP TABLE Students; 's mum how it went.

[–] Busyvar@jlai.lu 25 points 13 hours ago

Frontend devs hates this guy.

[–] vordalack@lemm.ee 17 points 13 hours ago

It's time to log off and get a vasectomy

[–] ano_ba_to@sopuli.xyz 16 points 13 hours ago* (last edited 5 hours ago)

It's impossible to represent that on paper. It could be misrepresented as a specific number of spaces. Depending on the position on the paper, it may also be hard to tell if the carriage return comes with the line feed. Unless you want the document to be in ASCII or EBCDIC hex, it's like writing an ambiguous math problem where the answer is different depending on how you were taught about the order of operations. Don't do this to your kid, Abcde.

[–] YourNetworkIsHaunted@awful.systems 11 points 13 hours ago

Anyone remember when Chrome had that issue with validating nested URL-encoded characters? Anyone for John%%80%80 Doe?

[–] clutchtwopointzero@lemmy.world 42 points 19 hours ago

C programmers would ask whether a null-terminated name would be acceptable

[–] AnyOldName3@lemmy.world 65 points 1 day ago* (last edited 2 hours ago) (2 children)

Once I was tasked with doing QA testing for an app which was planned to initially go live in the states of Georgia and Tenessee. One of the required fields was the user's legal name. I therefore looked up the laws on baby names in those two states.

Georgia has simple rules where a child's forename must be a sequence of the 26 regular Latin letters.

Tenessee seemed to only require that a child's name was writable under some writing system, which would imply any unicode code point is permissible.

At the time, I logged a bug that a hypothetical user born in Tenessee with a name consisting of a single emoji couldn't enter their legal name. I reckon it would also be legal to call a Tenessee baby 'John '.

[–] lseif@sopuli.xyz 23 points 18 hours ago

im sure the devs tasked at fixing that bug loved u ;-)

[–] dan@upvote.au 39 points 23 hours ago (1 children)

Sounds like you did a thorough job as a QA tester. As a software engineer, I love to see it.

[–] AnyOldName3@lemmy.world 3 points 2 hours ago (1 children)

By the time the app was due to go live, we'd only reported bugs with the signup and login flows. This was misinterpreted as there only being issues with the signup and login flows, and the app launched on time. In reality, it was impossible to get past the login screen.

[–] dan@upvote.au 1 points 1 hour ago

And then let me guess... Of course the QA testers get the blame, when in reality it's either management or marketing that wanted to pushe the app out.

[–] x4740N@lemm.ee 10 points 17 hours ago

I'm not american and I'm glad I'm not but intended if someone could enter a bunch of zero width spaces

[–] PanoptiDon@lemmy.world 41 points 23 hours ago (1 children)
[–] C126@sh.itjust.works 14 points 16 hours ago

Little Bobby Tables

[–] SaharaMaleikuhm@feddit.org 57 points 1 day ago* (last edited 1 day ago) (1 children)

No, cause "John\nDoe" messes up my regex. Sorry, out of the question. I'm not good with regex.

[–] lseif@sopuli.xyz 25 points 18 hours ago (1 children)

no one is "good" with regex.

[–] BluesF@lemmy.world 12 points 15 hours ago (2 children)

Then who's coming up with all the bits that I copy/paste off the internet? The regex dragon?

[–] nucleative@lemmy.world 4 points 13 hours ago

There was only one, we're all still copying from him or her.

[–] Whelks_chance@lemmy.world 6 points 14 hours ago

From what I've seen, it's Cthulhu.

[–] frayedpickles@lemmy.cafe 52 points 1 day ago (1 children)

Can I kill someone who wants to do this? How do I legally get away with it?

[–] LavenderDay3544@lemmy.world 29 points 1 day ago (4 children)

Plead permanent sanity. If I was the judge I would let you go.

[–] mojofrododojo@lemmy.world 11 points 15 hours ago

Plead permanent sanity.

temporary sanity is the best I can manage these days.

load more comments (3 replies)
[–] rambling_lunatic@sh.itjust.works 58 points 1 day ago (1 children)

Sibling of Bobby Drop Tables

load more comments (1 replies)
[–] iAvicenna@lemmy.world 21 points 1 day ago (3 children)

why settle for \n when you can go for the stylish carriage return

[–] lseif@sopuli.xyz 9 points 18 hours ago (1 children)

so John\r Doe ? depending on the software, when it gets printed, the carriage return will moves the cursor to the start of the line without moving a line down, becoming \x20Doe.

[–] sukhmel@programming.dev 1 points 8 hours ago

This is the ideal rendition, I would say. On a related note, I just love it when there are backspaces in my filenames

load more comments (2 replies)
[–] trustnoone@lemmy.sdf.org 152 points 1 day ago (25 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.

load more comments (25 replies)
[–] Atomic@sh.itjust.works 49 points 1 day ago (9 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.

[–] lseif@sopuli.xyz 4 points 18 hours ago

ugh literally 1984

load more comments (8 replies)
[–] Bookmeat@lemmy.world 74 points 1 day ago* (last edited 1 day ago) (20 children)

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

load more comments (20 replies)
load more comments
view more: next ›