54 points

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

permalink
report
reply
26 points

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

permalink
report
parent
reply
37 points

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.

permalink
report
parent
reply
21 points

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

What? Really??

permalink
report
parent
reply
16 points

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.

permalink
report
parent
reply
8 points
*

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.

permalink
report
parent
reply
0 points

Yeah that error status code seems like an odd way to reflect such a scenario.

permalink
report
parent
reply
36 points

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

permalink
report
reply
27 points

“Let’s see how good their testers are.”

permalink
report
parent
reply
223 points
*

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.

permalink
report
reply
140 points
*

Better the tester than a user.

permalink
report
parent
reply
47 points

Whats the difference?

permalink
report
parent
reply
17 points

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

permalink
report
parent
reply
25 points

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

permalink
report
parent
reply
9 points

Brand reputation?

permalink
report
parent
reply
65 points

As of now, I consider you an enemy

permalink
report
parent
reply
0 points

Users are dumb, testers are assholes.

permalink
report
parent
reply
36 points

Are you from microsoft?

permalink
report
parent
reply
82 points
*

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.

permalink
report
parent
reply
55 points

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

permalink
report
parent
reply
58 points

Oh, THAT’s what “friendly fire” means!

permalink
report
parent
reply
12 points

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.

permalink
report
parent
reply
8 points

It’s likely a difference of emotion compared to logic. Emotionally they’d think “Damn it, now we need to check for such a weird specific edge-case, this is so annoying” while logically knowing it’s better the tester caught it.

permalink
report
parent
reply
26 points
*

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

permalink
report
parent
reply
41 points

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

permalink
report
parent
reply
41 points

there’s three qualifications to being a testor:

Finding stupid ways to break shit, Being able to accurately explain how you broke shit, and being likeable enough that breaking their shit doesn’t make the devs angry.

permalink
report
parent
reply
15 points

Being able to accurately explain how you broke shit

This is the most important part. Or look at systems like SpiffingBrit and Josh (Let’s Game it Out) look at games

permalink
report
parent
reply
19 points

What about the test case where I’m using the browser’s dev tools to re-send http requests in random orders?

permalink
report
parent
reply
61 points

Give that tester a raise bro

permalink
report
parent
reply
29 points

Don’t shoot the tester shoot whoever wrote the code (or the framework / library) that got you into this situation in the first place.

permalink
report
parent
reply
8 points

How’d they know it was a he

permalink
report
reply
34 points

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

permalink
report
parent
reply
10 points

Come on Dave sort yourself out.

You know this is a porn site then! 😂

permalink
report
parent
reply
3 points

You bitwise OR into the higher end bits the user id, in which you have already encoded the user’s gender. (For which you have a util method to extract. )

permalink
report
parent
reply
3 points

What the hell kind of second-rate DBMS doesn’t encode gender into its primary keys SMDH!!

permalink
report
parent
reply
7 points

In case you’re serious, not everyone is a native speaker.

permalink
report
parent
reply
16 points

Don’t be silly; it’s obvious that there are different error messages for each gender expression. Error logs need to be detailed and specific in order to be useful.

permalink
report
parent
reply
2 points

They were talking about me. They got my pronouns wrong. It’s ok though, because they will have many more opportunities to get it right.

permalink
report
parent
reply
3 points

I like seeing instances where people have used “she” as the generic pronoun.

permalink
report
parent
reply
30 points

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

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.5K

    Monthly active users

  • 810

    Posts

  • 13K

    Comments