this post was submitted on 01 Apr 2025
1206 points (99.1% liked)

Programmer Humor

22235 readers
452 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 2) 47 comments
sorted by: hot top controversial new old
[–] [email protected] 31 points 4 days ago (3 children)

Fails to consider the case in which the 2-year-old sister is now male.

load more comments (3 replies)
[–] [email protected] 20 points 4 days ago* (last edited 4 days ago) (8 children)

So by this definition testers are annoying due to being super pedantic and precise.

Disagree, I think programmers are annoying in exactly the same way.

load more comments (8 replies)
[–] [email protected] 10 points 4 days ago

Really have to start with a definition of "now"

[–] [email protected] 46 points 4 days ago (6 children)

Physicist: "assuming a spherical year ..."

load more comments (6 replies)
[–] [email protected] 28 points 4 days ago (1 children)

Didn't even consider leap years. Smh

[–] [email protected] 9 points 4 days ago

That's the customer answer, where they give an age in leap years, and everything goes to pot.

[–] [email protected] 44 points 4 days ago (2 children)

Based on the only comparison we have, the OP is twice the age of their sister. so the sister is now 44/2, or 22. Easy problem.

[–] [email protected] 17 points 4 days ago

Based on the only information we have, OPs sister is two. So the sister is 2. Trivial.

load more comments (1 replies)
[–] [email protected] 3 points 4 days ago* (last edited 4 days ago)

You could also simplify by saying that assuming neither of them are dead, at some point while he is 44 she will be 42. Whether or not she is actually his sister seems to be irrelevant, she was stated to be his sister, so regardless of biological data, it is being presented as a fact assumption.

The space stuff is not currently possible and can be disregarded as well.

[–] [email protected] 12 points 4 days ago (1 children)
import birthday;

let myAge1 = 4;
let sisterAge1 = 2;
let myAge2 = 44;

let sisterAge2 = birthday.deriveAge(myAge1, sisterAge1, myAge2);

print(sisterAge2);

Any bugs should be reported upstream. Please open a tracking issue to sync changes with eventual upstream fixes.

[–] [email protected] 2 points 4 days ago

The API has the wrong abstraction and the type definitions fail to capture necessary information (such as in which year you were of the given age) and thus conversions can not be guaranteed to be correct

[–] [email protected] 5 points 4 days ago (1 children)

Now that’s thinking like a lawyer!

load more comments (1 replies)
[–] [email protected] 12 points 4 days ago* (last edited 4 days ago)

I'm a programmer and my answer would be more like the tester's answer.

But okay I also used to be a tester so this comment is probably invalid.

[–] [email protected] 1 points 4 days ago

!lemmySilver

[–] [email protected] 9 points 4 days ago (1 children)

Managers when a tester does this in a planning meeting, asking for more time to write better teats: 😠

Managers when a staff level engineer does this in a post-fuckup root cause analysis meeting telling everyone what went wrong: 🤤

Managers when the tester points out it wouldn't have happened if tests for it had gotten written:

[–] [email protected] 3 points 4 days ago

Probably? Nah mate, your box of stuff, has already been chucked out of the window... You are next

[–] [email protected] 3 points 4 days ago (1 children)

Ugh, this is what you get when there's no AC.

[–] [email protected] 8 points 4 days ago

That's a good tester.
In my experience coders usually make absolutely terrible testers, testing only for the most inane case, or just positive cases (ie, it does the nominal case without bursting into fire).

[–] [email protected] 32 points 4 days ago (3 children)

Am I an oddball in that as a developer, that QA answer is the sort of answer I give? It annoys management to no end.

[–] [email protected] 6 points 4 days ago

How are edge cases supposed to be covered if the developer can't imagine them? It would save SO MUCH time if everyone were as detail oriented and creative as you.

[–] [email protected] 16 points 4 days ago

Nope, a good developer asks exactly the first thing with the birthdays. If you don't have proper data it's impossible to give the correct answer. This is the difference from an experienced developer to a junior.

[–] [email protected] 24 points 4 days ago

A developer with a QA mindset is never a bad thing in my opinion. It makes sure issues are fixed earlier and saves time (and for management, money)

[–] [email protected] 7 points 4 days ago* (last edited 4 days ago)

Also, we first have to define more precisely what 'being 2' means. E.g., if we just count birthdays and one of them is born on Feb 29th in a leap year, that person 'ages' with 1/4 of the speed.

[–] [email protected] 14 points 4 days ago
[Test]
public void Sister_IsAstronaut() 
{
[–] [email protected] 8 points 4 days ago

This may be why I hated math.

[–] [email protected] 191 points 4 days ago (6 children)

Love this, 100% accurate. QA people are amazing, protect us from ourselves in so many ways we didn’t even think of.

[–] [email protected] 63 points 4 days ago (2 children)

But they still don't think of all common user possibilities. I like this joke:

A software tester walks into a bar.

Runs into a bar.

Crawls into a bar.

Dances into a bar.

Flies into a bar.

Jumps into a bar.

And orders:

a beer.

2 beers.

0 beers.

99999999 beers.

a lizard in a beer glass.

-1 beer.

"qwertyuiop" beers.

Testing complete.

A real customer walks into the bar and asks where the bathroom is.

The bar goes up in flames.

load more comments (2 replies)
[–] [email protected] 18 points 4 days ago (1 children)

Hey! My company just fired ours today!

[–] [email protected] 24 points 4 days ago

After all, most delays can directly be traced to the QA department. Wise business decision!

[–] [email protected] 14 points 4 days ago (1 children)

Yes, I second this. QA has caught so many things that did not cross my mind, effectively saving everyone from many painful releases

[–] [email protected] 10 points 4 days ago

I've worked with some insanely talented devs who were amazed at some of the shit I was able to pull and we could have a laugh about it

[–] [email protected] 30 points 4 days ago (1 children)

Most of the best QA folks I’ve worked with had teenage children.

I imagine dealing with developers is similar.

[–] [email protected] 18 points 4 days ago (1 children)

I love working with competent QA engineers. It's always a humbling experience.

[–] [email protected] 3 points 4 days ago

I learned more about how computers work from them than I did in all my schooling.

[–] [email protected] 76 points 4 days ago (2 children)

I wish our test team was like that. Ours would respond with something like “How would I test this?”

[–] [email protected] 0 points 4 days ago (1 children)

Programmer should have written all the test cases, and I just run the batches, and print out where their cases failed.

[–] [email protected] 24 points 4 days ago (2 children)

Ewww, no. The programmer should have run their unit tests, maybe even told you about them. You should be testing for edge cases not covered by the unit tests at a minimum and replicating the unit tests if they don't appear to be very thorough.

load more comments (2 replies)
[–] [email protected] 30 points 4 days ago (6 children)

Tester here, I only have to do this if the ticket is unclear / its not clear where impact can be felt by the change. I once had a project with 4 great analysts and basically never had to ask this question there.

load more comments (6 replies)
load more comments (1 replies)
[–] [email protected] 78 points 4 days ago (2 children)

The programmer's answer?

We don't support that use case.

[–] [email protected] 14 points 4 days ago* (last edited 4 days ago) (4 children)

Still logs the issue

Dev sets status to won't do

Wait 2 months

P1 production issue: Exactly what I logged 2 months ago just written out worse

load more comments (4 replies)
[–] [email protected] 67 points 4 days ago (2 children)

"Works for me and my sister."

[–] [email protected] 27 points 4 days ago (1 children)

Then we'll ship you and your sister.

[–] [email protected] 16 points 4 days ago (1 children)

And that’s how docker was born!

[–] [email protected] 4 points 4 days ago

Either that or incest porn.

load more comments
view more: ‹ prev next ›