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!”