What are your “hard rules” about commenting your code?

前端 未结 21 2033
野性不改
野性不改 2020-12-31 16:09

I have seen the other questions but I am still not satisfied with the way this subject is covered.

I would like to extract a distiled list of things

21条回答
  •  感动是毒
    2020-12-31 16:15

    Pre-ambles only; state a class's Single Responsibility, any notes or comments, and change log. As for methods, if any method needs substantial commenting, it is time to refactor.

提交回复
热议问题