Javascript Best Practices Document v1.0



http://www.JavascriptToolbox.com/bestpractices/

I started writing this up as a guide for some people who were looking for
general tips on how to do things the 'right way' with Javascript. Their code
was littered with document.all and eval, for example, and I wanted to create
a practical list of best practices that they could easily put to use.

The above URL is version 1.0 (draft) that resulted. IMO, it is not a
replacement for the FAQ, but a more practical guide for fixing some of the
problems that commonly get pushed into web sites.

Any comments?

PS: Ignore the formatting. It's ugly, for now ;)

PPS: I know that there are exceptions to many of the 'best practices' in
very specific situations when approached by an experienced author, but the
goal of this document is to help the average joe developer fix common
problems and write more acceptable code.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com


.



Relevant Pages

  • Re: Apple Mac OS X Security Recommendations
    ... and winding up doing their day-to-day tasks from a privileged account. ... my point is the NSA's guide is a bit much for the average user. ... | These instructions should only be used by experienced Mac OS X users, ... Everyone else can benefit from some of the best practices ...
    (comp.sys.mac.system)
  • Minimal RHEL4 install
    ... I'm looking for a guide or best practices around building a very ... minimal RHEL4 machine. ... Any tips/sites/guides I can be pointed to? ...
    (RedHat)
  • Re: How to open MS Access database in VB 2005
    ... I expect "ADO and ADO.NET Examples and Best Practices" is a better choice... ... Hitchhiker’s Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Minimal RHEL4 install
    ... I'm looking for a guide or best practices around building a very ... minimal RHEL4 machine. ... Any tips/sites/guides I can be pointed to? ...
    (RedHat)