And the worst part is when it actually does and you have no fucking idea what went wrong before.
Programmer Humor
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
That's step zero: rule out black magic
Those damn cosmic rays flipping my bits
Please tell me you look skyward, shake your fist and yell damn you!!!!
I wonder if there's an available OS that parity checks every operation, analogous to what's planned for Quantum computers.
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.
That feeling when it is, in fact, computer ghosts.
Me: "Hmm... No... No the code is good, it's the compiler that's wrong."
runs again
Yeah, but sometimes it works.
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.
Good luck figuring out why it sometimes doesn't work 🙃
Mmm, race conditions, just like mama used to make.
There was that kind of bug in Linux and a person restarted it idk how much (iirc around 2k times) just to debug it.
This is 100% valid when dealing with code generation sometimes and I hate it
The first is a surprise; the second is testing.
could be a race condition
Hmm..you may be right. I'll get my Hispanic friend to run it and see if he gets the same result.
It works on my machine
ok, then we ship your machine.
i sometimes do that so i can inspect the error messages on a cleared terminal
Sometimes I forget what I was looking for and have to restart the mental loop when doing this.
One of my old programs produces a broken build unless you then compile it again.
Just had that happen to me today. Setup logging statements and reran the job, and it ran successfully.
I've had that happen, the logging statements stopped a race condition. After I removed them it came back...
Thank you for playing Wing Commander!
======== 37/37 tests passing ========
That's when the real debug session begins
The crazy thing is that sometimes this just works...
If that doesn't work, sometimes your computer just needs a rest. Take the rest of the day off and try it again tomorrow.
I often do this, but I always hit Ctrl-S before running it again. Shamefully, this probably works about 10% of the time. Does that technically count as changing nothing?
That and a make clean can work wonders.
Well, duh! You need to use the right incantations!
it's only dumb til it works
Got to make sure it's not one of those phantom failures.
The definition of insanity is doing the same thing over and over and expecting different results.
Sponsored by QA gang. Gotta make sure it's a 5/5 issue and not just a frequent issue
"Works in my environment."