Wednesday, April 20, 2005

bobbyvandersluis.com | Ten good practices for writing JavaScript in 2005

bobbyvandersluis.com | Ten good practices for writing JavaScript in 2005: "19 Apr 05
Ten good practices for writing JavaScript in 2005
1. Make sure your JavaScript code is in balance with its environment

Web Standards are a three-legged stool, or without metaphors, a threesome of technologies that should live together in harmony. (X)HTML adds structure and semantics to your content, CSS is responsible for its presentation, and the DOM provides an interface to add behavior. You keep your Web pages flexible (or: easier to understand, maintain, restyle and update behavior) by separating all three layers; structure and content from presentation, structure and content from behavior and presentation from behavior. To accomplish this, try to avoid inline behavior and use unobtrusive techniques instead."

No comments: