James Fisher mentions two things that are often syntax-highlit wrong:
Comments in source code: “The comment is washed out. While the rest of the text exists in black, boldface, and bright colors, the comments fade into the background. […] The implication is obvious: we have collectively decided that the comment is less important than the code.”
Insertions and deletions in diff viewers: “[…] a red line is one that was deleted, and a green line is one that was added. […] Our diff viewer, then, tells us that deletions are bad, dangerous, and possibly an error, while insertions are good, safe, and successful.”
Consult the blog post for the rationales and several instructive illustrations.
This blog post explains what new array methods ECMAScript 6 will bring and how to use them in current browsers.
Note: I’m using the terms constructor and class interchangeably.
WebComponents.org is the home for the community to learn and discuss Web Components.
The site had previously been soft-launched at webcomponents.github.io and is now online at the final URL. It’s good to have a single site with a simple URL where one can look up information related to this important technology. The site’s twitter account is @Web_Components.
Guest blog post by Rodney Rehm
document.currentScript, which this article will use to explain simple techniques to make use of DOM context.