File tree
Expand file treeCollapse file tree1 file changed
+5
-2
lines changed Expand file treeCollapse file tree1 file changed
+5
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -72,7 +72,10 @@ getUser();
|
72 | 72 | We will read more code than we will ever write. It's important that the code we
|
73 | 73 | do write is readable and searchable. By *not* naming variables that end up
|
74 | 74 | being meaningful for understanding our program, we hurt our readers.
|
75 |
| -Make your names searchable. |
| 75 | +Make your names searchable. Tools like |
| 76 | +[buddy.js](https://.com/danielstjules/buddy.js) and |
| 77 | +[ESLint](https://.com/eslint/eslint/blob/660e0918933e6e7fede26bc675a0763a6b357c94/docs/rules/no-magic-numbers.md) |
| 78 | +can help identify unnamed constants. |
76 | 79 |
|
77 | 80 | **Bad:**
|
78 | 81 | ```javascript
|
@@ -367,7 +370,7 @@ for it and it's quite possibly the worst sin you can commit as a professional
|
367 | 370 | developer. Duplicate code means there's more than one place to alter something
|
368 | 371 | if you need to change some logic. JavaScript is untyped, so it makes having
|
369 | 372 | generic functions quite easy. Take advantage of that! Tools like
|
370 |
| -[jsinpect](https://.com/danielstjules/jsinspect) can help you find duplicate |
| 373 | +[jsinspect](https://.com/danielstjules/jsinspect) can help you find duplicate |
371 | 374 | code eligible for refactoring.
|
372 | 375 |
|
373 | 376 | **Bad:**
|
|
You can’t perform that action at this time.
0 commit comments