Here's a preview from my zine, The Pocket Guide to Debugging! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!
read the transcript!
Some bug fixes are a little counterintuitive. Otherwise you would have written the code that way in the first place! You might think:
Illustration of a smiling stick figure with curly hair.
person (thinking): “I’ll remember why I added this code, I spent 5 hours this is a debugging it!
this is a trap!!!!!
Adding a comment can help future you (or your coworkers!) avoid accidentally reviving a bug later.
person (thinking): ooh, I could simplify this code!
Illustration of a dancing bug, singing “I’m back!”
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!