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

Programmer Humor

32560 readers
540 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 1 year ago (3 children)

Stage 4.5: console.log() everything.

[–] zqwzzle@lemmy.ca 10 points 1 year ago (2 children)

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

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

Race conditions are the worst

[–] zqwzzle@lemmy.ca 1 points 1 year ago

Good ol’ Heisenbugs.

[–] sickmatter@fedia.io 1 points 1 year ago

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

[–] danc4498@lemmy.world 7 points 1 year 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 1 year ago* (last edited 1 year ago)

Step 4.6: Get another drive for the logs.