File tree Expand file tree Collapse file tree 1 file changed +4
-29
lines changed Expand file tree Collapse file tree 1 file changed +4
-29
lines changed Original file line number Diff line number Diff line change @@ -970,9 +970,9 @@ review.perfReview();
970
970
971
971
## ** Comments**
972
972
973
- ### ビジネスロジックが複雑なものにのみコメントすること
973
+ ### ロジックが複雑なものにのみコメントすること
974
974
975
- コメントは弁明です、必須ではありません。良いコードは * ほとんどが * ドキュメントそのものです 。
975
+ 良いコードはドキュメントそのものです 。
976
976
977
977
** Bad:**
978
978
``` javascript
@@ -1014,9 +1014,9 @@ function hashIt(data) {
1014
1014
```
1015
1015
1016
1016
1017
- ### コメントアウトしたコードをコードベースに残さない
1017
+ ### コメントアウトしたコードを残さない
1018
1018
1019
- バージョン管理があることがその理由です。古いコードは履歴に残しましょう 。
1019
+ バージョン管理があるなら古いコードは履歴に残しましょう 。
1020
1020
1021
1021
** Bad:**
1022
1022
``` javascript
@@ -1032,31 +1032,6 @@ doStuff();
1032
1032
```
1033
1033
1034
1034
1035
- ### 日記のようなコメントは持たない
1036
- 特に日記の様なコメント。
1037
- 履歴を取得するためには ` git log ` を使ってください!
1038
-
1039
- ** Bad:**
1040
- ``` javascript
1041
- /**
1042
- * 2016-12-20: Removed monads, didn't understand them (RM)
1043
- * 2016-10-01: Improved using special monads (JP)
1044
- * 2016-02-03: Removed type-checking (LI)
1045
- * 2015-03-14: Added combine with type-checking (JR)
1046
- */
1047
- function combine (a , b ) {
1048
- return a + b;
1049
- }
1050
- ```
1051
-
1052
- ** Good:**
1053
- ``` javascript
1054
- function combine (a , b ) {
1055
- return a + b;
1056
- }
1057
- ```
1058
-
1059
-
1060
1035
### JavaScriptで書いたコードを公開する際に気をつけること
1061
1036
1062
1037
JavaScriptはブラウザでそのまま実行されるので、書いたコードは丸見えになっています。
You can’t perform that action at this time.
0 commit comments