- Taschenbuch: 171 Seiten
- Verlag: O'Reilly and Associates; Auflage: 1 (31. Juli 2014)
- Sprache: Englisch
- ISBN-10: 1491904151
- ISBN-13: 978-1491904152
- Größe und/oder Gewicht: 15,2 x 1 x 22,9 cm
- Durchschnittliche Kundenbewertung: 2 Kundenrezensionen
- Amazon Bestseller-Rang: Nr. 39.873 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
You Don't Know JS: this & Object Prototypes (Englisch) Taschenbuch – 31. Juli 2014
|Neu ab||Gebraucht ab|
Wird oft zusammen gekauft
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
Welche anderen Artikel kaufen Kunden, nachdem sie diesen Artikel angesehen haben?
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
(I received an electronic copy of the book as part of OReilly's reader review program.)
If you were even mildly disappointed in the first book in this series 'Scope and Closures', you will pleased to know that this book is head and shoulders better than the first book in this series and really is a shining example of what a good programming book should do is challenge you to think about software design in ways you had not previously really given much thought to.
Not only that, but it's easy to see that Kyle realizes that in non-modern teaching methods, we have mired ourselves down into forcing a mental model over how JS "class-based" inheritance works, and in doing so, have convoluted the subject matter to a point of cyclical redundancy that can leave the student frustrated and bereft of understanding.
I could not more whole-heartedly recommend this book than I already do. It saddens me that finding someone with this kind of teaching talent is as rare as they come today, but in the same swing it makes you appreciate them all the more that you found them.
Following up and building on the previous book in the series, Scope & Closures, Simpson delves into JS' *this* explaining the whys and wherefores of it. If you are about my level then I think you should read the first book before this one because having a better understanding of scope and closure will help in seeing how *this* is implemented in JS. It does not follow scope rules but uses call-sites. Simpson goes over what call-site means and then explains the four binding rules for *this*: default, implicit, explicit (plus its close relative - hard binding) and new; along with some things to watch out for when considering binding rules.
The book then moves on to object prototypes kicking things off with a very good but concise Intro to Classes 101. The JS language doesn't exactly support classes but there workarounds that programmers have been using so Simpson describes them, their benefits and their drawbacks. Here things get a bit murky for me because although I have used classes with Delphi, years ago, I haven't written anything complex enough to need that in JS so I've avoided it. If this part of the book is the selling point for you then I think you'd do well to drop by a bookstore and spend a few minutes scanning those pages before buying. If you absolutely want to use or must use classes in JS then you should just get the book so you'll know its limitations without any varnish by class enthusiasts.
The entire text of the book is available online as a free pdf file to download. I have no idea why O'Reilly allows this for so many of their books now (I do not think the various sites that offer these downloads are pirating anything). In any case, this is a nicely bound book in a convenient size; I've been putting it in my knapsack and reading it on the train to and from work.