🐿️
23

Used to hate using comments in my code until one bug broke me

I spent 3 hours tracking down a logic error in a script I wrote last month because I didn't leave any notes explaining what each section did. Fixed it in 5 minutes after adding comments for every loop and function - never skipping them again. Anyone else have a moment that made you change your coding habits?
2 comments

Log in to join the discussion

Log In
2 Comments
viola_cooper62
Oh man, I feel you so hard on this. Spent a whole afternoon once crying over my own code until I finally added a single comment and saw the problem instantly.
2
angela_park
Been there. It's always the simplest thing.
5