- Taschenbuch: 552 Seiten
- Verlag: O'Reilly and Associates; Auflage: 1 (18. August 2010)
- Sprache: Englisch
- ISBN-10: 0596806132
- ISBN-13: 978-0596806132
- Größe und/oder Gewicht: 17,5 x 3,3 x 23,1 cm
- Durchschnittliche Kundenbewertung: Schreiben Sie die erste Bewertung
- Amazon Bestseller-Rang: Nr. 309.976 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
Kunden, die diesen Artikel gekauft haben, kauften auch
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Über den Autor und weitere Mitwirkende
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
One bit of advice if you are like me when you get a reference collection of this sort: I immediately flip through the table of contents or the index to get to whatever topic I am currently obsessing on.
In the case of this book, you may want to spend a few minutes in the oft-ignored preface. It contains some noteworthy information on the author's approach. Specifically:
"Many of the examples won't work with IE6. Before I even began the book I decided not to provide support for IE6--including any workaround code."
The author is a bit more forgiving in the case of IE7: "Where IE7 doesn't work, either I provide IE7-specific workarounds in comments in the example code you can download, or I make a note about nonsupport in the recipe--or both."
I work on teams developing browser-based applications for the real world, so IE6 is still absolutely relevant to me. In fact, the corporation for which I honestly sweat is itself "standardized" on IE6 for all employees. Even so, I still recommend this book because of the relevancy of the examples and its forward-looking approach.
The fact that the code download file is about 63 megs compressed should give an idea of how much is contained in this big store of scripting knowledge.
As a cookbook, the book follows a Problem, Solution, Discussion format. The problems addressed are grounded in the real world and the solutions vary from very simple to rather complex. The discussion provides in depth information about the solution and sometimes includes alternatives. Of particular interest to me on the first reading were the chapters on event handling, form elements, and persistence. I was also pleased that the solutions addressed handling the current versions of the four major browsers.
As a UI developer, I've found the book a very good casual reading for me to get up to speed with the new APIs and trends and refresh my knowledge about the idiosyncracy of the language. The code snippets in the book are very complete and could be really handy to tackle some of the real-world problems.
Like other cookbooks in the O'Reilly library, this one is organized as a series of specific problems, with their solutions neatly presented and grouped into the major chapters. Each solution has a discussion to flesh out the details. The website has downloadable copies of the examples in the book, which I used to test out the various recipes. ECMAScript 5 is fairly new, and HTML5 is still under development, so I made sure I had the latest stable versions of the major browsers (Firefox, Google Chrome, Internet Explorer, Opera, and Safari) to see how they would cope. The HTML5 features are very sparsely supported as of yet, so those portions of the book should be considered more of a sampling of things to come rather than a definitive set of solutions.
While much of the book is applicable to today's browsers, there is a lot of coverage of the new capabilities made available in the new HTML5 specifications. Unfortunately, most browsers either do not support, or only partially support these features, so the information is only useful as a "taste of things to come".
These misunderstanding also lead to bad practices, like frequently using the Array constructor -- something that should almost never be used. There are also a few cases of implicit string evals, like passing a string to setTimeout. In some cases where a regular expression is expected, a plain string is passed instead, which will be constantly recompiled into a regular expression object at runtime.
Finally, the code examples don't seem to follow any consistent style. Indentation and brace placement varies from chapter to chapter. It makes the book look very amateur.