this post was submitted on 12 Aug 2024
1014 points (99.5% liked)

Programmer Humor

19486 readers
734 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) 28 comments
sorted by: hot top controversial new old
[–] [email protected] 30 points 2 months ago

Now the dev doesn't need to comment this part of the code, saves him time.

[–] [email protected] 8 points 2 months ago (5 children)

How’d they know it was a he

[–] [email protected] 34 points 2 months ago (3 children)

Maybe there's a specific person who keeps doing this and they wrote this error specifically for him.

[–] [email protected] 10 points 2 months ago

Come on Dave sort yourself out.

You know this is a porn site then! 😂

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

At my job, we have an error code that is similar to this. On the frontend, it's just like error 123.

But in our internal error logs, it's because the user submitted their credit card, didnt fully confirm, press back, removed all the items out of their cart, removed their credit card, then found their way back to the submit button through the browser history and attempted to submit without a card or a cart. Nothing would submit and no error was shown, but it was UI error.

It's super convoluted. And we absolutely wanted to shoot the tester who gave us this use case.

[–] [email protected] 42 points 2 months ago (4 children)

This makes want to become a tester. It scratches my evil itch just the way I like it.

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

If that broke the software it sounds like you have a very good tester.

[–] [email protected] 82 points 2 months ago* (last edited 2 months ago) (2 children)

And we absolutely wanted to shoot the tester who gave us this use case.

Why? Because he tested well and broke the software? A user changing their mind during a guided activity absolutely is a valid use case.

[–] [email protected] 55 points 2 months ago (2 children)

I think they meant shoot in like a friendly way. You know, happiness bullets!

[–] [email protected] 13 points 2 months ago

Like how I always say to my friends, "Look at me again and I will fucking murder you and rape your family dog".. it's just in good fun.

[–] [email protected] 58 points 2 months ago (1 children)

Oh, THAT's what "friendly fire" means!

[–] [email protected] 24 points 2 months ago

hey that tickles!

load more comments (1 replies)
[–] [email protected] 140 points 2 months ago* (last edited 2 months ago) (1 children)

Better the tester than a user.

[–] [email protected] 47 points 2 months ago (7 children)
[–] [email protected] 65 points 2 months ago

As of now, I consider you an enemy

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

Brand reputation?

[–] [email protected] 25 points 2 months ago

Being prepared for the eventuality, knowing the consequences and deciding what to do about it before it happens for a user.

[–] [email protected] 17 points 2 months ago (1 children)

Different mindset. A user doesn't want to find bugs but get shit done.

load more comments (1 replies)
load more comments (3 replies)
load more comments (3 replies)
[–] [email protected] 36 points 2 months ago (1 children)

I might be the one hitting that link just to see what happens.

[–] [email protected] 27 points 2 months ago

"Let's see how good their testers are."

[–] [email protected] 55 points 2 months ago (3 children)

Hoh man what a journey. And I love that this incredibly complex situation is the only reason that status would return. What a fun time debugging that would have been

[–] [email protected] 16 points 2 months ago (1 children)

Not really the only reason. It would be better to just return "token invalid".

It could occur by someone messing with the URL from the reset password email, like accidently adding an extra character before pressing enter

Or a poor email client that wraps the URL and doesn't send the complete one when clicked.

Or someone attempting to find a weakness in the reset password system and sending junk as the token.

[–] [email protected] 8 points 2 months ago* (last edited 2 months ago)

Or an email client where you double click the link text to select it and press copy, and somehow this puts the link plus a trailing space in the clipboard to be pasted into a browser.

[–] [email protected] 26 points 2 months ago (1 children)

The type of error where you have to give up trying to understand the user.

[–] [email protected] 36 points 2 months ago (1 children)

It's quite simple actually: The user wanted to delete their account, but forgot their password so they requested a password reset. Before the password reset email was delivered, the user remembered their password and deleted their account. The password reset email is finally delivered and apparently some email clients open all the links in the background for whatever reason, so it wasn't actually the user who clicked the password reset link.

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

apparently some email clients open all the links in the background for whatever reason

What? Really??

[–] [email protected] 34 points 2 months ago (3 children)

Yes, e.g. outlook replaces links in mails so they can scan the site first. Also some virusscanners offer nail protection, checking the site that's linked to first, before allowing the mail to end up in the user's mail client.

Thats why you never take actions on a GET request, but require a form with button for the user to do a POST.

load more comments (3 replies)
[–] [email protected] 19 points 2 months ago* (last edited 2 months ago)

Yep. Apparently outlook does this and afaik because some kind of link sniffing/scam detection/whatever, but it does it by changing the first characters of each query argument around.

We spent amazingly long time figuring that one out. "Who the hell has gotten Microsoft service querying our app with malformed query args and why"

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