|
Re: Quotes from the Chief Engineer and I
Quote:
Originally Posted by King Nerd III
Usually my commenting system is describe variables, say what functions do, and explain certain things. But I went through a phase where I was super commenter, commenting every line! I think I was so tired once I commented a curly bracket. I think it said something like "I don't know why this is here, but I think it ends a function"
Turns out it ended an if statement. Boy was I tired.
|
Too many comments is as bad as too few. Use descriptive variables, function names and constants then comment on the algorithm.
__________________
Fast, cheap or working - pick any two!
|