this post was submitted on 18 Aug 2023
11 points (92.3% liked)

Programmer Humor

19512 readers
476 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 11 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

„I pull this lever and suddenly it’s not my problem anymore“

[–] [email protected] 2 points 1 year ago

Step in front of the train: Tell your manager this whole project is dumb, provide a list of reasons why it's a bad idea and explain you are prepared to resign rather than enable its further development.

[–] [email protected] 2 points 1 year ago

MULTI-TRACK DRIFTING!! Which also kills the other lever guy, bonus!

[–] [email protected] 2 points 1 year ago

Someone needs to stop tying people to those train tracks or this trolley problem will never go away.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Napkin math, from the last time I saw this:

I’ve been thinking about this. I estimate a few people per 1000 would do an atrocity for no reason if they were guaranteed no consequences, and the deaths if the switch is pulled are 2^(n-1) for the nth switch. The expected deaths will cross 1 somewhere in the high single-digits, then (since it’s outcome*chance), so the death minimising strategy is actually to pull yours if the chain is at least that long.

Edit: This assumes the length of the chain is variable but finite, and the trolley stops afterwards. If it's infinite obviously you pull the switch.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

If we keep doubling, will I eventually be a person on the tracks? There are a finite number of people, so eventually I would be, right? So, passing the buck would be equivalent to handing my fate to a stranger.

OTOH, if there are an infinite number of people, then this thought experiment is creating people out of thin air. Do these imaginary people's rhetorical lives even matter?

Either way, it seems better to kill 1 person at the start.

[–] [email protected] 1 points 1 year ago

Half-pull the lever so that the points get stuck midway between the two tracks. That should derail the trolley. Someone could conceivably still get hurt, but it improves everyone's chances.

(What? You mean it isn't a literal trolley that has to obey the laws of physics? Damn.)

[–] [email protected] 1 points 1 year ago (1 children)

If we all collectively agree to just pass it on, then either:

  • It's infinite, and it just passes on forever, or...

  • It's not infinite and somebody at the end has no choice, in which case nobody in charge of a lever has killed anyone

So yeah, I say pass it on.

[–] [email protected] 1 points 1 year ago

Except that somewhere down that chain someone is almost certainly going to choose to kill people, so by passing the trolley on down to them you're responsible for killing a lot more than if you ended it right now.

And since every rational person down the line is going to think that, they'll all be itching to pull the "kill" lever first chance they get. So you know that you need to pull the kill lever immediately to minimize the number of deaths.

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

Just keep doubling forever until the number is more than everyone alive, free s-risk emergency button.

[–] [email protected] 1 points 1 year ago

This might cause a buffer overload that crashes the programming and we can escape the matrix together once and for all