File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ getUser();
7272We will read more code than we will ever write. It's important that the code we
7373do write is readable and searchable. By * not* naming variables that end up
7474being 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://github.com/danielstjules/buddy.js ) and
77+ [ ESLint] ( https://github.com/eslint/eslint/blob/660e0918933e6e7fede26bc675a0763a6b357c94/docs/rules/no-magic-numbers.md )
78+ can help identify unnamed constants.
7679
7780** Bad:**
7881``` javascript
@@ -367,7 +370,7 @@ for it and it's quite possibly the worst sin you can commit as a professional
367370developer. Duplicate code means there's more than one place to alter something
368371if you need to change some logic. JavaScript is untyped, so it makes having
369372generic functions quite easy. Take advantage of that! Tools like
370- [ jsinpect ] ( https://github.com/danielstjules/jsinspect ) can help you find duplicate
373+ [ jsinspect ] ( https://github.com/danielstjules/jsinspect ) can help you find duplicate
371374code eligible for refactoring.
372375
373376** Bad:**
You can’t perform that action at this time.
0 commit comments