The book is laid out by logical topics (on how to purposely write bad/underhanded code, followed by explanation on why/how they work) instead of keywords (such as IIFEs, automatic semicolon insertion, function calls etc)
disclaimer: I wrote it
EDIT: I skimmed through Speaking JavaScript. It's a bloody good book, much better than mine. You probably should read that
One more EDIT:
Since there was another thread which I gave a coupon for HNers, here's the link:
The best programming book at teaching a practical contemporary language in depth while teaching you to think with it is Metaprogramming Ruby. That's a great read for anyone considering writing a book to teach a programming language. And the best book I've ever read on thinking about programming comprehensively is SICP. Which again, I would recommend reading at least half of if you are going to write a book teaching a language.
Give my book a chance, it is complementary to both SICP and Eloquent JavaScript.
Teachers try to use both methods, but book authors don't have to. Readers are free to learn from any book that suits them.
However, I've read many books with tables of contents that look like that, yet they were actually pleasant to read and much more interesting than their contents implied.
http://rosettacode.org/wiki/Rosetta_Code
And then go straight to the most advanced books I can find. It saves me a lot of time and it's more fun than following yet another book structured in exactly the same way, with pages and pages of text about minor syntactical differences and rare interesting things buried deep inside the book.
absolutely the best
"hello" is Not a Number. "world" is Not a Number.
(Number)"hello" == (Number)"world" returns false.
EDIT: Another reason why this is the case is because IEEE mandates it to be. All numbers in JS are 64 bit floating point numbers. This allows for a crazy amount of NaNs (and oh the fun stuff you can do with that). To be sane, NaNs are not the same when comparing them (there is a lot more subtlety in that - comparing quiet and signalling NaNs, and so on and so forth)
http://stackoverflow.com/questions/1565164/what-is-the-ratio...
Cryptic and ancient?! IEEE 754 is the behavior implemented by the chip in the computer you're using to browser HN with right now.
http://www.comp.nus.edu.sg/~cs1101s/sicp/
SICP in Javascript.While the coding style is a little bit old school this should be linked in every javascript book / blog about learning Javascript. This stuff is just awesome.
I would gladly pay 30 bucks for a revised paper back version.
I will checkout Learning Javascript Design Patterns on your recommendation. I bookmarked that book a while ago but forgot to return and give it a read.
Is it common for O'Reilly authors to release their books this way?
I'm increasingly becoming interested in the prospect of releasing the entire contents of the book (both prose and source code) in IPython Notebook format so that you could read and work in the book seamlessly as "executable paper" like this full-text sampler of Chapter 1 [4] if it were hosted on Wakarii or a similar platform that offers a free tier. It really seems to me that this is the future of tech books: learning platforms with prose and example code integrated seamlessly.
[2] https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Ed...
[3] http://miningthesocialweb.com/category/book-as-a-startup/