Thanks for writing up the Wikis! A few things on the tip of my mind that could be added to the JS style guide:
* Use the || and && shortcuts liberally (e.g. z = x || y; even if x is not a boolean value). Avoid code verbosity such as: if (x) { z = x; } else { z = y; } or z = x ? x : y; * Use strict equals (i.e. "===") to avoid type coercion. On Feb 17, 2008 7:14 PM, Kevin Brown <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I've drawn up some initial style guides based on the current code base as > well as some well-known best practices. I fully expect much debate over > these, so I suggest we hash out these differences on the mailing list and > then update the site accordingly. > > Java: http://cwiki.apache.org/confluence/display/SHINDIGxSITE/Java+Style > > javascript: > http://cwiki.apache.org/confluence/display/SHINDIGxSITE/Javascript+Style > > -- > ~Kevin > > If you received this email by mistake, please delete it, cancel your mail > account, destroy your hard drive, silence any witnesses, and burn down the > building that you're in. >