Skip to Content
Navigation:

A stick figure smiling

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!

Image of a comic. To read the full HTML alt text, click "read the transcript".

browse more comics! get the zine!
read the transcript!

Messy code is harder to debug.

Illustration of a smiling stick figure with curly hair.
person (thinking): “this function is 100 lines??? who named these variables?!?!” (annotation: it was me)

Doing a tiny bit of refactoring can make things easier, like: - rename variables or functions - format it with a code formatter (go fmt, black, etc.) - add comments - delete old/untrue comments

Don’t go overboard with the refactoring though: making too many changes can easily introduce new bugs.

Saturday Morning Comics!

Want another comic like this in your email every Saturday? Sign up here!

I'll send you one of my favourite comics from my archives every Saturday.
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)