JavaScript Best Practices by Christian Heilman

christian heilman mozilla

The following is a presentation of well thought-out JavaScript tips and best practices by Christian Heilmann.

His tips include:

  • Make it understandable
  • Avoid globals
  • Stick to a strict coding style
  • Comment as much as needed but not more
  • Avoid mixing with other technologies
  • Use shortcut notations
  • Modularize
  • Enhance progressively
  • Allow for configuration and translation
  • Avoid heavy nesting
  • Optimize loops
  • Keep DOM access to a minimum
  • Don’t yield to browser whims
  • Don’t trust any data
  • Add functionality with JavaScript, not content
  • Build on the shoulders of giants
  • Development code is not live code
Mike The Situation

Mike The Situation

Geek Master at Geekology
Master of programming and general geekness.
Mike The Situation
About Mike The Situation
Master of programming and general geekness.

No Comments, Be The First!

Your email address will not be published.