Potrai iniziare a leggere JavaScript sul tuo Kindle tra meno di un minuto. Non possiedi un Kindle? Scopri Kindle.

Invia a Kindle o a un altro dispositivo

 
 
 

Prova gratis

Leggi gratuitamente l'inizio di questo eBook

Invia a Kindle o a un altro dispositivo

Leggi gli eBook sul computer o altri dispositivi portatili con le Applicazioni di lettura Kindle gratuite.
JavaScript: The Good Parts: Working with the Shallow Grain of JavaScript
 
Visualizza l'immagine in formato grande
 

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

Douglas Crockford
5.0 su 5 stelle  Visualizza tutte le recensioni (2 recensioni clienti)

Prezzo edizione digitale: EUR 19,01 Cos'è?
Prezzo Copertina Ed. Cartacea: EUR 23,82
Prezzo Kindle: EUR 13,31 include IVA (dove applicabile) e il download wireless gratuito con Amazon Whispernet
Risparmi: EUR 10,51 (44%)

Formati

Prezzo Amazon Nuovo a partire da Usato da
Formato Kindle EUR 13,31  
Brossura EUR 19,66  
Scopri come risparmiare fino all'80% su un titolo diverso ogni giorno
Iscriviti alla Newsletter dell'offerta lampo Kindle per ricevere direttamente nella tua casella di posta elettronica l'e-mail con l'offerta del giorno e non perdere nemmeno un titolo in promozione. Scopri di più

Chi ha acquistato questo articolo ha acquistato anche


Descrizione prodotto

Sinossi

Most programming languages contain good and bad parts, but JavaScript has more than its share of the bad, having been developed and released in a hurry before it could be refined. This authoritative book scrapes away these bad features to reveal a subset of JavaScript that's more reliable, readable, and maintainable than the language as a whole-a subset you can use to create truly extensible and efficient code.


Considered the JavaScript expert by many people in the development community, author Douglas Crockford identifies the abundance of good ideas that make JavaScript an outstanding object-oriented programming language-ideas such as functions, loose typing, dynamic objects, and an expressive object literal notation. Unfortunately, these good ideas are mixed in with bad and downright awful ideas, like a programming model based on global variables.


When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. In JavaScript: The Good Parts, Crockford finally digs through the steaming pile of good intentions and blunders to give you a detailed look at all the genuinely elegant parts of JavaScript, including:

  • Syntax

  • Objects

  • Functions

  • Inheritance

  • Arrays

  • Regular expressions

  • Methods

  • Style

  • Beautiful features

The real beauty? As you move ahead with the subset of JavaScript that this book presents, you'll also sidestep the need to unlearn all the bad parts. Of course, if you want to find out more about the bad parts and how to use them badly, simply consult any other JavaScript book.


With JavaScript: The Good Parts, you'll discover a beautiful, elegant, lightweight and highly expressive language that lets you create effective code, whether you're managing object libraries or just trying to get Ajax to run fast. If you develop sites or applications for the Web, this book is an absolute must.


Dettagli prodotto

  • Formato: Formato Kindle
  • Dimensioni file: 1054 KB
  • Lunghezza stampa: 176
  • Utilizzo simultaneo di dispositivi: illimitato
  • Editore: Yahoo Press; 1 edizione (17 dicembre 2008)
  • Venduto da: Amazon Media EU S.à r.l.
  • Lingua: Inglese
  • ASIN: B0026OR2ZY
  • Da testo a voce: Abilitato
  • X-Ray: Abilitato
  • Media recensioni: 5.0 su 5 stelle  Visualizza tutte le recensioni (2 recensioni clienti)
  • Posizione nella classifica Bestseller di Amazon: #26.115 a pagamento nel Kindle Store (Visualizza i Top 100 a pagamento nella categoria Kindle Store)

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  206 recensioni
426 di 436 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
102 di 108 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.
97 di 107 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.

Discussioni clienti

Forum su questo prodotto
Discussione Risposte Ultimo post
Nessuna discussione

Poni domande, condividi opinioni, raccogli informazioni
Inizia una nuova discussione
Argomento:
Primo post:
Dovrai effettuare l'accesso
 

   


Ricerca articoli simili per categoria