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.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>