Site Menu

Responsible JavaScript for the Enterprise Guidelines

this is the beginning of a comprehensive list of guidelines...details to come

  1. Reduce or Eliminate Global Variables
  2. Use Object Detection Over Browser Detection
  3. NameSpace your Functions
  4. Use Object Literal Notation
  5. Write Unobtrusive JavaScript
  6. Practice Graceful Degradation and Progressive Enhancement
  7. Make Use of DOM Helper Functions
  8. Create an Event Plan
  9. Handle Errors Properly
  10. Use Singleton Classes for Utility Functions
  11. Use Factory Design Patterns for Widgets
  12. Reduce Code Through Inheritance
  13. Use the Prototype Property