... | @@ -50,7 +50,7 @@ It is important that comments be kept up-to-date. Erroneous comments can make pr |
... | @@ -50,7 +50,7 @@ It is important that comments be kept up-to-date. Erroneous comments can make pr |
|
Make comments meaningful. Focus on what is not immediately visible. Don't waste the reader's time with stuff like
|
|
Make comments meaningful. Focus on what is not immediately visible. Don't waste the reader's time with stuff like
|
|
|
|
|
|
```javascript
|
|
```javascript
|
|
i = 0; // Set i to zero.
|
|
i = 0; // Set i to zero.
|
|
```
|
|
```
|
|
|
|
|
|
Generally use line comments. Save block comments for formal documentation and for commenting out.
|
|
Generally use line comments. Save block comments for formal documentation and for commenting out.
|
... | | ... | |