Gene said:
Well, I am, but no use ranting. I was expecting more than two
books, and at least one that is not flawed. From what I read of the
links, both are flawed. (Yes, I might be wrong about this, but if I
knew for sure, I would not need that FAQ's answer.)
All programming books I've ever read are flawed in some way or
another. These two seem to be by group consensus here the least
flawed. Flanagan's book really is thorough and its mistakes are not
ones likely to trip up beginners or even intermediate programmers.
(I've only started reading the sixth edition, but I've owned three
previous ones.) Crockford's book is more problematic because it takes
such a strong stand, and implies that anything that's not in his list
of good parts should in all cases be avoided, which is usually not the
case. But I still recommend it to anyone who already understands the
basics of the language as a good starting point for what to avoid.
These days, I'd also suggest, with some caveats, Stefanov's
_Javascript Pattern_ and Zakas' _High Performance Javascript_. I've
heard really good things about Haverbeke _Eloquent Javascript_ as a
beginner's book, so when my 15-year old son was looking to learn some
JS, I suggested it to him, and I think it's working well for him. One
other interesting book is Johansen's _Test Driven JavaScript
Development_, which focuses on writing JS in a very testable manner,
but which might actually work as a tutorial for how to built a medium
sized project -- not a first book, but possibly a good second book.
The trouble with trying to really learn JS from it is that there is no
clear path through all the material if you like to learn these things
through hands-on projects. If you're the type who can read a
reference book through and then start working on a project, referring
back to it as necessary, this is worth your time. But for anyone who
does JS and likes to have reference books handy, this is by far the
best one.
I have strong opinions myself, but I would not presume to wrap
them up with a language. I do not want to buy into a bias. After I
know more, I might round out with such a text, but then, I would know
more what I was getting into.
Any reading you do is going to be by a biased author. Crockford makes
his biases readily apparent, and generally backs them up. This pithy
books sums up much of the strength of the language. I would
definitely recommend reading it. Just remember that you still need to
understand the parts he calls bad, even if only to prevent yourself
from using them, but more likely in order to really understand when
they might still be useful.
[ ... ]
My troll detection is pretty good. For this group, I have one
flagged. Another poster is questionable (not necessarily a troll as
such, but his posts are very difficult to interpret).
Just be careful with this. In this group, the people with the most
off-putting personas are often the most knowledgeable and the most
likely to have truly insightful points to make. There are plenty of
others who are also quite interesting and helpful and not so
obnoxious, but don't discount the annoying ones too much.
-- Scott