G
Garrett Smith
Douglas Crockford is a good speaker. Some of the things in his book are
clearly wrong. The lint tool has way too much subjectivity baked in,
reporting errors for perfectly valid EcmaScript programs, and still
calls FunctionDeclaration a function statement.
In his presentations, Crockford has explained some closure patterns. I
have seen first hand really bad usage of the patterns that made the code
worse than it would hvae been otherwise, and the developers directly
attributed the usage to Crockford advice. So the patterns themselves are
not bad or good; they're patterns.
I guess it is easier to show the mechanics of how a closure pattern
works than is to show what not to do with that pattern.
I do not know if the factual part of that statement is correct.
I know that Crockford opposed ES4, but I do not know if he actually
killed it.
clearly wrong. The lint tool has way too much subjectivity baked in,
reporting errors for perfectly valid EcmaScript programs, and still
calls FunctionDeclaration a function statement.
I don't think Crockford was or is as involved with YUI! as you think.
From what I understand his role was as a resource to the YUI! team.
Crockford's legacy is that he used good taste to choose good ideas
from how Scheme is used (lexical closures for message passing OOP and
s-expressions for data transport in the form of JSON), ideas discussed
on comp.lang.javascript, some of his own ideas about how to fit those
ideas together, and spread those ideas. He is a teacher and as a
teacher he has improved the overall quality of JavaScript programming
on the web.
In his presentations, Crockford has explained some closure patterns. I
have seen first hand really bad usage of the patterns that made the code
worse than it would hvae been otherwise, and the developers directly
attributed the usage to Crockford advice. So the patterns themselves are
not bad or good; they're patterns.
I guess it is easier to show the mechanics of how a closure pattern
works than is to show what not to do with that pattern.
And he killed ES4 which seems to have been the right choice.
I do not know if the factual part of that statement is correct.
I know that Crockford opposed ES4, but I do not know if he actually
killed it.