19
Shower thought about code comments that hit me last night
I was sitting on my couch at 2am debugging a function I wrote three weeks ago and literally had no clue what my own if statement was doing. Turns out I left zero comments because I thought 'the code is self explanatory' but now I'm staring at 30 lines wondering if past me was a genius or an idiot. How do you guys force yourself to comment stuff without slowing down your flow?
2 comments
Log in to join the discussion
Log In2 Comments
joel6031mo ago
Why do people act like writing a line of text is gonna throw off their whole groove, @ruby_rivera76?
6
ruby_rivera761mo ago
Do you really think comments slow you down that much? I used to be the same way, but after a week of trying to figure out my own messy code, I changed my mind. Now I just drop a quick line or two as I go, it saves so much time later.
3