Monday, December 6, 2010

Best Practices for Modern Javascript Development

I was browsing the web and came across some nice tips for JavaScript developers.  These set of tips go over some "Best Practices" for writing JavaScript.

Read it here:
http://www.catswhocode.com/blog/best-practices-for-modern-javascript-development

The list includes:

  • Use the correct <script> tag
  • Keep your code in an external file
  • Don't wrap code in HTML comments
  • Use a framework
  • Always declare your variables using var
  • Keep your code unobstructive
  • Include your scripts at the bottom of your HTML files
  • Use JSLint
  • Don't use document.write

No comments:

Post a Comment