console.log("Does it happen here?")
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
Stage 4.5: console.log() everything.
And then the logging fixes the subtle timing issue causing the problem.
Race conditions are the worst
Good ol’ Heisenbugs.
Especially if logging ends up spreading a global mutex around the log file.
As true as true can ever be
I have some Excel VBA scripting that I've been on 1-4 for a while now, so there's a branch off of 4 that should be "fuck it, here's the workaround" or "that part isn't that important anyway, ignore it".
(it's actually not Excel that's the problem, it's the change to its call to IE that throws up a stupid security warning.)
Oh my god this comment gave me an aneurysm
Every time that last part happens I have to check the proper spelling of Berenstain. I've had some that really seem like they should have been impossible lol
if (0 === 0) {
var_dump($test); die;
}
Ahhhhh, PHP.... 😭
its funny i see this now, after spending 3 hours debugging D:
One of the best pieces of advice I have ever gotten was to build diagnostics first. The time it takes to do will pay for itself 100X over the course of development.
100% unit tests ftw
Hate making them, love them when they are here
My boss does 1 <--> 2 with us over most every bug any of us has ever found. Ticking time-bomb...