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 (
- add comments
- delete old/untrue comments
Don’t go overboard with the refactoring though: making too many changes can easily introduce new bugs.