4
Serious question, why did nobody tell me about code comments?
I spent 3 days last week trying to figure out a script I wrote 2 months ago for a client's inventory system. Took me forever to realize I was looking at the wrong function because I didn't leave any comments. Now I gotta re-learn my own logic every time I open that file. Anyone else waste hours because they skipped the commenting step?
2 comments
Log in to join the discussion
Log In2 Comments
nancy2751d ago
Started writing comments after I found a function called "total_sales" that actually calculated shipping costs. Named it that because I was tired at 2am and thought it was funny. Now every time I open that file I gotta double check it's really the shipping one.
8