Javascript best practices
Opened this issue · 0 comments
asdt560 commented
- Strong type checks: used strong type checks consistently through the code.
- Variables: variables named mostly in sensible ways, some of them might be too detailed or not detailed enough (mostly the latter). targeter.js display.js
- Functions: names could be more descriptive. Some of them may have more actions inside them than they should. targeter.js
- Conditionals: negative conditionals avoided, should use conditional shorthands always. display.js complete.js
- Classes: used classes.
- Avoid in general: Repeated myself often when I was not sure how to otherwise proceed.class.jsdisplay.js