Rules to Better JavaScript and jQuery
- Do you always use semicolons on your JS file?
- Do you avoid making changes to individual CSS styles using jQuery?
- Do you avoid relying on Javascript for crucial actions?
- Do you avoid using "inherit" value of style.display?
- Do you avoid using document.getElementById(id) and document.all(id) to get a single element, instead use selector $(#id)?
- Do you comment your JavaScript code?
- Do you know not to use the "eval" function?
- Do you know what are the best examples of technically cool jQuery plug-ins?
- Do you know what are the best examples of visually cool jQuery plug-ins?
- Do you know when to use TypeScript (vs JavaScript and CoffeeScript)?
- Do you know which version of jQuery to use?
- Do you know you should not open popup windows and use a javascript modal instead?
- Do you place scripts at the bottom of your page?
- Do you remove "Language" from your script tag?
- Do you separate JavaScript functionality (aka Unobtrusive JavaScript)?
- Do you treat JavaScript like a real language?
- Do you understand that with Angular you read and write to the model... never to the page? (aka Forget about jQuery)
- Do you know the best package manager for Node?
- Do you use Bundling and/or AMD
- Do you use jQuery instead of JavaScript?
- Do you optimise your JavaScript code with Lodash wisely and efficiently?
- Do you use lodash to perform your daily _.foreach?
- Do you use the .ready() function?
- Do you use the best JavaScript libraries?
- Do you use the best Web UI libraries?
- Tools - Do you know the best tools to debug JavaScript?
- Do you know how to link local dependency for npm?