Thank for all! I have read through all message and finally I think that I should not pay to much attention on how to comment my code, indeed I should pay more attention on how to have better structure and make the code itself more easy to read and use algorithm as simple as possible. But I don't think that prevent comment is a good idea, according to one message, no matter how good you set your varible name, it can only show you what is it, but can't tell you why we need it. Besides, comment can let us more easy to link the code with the requirement as well as illustrate the idea of design better than code. The above is my conclusion, what do you think? Carfield Yim wrote:
> As title, which one is better? > Personally, I have draft comment during coding, and make the comment > clear afterward, it is a good practice?
|