@egeres@lemmy.world
link
fedilink
2
edit-2
1Y

Stage 7: Who wrote this?

Stage 8: Ah ok… it was me

Stage 4.5: console.log() everything.

@zqwzzle@lemmy.ca
link
fedilink
English
111Y

And then the logging fixes the subtle timing issue causing the problem.

V699
link
fedilink
71Y

Race conditions are the worst

Good ol’ Heisenbugs.

We have logging software built in, but I can never remember how to turn it on, so I just console.log

Step 4.6: Get another drive for the logs.

“I notice that I am confused, and thus that one of my beliefs is fiction.”

PtitSerpent
link
fedilink
31Y

if (0 === 0) {
var_dump($test); die;
}

if ((x != x) || (x == x+1)) then it’s one of those weird numbers

How did that ever work, I’ve been there many times.

ShustOne
link
fedilink
41Y

As true as true can ever be

Rhaedas
link
fedilink
41Y

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

RandomBit
link
fedilink
11Y

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

DarthYodaX
link
fedilink
41Y

My boss does 1 <–> 2 with us over most every bug any of us has ever found. Ticking time-bomb…

Everyone always skips the last step, but that’s where you learn.

z500
link
fedilink
41Y

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

console.log("Does it happen here?")

6 stages of dev grief when I find a bug which doesn’t make sense and report it to the devs. Lol.

Get enough experience and you just have a brief moment of stage 3 as you dive straight to stage 4.

Unless it’s a customer/that-one-guy-at-work (it’s a title, but there’s usually a handful of them) and then there’s this vast stage 0 of back and forth of “are you sure that’s happening, run these commands and paste the entire output to me” to be sure of what they are saying then you jump to stage 3/4.

V699
link
fedilink
31Y

I jump straight to step 6

kriss0706
link
fedilink
41Y

its funny i see this now, after spending 3 hours debugging D:

Create a post

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.
  • 1 user online
  • 158 users / day
  • 317 users / week
  • 704 users / month
  • 2.84K users / 6 months
  • 1 subscriber
  • 1.57K Posts
  • 34.8K Comments
  • Modlog