There is no such thing as the one right way to write Javascript but there is an infinite number of opportunities to do it wrong. Dirk Ginader is showing Best Practices he's been using and constantly developing for many years at Yahoo: A comprehensive set of tips and tricks on how to write Javascript in a maintainable, understandable, accessible, internationalized, extendable and speedy way.