r/ProgrammerHumor • • 26d ago

Meme rareButNotRareEnough

Post image
3.4k Upvotes

41 comments sorted by

239

u/JustinR8 26d ago

“It’s one in a million”

Sir, this software controls a plane’s landing gear

53

u/flerchin 26d ago

The top 5 airlines in the US all fly more than a million flights annually. One in a million would be catastrophic.

32

u/BeardedPokeDragon 26d ago

Have you tried turning it off and back on again

19

u/Alarmed_Fudge_5706 26d ago

QA: mid flight?

Dev with a straight face: Yes

5

u/Harry_Wega 26d ago

Only if the front fell off.

12

u/plumarr 26d ago

Or for a company I worked for:

Sir, this software is used to pay all this country pensions.

3

u/BenL90 26d ago

This happen to Indonesia Airline... Mounting dead toll  is there.. 

2

u/LoyalSol 20d ago

Yes as many people discover. The probability of an event is not an indication of the importance of an event.

Sometimes rare events are the most important things that can happen.

Most of the time a car is driving, it is not crashing. But if you get into a car accident all the safety features are still important.

139

u/ShadowSlayer1441 26d ago

"This issue only occured because the uuid was prime, really what are the chances of that happening again?"

118

u/iggy14750 26d ago

UUID was prime

Alright, who is doing math with your UUID?!

49

u/YeOldeMemeShoppe 26d ago

How else am I supposed to do astrology, aside from dividing the users UUID by the date?

13

u/n00bdragon 26d ago

Some developer somewhere, probably: "Every UUID is unique, so every UUID +1 is also unique and if assigned to a related item allows me to figure out what the original related UUID was."

0

u/Shadow_Thief 26d ago

It is technically a hexadecimal string...

1

u/danielcw189 25d ago

that's just a text representation. UUIDs are often used in that form, but essentially they are 128bit data structures

1

u/Shadow_Thief 25d ago

In the sense that specific bits have specific uses, sure, but it's still ultimately just a number with some dashes in it.

1

u/danielcw189 25d ago

but it's still ultimately just a number with some dashes in it

no, that is just how it is displayed. i.e.: you likely work with the 128bits in memory, not the string representation.

and the dashes are just the most common way to display them

1

u/Shadow_Thief 25d ago edited 25d ago

You'd think that https://en.wikipedia.org/wiki/Universally_unique_identifier#Uses would include examples of that. (I feel the need to point out that this does not disagree with what you said, and there are sections above this one that talk about the MAC address section and the timestamp section.)

But also, it is still represented as a string of hexadecimal characters which inherently makes it math because all numbers are math.

1

u/danielcw189 25d ago

You'd think that https://en.wikipedia.org/wiki/Universally_unique_identifier#Uses would include examples of that

if you mean examples for it being 128bits of data and not its string representation, the first two use cases kinda cover both

a text file like fstab will (of course) use a string representation, but the data structures like the GPT or the filesystems will store them as 128bits of data, not as a string.

14

u/dark4rr0w- 26d ago edited 26d ago

O(1) algo for checking if number is prime

2

u/doubleyewdee 26d ago

I want to hear the cursed lore behind this quote.

1

u/Successful-Active-21 26d ago

the fix was to make the UUID an even number

53

u/Alarmed_Fudge_5706 26d ago

If it can happen, it will happen in prod

16

u/iggy14750 26d ago

That's why Murphy is my back end guy

48

u/kthxb 26d ago

if you have 100 Req/s, this will happen in ~2.8hrs

44

u/doubleyewdee 26d ago

I work on a high volume service. We do about 250k RPS. Someone on a call recently trotted out that "a once-in-a-million bug happens about every four seconds for us." Was a great comment and good framing.

0

u/[deleted] 26d ago

[deleted] — view deleted comment

9

u/Zephaerus 26d ago

Confidently incorrect corrections are my favorite kind of corrections!

The person you’re replying to is correct. If an event happens 1 in a million times and you get 250k tries a second, it will happen every four seconds on average.

What you’re trying to say is that the odds of it happening at least once within a discrete 4s window is ~63%. This isn’t the scenario being discussed. Over time, it can also happen more than once in any given 4s window, and this balances out to the correct average of once every four seconds.

16

u/secondincomm 26d ago

"Its a one in a million chance"

We do millions of transactions every day...

14

u/zenos_dog 26d ago

Runs one billion times a second….

24

u/coriolis7 26d ago

We had an invalid memory state at work (imbedded devices that are supposed to last 20 years on battery alone). I suggested the possibility of a cosmic ray flipping a bit or two.

Lead firmware engineer: “No, that’s like a one in a million event”

Me: “How many of these do we have in the field?”

PM: “We make about 750k a year and have been for the last 12 years”

Me: “…”

6

u/Top-Permit6835 26d ago

I feel like a cosmic ray flipping a bit is way way lower than one in a million though. But the point still stands

1

u/Successful-Active-21 26d ago

1 bit per GB per hour. very scary

12

u/AccNumber77 26d ago

That's why you get someone on your QA team with the uncanny ability to trigger such bugs reliably, worked with a guy like that and it was fucking bizarre how he managed to do it without fail.

5

u/Shawn11564 26d ago

In my recent efforts to fix a bug, I came across a 2 year old closed mr fixing the bug that was closed because it hadn't happened yet so why change anything? By time I got to it we had clients who were effected by the issue for 200+ days

5

u/ChrisBegeman 26d ago

I have definitely learned in software that any bug that can happen, will happen eventually. So always file the defect for any issue you notice and let the project manager decide if it is important or not. Then is is not your fault, they PM decided to release the software with known issues.

1

u/wow343 26d ago

The politics that would happen if we did that!! Lol! Seriously better not to mention it rather than file a bug and have to explain to 3 different layers of management. Then again my software is not life or death by any means! Thank God for that.

3

u/willow-kitty 26d ago

If it's a one in a million thing, you already know a way it can happen.

That might be okay if you're willing to accept the consequences of it does, but the idea that's it's fine because it won't is how you get woken up at 3AM.

2

u/deadbeef4 26d ago • Bravo

Everyone knows a million to one shot comes up nine times out of ten.

2

u/Few_Kitchen_4825 26d ago

No one

The bug at prod:

1

u/Matty_B97 26d ago

One in a million bug meets a million users:

1

u/WeirdTie2290 26d ago

QA: Look. When I configure your software this way. And interfacing system sends this data. Then bad things happen.

Dev: Yeah but this is so unlikely. Nobody configures it like that. And the interfacing system should send correct data.

Prod:

1

u/Majik_Sheff 24d ago

One in a million at a trillion operations/second.