Comment code while writing it 写代码的同时 ; 完成注释
To restore their activation, just remove the comment code.
需要重新激活代码的时候,只要移除评论代码。
Oftentimes, developers leave themselves a comment in the code, but these are easy to forget.
开发人员时常在代码中留下注释,但是这些注释很容易遗忘。
Comment your code heavily so that at a later date, you can easily remember the reason your source code was written as it is.
要加上足够的注释,这样以后就可以轻松地想起原来编写代码的原因。
So I'm going to comment those out, and let's go down to this piece of code, and uncomment it.
那么我会把这些注释上,让我们看看这段代码,取消注释。
And for reference, incidentally, in case you ever forget what the point of some exercise was, I'll almost always comment the code up top with a quick sentence or two that reminds you what this program does.
顺便作为参考,为了避免我们可能忘记一些代码的意思,我通常会用一两个简单的句子,在上面作出注释,那样会提醒我们这个程序是干嘛的。
OK, let me comment this out, and let's look at this next little piece of code. All right.
好,让我添加一点注释,然后让我们看看,下面的一些代码,好。
应用推荐