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!
If your program already has tests, adding a failing test is a great way to work on your bug!
Illustration of a smiling stick figure with curly hair.
person (thinking): this function should return X, but it’s returning Y
- it forces you to pinpoint what exactly the bug is
- it’s easy to tell when you’ve fixed it (the test passes!)
- you can keep the test to make sure the bug doesn’t come back
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!