Use the Amazon App to scan ISBNs and compare prices.
The Amazon Book Review
Author interviews, book reviews, editors picks, and more. Read it now
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Customers who bought this item also bought
Would you like to tell us about a lower price?
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
I don't mind that author trying to make a buck and his name known, but why in the world so far excellent editorial review at O'Reilly let this book fly (and for that price) is a mystery to me.
Having said that, the bigger blogpost in the middle (chapter 6) is actually quite interesting and although very brief, it somehow fits into the expectations I hoped the book would fulfill. Except it seems to be too brief to me and covers too few patterns.
I would certainly not suggest this buy to be bought by anybody than for complete newbies who for those it lacks a lot of basic introduction. Go and buy Flanagan's Definitive Guide.
There are two serious errors in chapter 4, Functions. The first error is about function declaration statements. The author claims "their definitions cannot be assigned to variables or properties, or appear in function invocations as parameters". I tried in both Chrome and Firebug console, and both proved this statement is incorrect.
There are a lot of nuggets in this book. I particularly like the discussion of variable scope and how you have to apply three different rules, but even then there are cases where scope is ambiguous. Holy cow, what a hot mess is JS. And in a foreach loop having to check if the entity is owned by the set or an interpreter artifact? Really? There's no way to get just the stuff you want? And I love <sarcasm> the way typos don't generate errors but just become new properties of an object. In fact, it seems that nothing generates an error. You really have to watch your code in a JS debugger to know that its working.
The bottom line, for me, from this book is that I can do almost anything I want in JScript and I can do it in any number of different and confusing ways. A diligent, smart programmer who provides their own discipline in design and implementation can write beautiful code. But if someone falls for the dark side and takes the easy approach or uses quirks of the language, then the resulting code could be indecipherable. My own vow: I will never agree to extend or support someone else's JScript until I've had a good long look at it. If I find any little oddities then I will not spend my life force trying to correct it.