File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -956,3 +956,28 @@ doStuff();
956
956
doStuff ();
957
957
```
958
958
** [ ⬆ back to top] ( #table-of-contents ) **
959
+
960
+ ### Don't have journal comments
961
+ Remember, use version control! There's no need for dead code, commented code,
962
+ and especially journal comments. Use ` git log ` to get history!
963
+
964
+ ** Bad:**
965
+ ``` javascript
966
+ /**
967
+ * 2016-12-20: Removed monads, didn't understand them (RM)
968
+ * 2016-10-01: Improved using special monads (JP)
969
+ * 2016-02-03: Removed type-checking (LI)
970
+ * 2015-03-14: Added combine with type-checking (JR)
971
+ */
972
+ function combine (a , b ) {
973
+ return a + b;
974
+ }
975
+ ```
976
+
977
+ ** Good** :
978
+ ``` javascript
979
+ function combine (a , b ) {
980
+ return a + b;
981
+ }
982
+ ```
983
+ ** [ ⬆ back to top] ( #table-of-contents ) **
You can’t perform that action at this time.
0 commit comments