JavaScript e oltre 1.000.000 di libri sono disponibili per Amazon Kindle . Maggiori informazioni


oppure
Accedi per attivare gli ordini 1-Click.
oppure
È necessaria l'iscrizione alla prova gratuita di Amazon Prime. Iscriviti al momento del pagamento. Maggiori informazioni
Altre opzioni di acquisto
Ne hai uno da vendere? Vendi i tuoi articoli qui
Inizia a leggere JavaScript su Kindle in meno di un minuto.

Non hai un Kindle? Scopri Kindle, oppure scarica l'applicazione di lettura Kindle GRATUITA.

JavaScript: The Good Parts: Working with the Shallow Grain of JavaScript [Brossura]

Douglas Crockford
5.0 su 5 stelle  Visualizza tutte le recensioni (2 recensioni clienti)
Prezzo: EUR 19,60 Spedizione gratuita. Dettagli
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Disponibilità immediata.
Venduto e spedito da Amazon. Confezione regalo disponibile.
Vuoi la consegna garantita entro lunedì 27 maggio? Ordina entro e scegli la spedizione 1 giorno. Dettagli

Formati

Prezzo Amazon Nuovo a partire da Usato da
Formato Kindle EUR 13,47  
Brossura EUR 19,60  

Spesso comprati insieme

JavaScript: The Good Parts: Working with the Shallow Grain of JavaScript + Javascript: The Definitive Guide + Jquery Pocket Reference
Prezzo per tutti e tre: EUR 60,70

Mostra disponibilità e dettagli di spedizione

Acquista tutti gli articoli selezionati
  • Disponibilità immediata.
    Venduto e spedito da Amazon.it.
    Questo articolo verrà spedito con la spedizione gratuita. Dettagli

  • Javascript: The Definitive Guide EUR 32,68

    Disponibilità immediata.
    Venduto e spedito da Amazon.it.
    Questo articolo verrà spedito con la spedizione gratuita. Dettagli

  • Jquery Pocket Reference EUR 8,42

    Disponibilità immediata.
    Venduto e spedito da Amazon.it.
    Spedizione gratuita disponibile per ordini superiori a EUR 19. Dettagli


Chi ha acquistato questo articolo ha acquistato anche


Dettagli prodotto

  • Brossura: 153 pagine
  • Editore: Oreilly & Associates Inc (maggio 2008)
  • Lingua: Inglese
  • ISBN-10: 0596517742
  • ISBN-13: 978-0596517748
  • Peso di spedizione: 227 g
  • Media recensioni: 5.0 su 5 stelle  Visualizza tutte le recensioni (2 recensioni clienti)

Quali altri articoli acquistano i clienti, dopo aver visualizzato questo articolo?


Recensioni clienti

4 stelle
0
3 stelle
0
2 stelle
0
1 stella
0
5.0 su 5 stelle
5.0 su 5 stelle
Le recensioni più utili
2 di 2 persone hanno trovato utile la seguente recensione
5.0 su 5 stelle Un libro per pochi... 26 agosto 2011
Formato:Brossura
Questo libro è un approfondimento, scritto da uno dei grandi maestri di javascript.
Non va acquistato per imparare javascript dalle base ma va acquistato per rifinire e per rafforzare quello imparato in passato con concetti architetturali molto importanti. Partire con questo libro non è consigliabile. Concludere con questo libro o usarlo come catapulta verso i pattern di javascript è consigliabile. Con lui ho capito che javascript è un linguaggio fenomenale, oltre ad essere quello più maltrattato dai programmatori.
Questa recensione ti è stata utile?
5.0 su 5 stelle il migliore 20 febbraio 2013
Formato:Brossura|Acquisto verificato Amazon
Mi ha aperto gli occhi sul linguaggio, mostrandomi i punti deboli ma anche la sua bellezza nascosta. Il miglior libro su javascript in circolazione.
Questa recensione ti è stata utile?
Le recensioni clienti più utili su Amazon.com (beta)
Amazon.com: 4.2 su 5 stelle  200 recensioni
422 di 431 persone hanno trovato utile la seguente recensione
5.0 su 5 stelle Wish I had this book when I first started Javascript 27 giugno 2008
Di Frodo Baggins - Pubblicato su Amazon.com
Formato:Brossura|Acquisto verificato Amazon
Do you struggle when creating objects in Javascript?
Do you find the syntax to be non-intuitive and frustrating?
Do you know the difference between using a function as an object vs using an object literal?
Do you know how using object literals can simplify your code and create something similar to namespaces?
Do you know how to augment the type system -- for example, if wanted all strings to have a trim() method?
Do you know why the "new" statement is so dangerous? Do you know an alternative that eliminates the use of "new" entirely?

These are some of the topics that the book touches upon.

This book is aimed at someone with intermediate programming experience that wants to know the best way to create and use objects, arrays, types, etc. Crockford takes his experience with Javascript to show you best practices coding techniques and styles to use with Javascript. In addition, the book provides insights into what makes Javascript so confusing and what can be done about it.

You might ask "Isn't this stuff already covered in other books that I have?" The answer is no. For one, most other books use a psuedo-classical coding style (see below) to explain objects that is a source of confusion.

Javascript can be very confusing, especially for programmers who have extensive experience in other C-based languages (like myself). Writing good Javascript that uses objects, methods, etc. is hard. In Javascript, if you want to create objects, use inheritance and create methods, you have several different ways to write your code and it's difficult to know what the strengths and weaknesses of each are.

Crockford explains the problem plainly. Other C-based languages use class inheritance (Crockford calls this classical inheritance). Javascript, on the other hand, is the only popular language that uses prototype inheritance, which does not have classes. However, the syntax which Javascript uses to create object is Java-like (Crockford calls this pseudo-classical syntax). It's confusing, because it keeps you in a class-based frame of mind while working in a language that has no concept of classes.

Clarifying what's going on with the object model is the best part of this book. Crockford also explains other parts of Javascript that can be problematic and the techniques that he prefers for handling them. I don't necessarily agree with all of them, but the important thing is that he explains his reasoning.

To effectively learn Javascript, I recommend that you buy 1) a book that covers the details of the language and can be used as a reference (e.g. Javascript, the Definitive Guide) and 2) Crockford's book. Advanced programmers might also enjoy Pro Javascript Design Patterns, which shows a number of ways to combine Javascript with some of the GoF patterns. I would avoid any cookbook style books on Javascript, because you're better off using YUI, JQuery or one of the other Javascript libraries than writing your own drag-and-drops, calendars, etc.

There are a series of Yahoo! videos by Crockford that mirror the material in this book and can be found as podcasts under YUI Theater. They contain nearly all of the material in the book and probably a little more. Those videos are:

- Douglas Crockford/An Inconvenient API: The Theory of the DOM (3 parts)
- Douglas Crockford/The JavaScript Programming Language (4 parts)
- Douglas Crockford/Advanced JavaScript (3 parts)
- Douglas Crockford/Javascript The Good Parts
99 di 104 persone hanno trovato utile la seguente recensione
5.0 su 5 stelle Beautiful book 17 maggio 2008
Di Ask Bjørn Hansen - Pubblicato su Amazon.com
Formato:Brossura|Acquisto verificato Amazon
This is a beautiful book.

First of all - at only 170 pages it is short. Even though some of the key points are repeated through the book it's dense with information. You don't need any JavaScript experience, but it's not a "beginning programming" book so if you haven't been programming before this is not the right book for you.

Reading this book a couple of times will give you an appreciation for the JavaScript language that you almost certainly didn't have before. It'll give you tools to write better programs that you and others will actually be able to maintain over time.

I've learned lots of little things that I maybe knew from experience, but now I _know_ and I know why.

This book will help you battle with JavaScript rather than against it.
93 di 102 persone hanno trovato utile la seguente recensione
3.0 su 5 stelle Some good data, but scattered and inconsistent, unclear who it's written for. 20 gennaio 2011
Di Brian Sharp - Pubblicato su Amazon.com
Formato:Formato Kindle|Acquisto verificato Amazon
I'm a long-time C, C++, and Java programmer (videogames, predominantly) learning Javascript to do some web work, so I picked up this book because the reviews were good and the notion appealed to me - learn the subset of this rather sloppy language that you can use as a good language.

My TL;DR version of the review: this book is a hodgepodge of different information about the language, but some of it is so complicated it'll go immediately over the heads of new programmers, and then some of it is so mundane (even pedantic, talking about very specific aspects of coding styles) it felt goofy and out of place. It seems to me that any specific individual reading this book won't really find more than one or two chapters very relevant. I give it 3 stars because the useful parts were useful to me, but I skimmed and ignored 80+% of the book.

Crockford's writing is personable and clear, and the book's organization is straightforward. Here's my chapter-by-chapter breakdown. Note that this is all from my perspective, what I personally found useful or not, but my point is, while other readers will certainly disagree with me about what was useful, I have trouble imagining any one person finding more than about 20% of the book useful.

Chapter 1 is an introduction and high-level explanation of the point of the book.

Chapter 2 covers basic grammar and the likes, which was helpful though it's not aimed at any particular familiarity with other languages so it's trying to be comprehensive, which meant that as an experienced programmer in other languages I had to skim it and just look for differences with what I'm already used to.

Chapters 3 and 4 were the most useful parts of the book for me: the section on objects and functions, data scoping and closure, which really takes a new way of thinking if, like me, you have a lot of experience with languages without closure and anonymous functions and the like. Crockford does a good job of explaining this and giving relevant examples. This section was 20% of the book and was the only section I found really useful.

Chapter 5 covers inheritance. He presents two methods, one using new and constructors like one of the languages I'm more used to, and gives a couple reasons to avoid this, and then digs into the prototypal method, which is unfamiliar to me. The problem is that he uses totally abstract examples here - classes representing animals and methods that return their names or the noises they make - and it was very hard for me to relate it to any actual application, and since the prototypal style is a fundamentally different paradigm I don't feel like I really grasped it from his writing. Since he builds a framework of extension methods throughout the book, once I started to lost his train of logic I was utterly lost. And the "meta" nature of javascript, assigning functions to methods that return other functions that wrap functions, I found it easy to get lost.

Chapter 6 covers arrays. If you've used scripting languages this stuff is very simplistic, a stark change from Chapter 5, which is quite sophisticated. Again, my point here - I don't know who would simultaneously understand Chapter 5 and still find anything in Chapter 6 useful.

Chapter 7 is a significant change of direction; it's a long chapter on regular expressions which I skimmed very quickly since I know them from using perl. This part seemed odd, since regular expressions are common to several languages, and there's nothing particularly unique about javascript's usage of them. It felt a bit misplaced in this book. Certainly they're an important part of the language, but again made me wonder: who's the book for?

Chapter 8 is a reference for core API functionality and his extension methods; this feels like stuff I'd just google while coding, not terribly valuable to me personally.

Chapter 9 is a diversion on coding style, and felt wildly out of place and kind of insulting: if this book is for a seasoned programmer this is just going to trigger unpleasant flashbacks to arguments you had back when you were a junior programmer. If you're a new programmer and this stuff is news to you, other chapters in the book are going to be utterly incomprehensible to you.

Chapter 10, "The Beautiful Parts," is all of a page long, but a nice summary of the good aspects of the language.

Appendices A and B cover some of the "Awful & Bad Parts" of javascript in detail; this was the second-most interesting part of the book to me, though it's brief and you've picked it up if you read the rest of the book. Still, definitely value here. Though worth noting: he inserts some more editorializing here, ala Chapter 9 - he calls out some things that aren't specific to javascript, like switch statement fallthrough, as bad parts, which I found annoying. Stick to aspects unique to javascript and point out real dangers instead of offering advice on very broad aspects of coding style, I kept thinking.

Appendix C is about JSLint, the lint for javascript. It was useful only in the sense that I didn't know JSLint existed, and now I do, but then he gives a long swath of what amounts to JSLint documentation, which I have to imagine exists on the JSLint site, and felt like filler.

Appendix D is about JSON and just some reference information about the format. Maybe useful, but no authorial insight, just docs.

Overall, glad I read it, but I was pretty underwhelmed given the generally great reviews of the book on here.

Ricerca articoli simili per categoria