Monday, October 23rd, 2006
- Understand what your script is attempting to accomplish, and then script your scripts (in other words, don’t be afraid to psuedocode)
- Understand what the JS libraries are doing for you, otherwise you won’t know where to start when things go wrong
- Use Ajax appropriately with the user experience in mind – avoid the temptation to use it for the sake of showing off
- Set intervals (probably quarterly or semi-annually) to review the scripts you have written, and think about what you would have done differently
- Read the documentation AND source code of the libraries you use
Aaron also stressed unobtrusive JS. Scripts should detect if methods and objects exist before attempting to access them. Testing and tracing tools should be used early and often…and make sure you manage memory leaks.
Posted by Tom Geer at 6:49 pm