Javascript Coding rules

Here are some rules I constrain myself to, and that can be useful for others :

  1. Use good code conventions
  2. Check your code: JSLint (javascript tools bundle for textmate make it automatic)
  3. Minification of your code: JSMin
  4. GZIP the code, don’t obfuscate: Minification v. Obfuscation
    You will effectively reduce errors and debugging time by following those advices.

Comments

comments powered by Disqus
Copyright © 2000-2015 - Eric Abouaf - Powered by Hexo