News for hackers. Stuff that matters.
Re:Google JavaScript style guidelines by andreyf on Saturday July 17, 2010 @04:59PM (#1524627)
I wonder what an IDE that enforces all of these guidelines would be like?
Re:Google JavaScript style guidelines by riprock on Saturday July 17, 2010 @05:33PM (#1524684)
While it doesn't enforce the guidelines, their Closure Compiler enforces the variable types and encapsulations declared in the JSDoc comments with warnings. http://code.google.com/closure/compiler/

On another note, a Google engineer argues against Crockford's arguments for functional inheritance while pitching the benefits of the Closure Compiler and Library: http://www.bolinfest.com/javascript/inheritance.php I find his points are well made.

Re:Google JavaScript style guidelines by gmosx on Sunday July 18, 2010 @05:34PM (#1526789)
Also check out Bolin's "Closure: The definitive guide" book, available as a rough cut. A great book indeed.
Re:Google JavaScript style guidelines by goodside on Saturday July 17, 2010 @05:20PM (#1524665)
If guidelines were meant to be enforced, they'd be syntax.
Re:Google JavaScript style guidelines by pgbovine on Saturday July 17, 2010 @07:22PM (#1524853)
not necessarily ... official language standards bodies might make decisions much more slowly than individual hackers or groups, and even when a feature is officially baked into a new version of the syntax, it might take compilers/interpreters several more years to all implement them properly. there's definitely a need for good lightweight static checking of guidelines in IDEs
Re:Google JavaScript style guidelines by maw on Saturday July 17, 2010 @09:25PM (#1524998)
No, because guidelines can be overridden when there's a good case for doing so. Not so with syntax.
Re:Google JavaScript style guidelines by j_baker on Saturday July 17, 2010 @11:11PM (#1525148)
Agreed. "Style is only necessary where understanding is lacking." - Doug Hoyte
Re:Google JavaScript style guidelines by kwamenum86 on Saturday July 17, 2010 @05:29PM (#1524681)
well said
Re:Google JavaScript style guidelines by banuelios on Saturday July 17, 2010 @05:30PM (#1524683)
You don't need an IDE for that, but some code analyzers do give you hints/warnings. There's something for Python (google it)