112 points
*

And the worst part is when it actually does and you have no fucking idea what went wrong before.

permalink
report
reply
30 points

The pc had the hiccups and now it’s fine. Problem solved!

permalink
report
parent
reply
8 points

Some times my game engine needs a wake up run, then an actual run.

permalink
report
parent
reply
3 points

Yeah happens from time to time.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
1 point

Blame cosmic rays.

permalink
report
parent
reply
105 points

That’s step zero: rule out black magic

permalink
report
reply
59 points

Those damn cosmic rays flipping my bits

permalink
report
parent
reply
9 points

Please tell me you look skyward, shake your fist and yell damn you!!!

permalink
report
parent
reply
5 points

I wonder if there’s an available OS that parity checks every operation, analogous to what’s planned for Quantum computers.

permalink
report
parent
reply
4 points

Unrelated, but the other day I read that the main computer for core calculation in Fukushima’s nuclear plant used to run a very old CPU with 4 cores. All calculations are done in each core, and the result must be exactly the same. If one of them was different, they knew there was a bit flip, and can discard that one calculation for that one core.

permalink
report
parent
reply
15 points

That feeling when it is, in fact, computer ghosts.

permalink
report
parent
reply
71 points

Me: “Hmm… No… No the code is good, it’s the compiler that’s wrong.”

runs again

permalink
report
reply
38 points
Deleted by creator
permalink
report
parent
reply
12 points

It’ll be done soon, then I can go home. TGIF, am I right?

permalink
report
parent
reply
12 points
*

Yeah. And I can send a quick email to update the team after I get home from my 45 minute commute, then log off and go to the cottage in that cell signal dead spot by the lake.

permalink
report
parent
reply
61 points

Yeah, but sometimes it works.

permalink
report
reply
20 points

It’s even worse then: that means it’s probably a race condition and do you really want to run the risk of having it randomly fail in Production or during an important presentation? Also race conditions generally are way harder to figure out and fix that the more “reliable” kind of bug.

permalink
report
parent
reply
1 point

Or it was an issue with code generation, or something in the environment changed.

permalink
report
parent
reply
9 points

Mmm, race conditions, just like mama used to make.

permalink
report
parent
reply
9 points

Good luck figuring out why it sometimes doesn’t work 🙃

permalink
report
parent
reply
7 points
*

There was that kind of bug in Linux and a person restarted it idk how much (iirc around 2k times) just to debug it.

permalink
report
parent
reply
6 points

This is 100% valid when dealing with code generation sometimes and I hate it

permalink
report
parent
reply
1 point

Legit happens without a race condition if you’ve improperly linked libraries that need to be built in a specific order. I’ve seen more than one solution that needed to be run multiple times, or built project by project, in order to work.

permalink
report
parent
reply
2 points
*

Isn’t that the definition of a race condition, though? In this case, the builds are racing and your success is tied to the builds happening to happen at the right times.

Or do you mean “builds 1 and 2 kick off at the same time, but build 1 fails unless build 2 is done. If you run it twice, build 2 does “no change” and you’re fine”?

Then that’s legit.

permalink
report
parent
reply
1 point

Yup, it’s that second one. 0% chance of success until all dependencies are built, then the final run has a 100% chance to work.

permalink
report
parent
reply

We call this sort of test “fuzzy”. If it’s really bad they call it by my own personal identifier of “unstable”.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
45 points

The first is a surprise; the second is testing.

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

  • 1.9K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments