ProgrammerHumor

isWinningBinaryOrContinous

isWinningBinaryOrContinous

A regular person: sees a joke about racing a shark in a triathlon and laughs.

A programmer: sees the same joke and immediately starts wondering if the win conditon is binary or continous, whether the glass is half full or is just too big, and files a JIRA ticket for “ambiguous requirements in interspecies competitions.”

https://i.redd.it/7r0y2eloz1ef1.png
Reddit

Discussion

qruxxurq

I mean, sequencing.

If the run is first, the shark dies and you win, assuming you don’t stroke out b/c your diet is Cheetos and Mountain Dew and you weigh 350 lbs. If the swim is first, the shark has you for a morning snack.

5 hours ago
Graffers

So it all comes down to the race condition?

4 hours ago
qruxxurq

ISWYDT

4 hours ago
ImperatorUniversum1

And what if the cycling is first? What if Bruce can actually pedal and its neck and neck?

4 hours ago
PM_ME_FIREFLY_QUOTES

Do sharks have necks?

4 hours ago
ImperatorUniversum1

Where else would they wear a tie?

4 hours ago
other_usernames_gone

Surely eating the competitor is against the rules.

As long as you can swim 1500m you'd live. Then can catch up to the shark in the cycling section.

The swim is always first.

4 hours ago
Clen23

ok but then the shark is disqualified for unsportsmalike behavior and they probably give you the medal post-mortem

4 hours ago
Leninus

I dont know, Im not sure what happes when somebody DNFs because of someone else. Well no, you get to go again in that case (or the whole heat), but if you become incapacitated. In 1v1 they'd probably hand you the win but if there are other people then I'm not sure.

2 hours ago
Leninus

I dont know, Im not sure what happes when somebody DNFs because of someone else. Well no, you get to go again in that case (or the whole heat), but if you become incapacitated. In 1v1 they'd probably hand you the win but if there are other people then I'm not sure.

2 hours ago
zas97

Eating other contestants is against the rules I think.

4 hours ago
arvigeus

You are all together at the start line. Shark wins by being the only left competitor.

4 hours ago
EconomyDoctor3287

What if there's a flashflood during the race though? The shark could waddle through the run, while the human gets slowed down by all the water. 

I say the odds are in the sharks favor, because chances of land suddenly getting flooded are higher than the river suddenly drying out. 

4 hours ago
GrinningPariah

If the shark bit you during the swim he'd be immediately disqualified and you'd win by default.

2 hours ago
Blubasur

250 lbs and I will still die

2 hours ago
dashingThroughSnow12

Actually the order matters.

Since swimming is first we’re not getting to the running section.

4 hours ago
NuSk8

But does eating the other competitor and never crossing the finish line count as winning? I think in that scenario they both lose the race

4 hours ago
dashingThroughSnow12

The snark has a full tummy. That feels like a win to it.

3 hours ago
arvigeus

Shark: Try cycling without your FEET!

4 hours ago
Nidoso2

Plot twist: The real winner is the person with the best transition between sports.

4 hours ago
je386

Depends on which discipline comes first - if its swimming, the shark is faster, get you and eats you, so the shark wins ;)

3 hours ago
UnusualAir1

You'd probably do better in a straight up archery competition. :-)

3 hours ago
rover_G
:c::rust::ts::py::r::spring:

In this case winning is ordinal and depends on a sequence of events. W € {1st, 2nd, DNF} and the events = [swim, cycle, run]

2 hours ago
marlotrot

Just saw your Jira, seems you missed to fill-out the acceptance criteria. May I ask you to fill the blanks please?

2 hours ago
DiscombobulatedSun54

It all depends on the order of the races. If swimming is first, the human is going to get eaten and never finish the race. If running is first, the shark is going to suffocate to death. So, either way only one competitor finishes the race.

1 hour ago