this post was submitted on 22 Jun 2023
443 points (99.1% liked)

Programmer Humor

33603 readers
12 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] DonjonMaister@programming.dev 19 points 2 years ago (3 children)

Stage 4.5: console.log() everything.

[–] zqwzzle@lemmy.ca 11 points 2 years ago (2 children)

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

[–] V699@kbin.social 7 points 2 years ago (1 children)

Race conditions are the worst

[–] zqwzzle@lemmy.ca 1 points 2 years ago

Good ol’ Heisenbugs.

[–] sickmatter@fedia.io 1 points 2 years ago

Especially if logging ends up spreading a global mutex around the log file.

[–] danc4498@lemmy.world 7 points 2 years ago

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

[–] 0x4E4F@sh.itjust.works 4 points 2 years ago* (last edited 2 years ago)

Step 4.6: Get another drive for the logs.