Leanpub Header

Skip to main content

Il piccolo libro di JavaScript

La domanda di sviluppatori JavaScript sul mercato cresce rapidamente. Ma non basta più jQuery per superare le interviste tecniche. Lo sviluppatore JavaScript moderno deve padroneggiare con maestria le parti "strane" del linguaggio. Il piccolo libro di JavaScript ti porterà da 0 a 100, alla scoperta di closures, event loop, prototype e molto altro.

Minimum price

Free!

$9.99

You pay

$9.99

Author earns

$7.99
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
194
Pages
37,034Words
About

About

About the Book

Studiare JavaScript non significa solo conoscere variabili, funzioni ed un pò di jQuery. JavaScript è infatti pieno di "cose strane". Lo sviluppatore JavaScript moderno deve padroneggiare queste particolarità del linguaggio ed essere in grado di sfruttarle quando serve.

Il Piccolo Libro di JavaScript è un manuale per le parti più strane e complicate del linguaggio che ti porterà da 0 a 100, alla scoperta di closures, event loop, prototype e molto altro.

Il piccolo libro di JavaScript è organizzato in tre parti. Nella prima parte vedremo il funzionamento dei motori JavaScript, che sono alla base dei moderni browser. La prima parte contiene i capitoli sugli aspetti più complicati del linguaggio come closures, prototype e this. Ogni capitolo è corredato anche da test di autovalutazione, utili per cementare i concetti.

La seconda parte invece è dedicata ad esercizi pratici con JavaScript ed il DOM, e molte pagine sono dedicate al refactoring ed all'organizzazione del codice. La terza e ultima parte contiene le soluzioni alle domande di ogni capitolo oltre a varie ed eventuali aggiunte future.

Il libro contiene anche molti esercizi da cui potrai attingere giorno per giorno per rinforzare le tue skills.

Share this book

Author

About the Author

Valentino Gagliardi

I've been in love with computers since I was 6 years old. In 1999 I was creating the first HTML pages and from there the web became my life. Today I help busy companies to embrace this crazy modern JavaScript stuff. 

Besides JavaScript I'm also active in the Python community. I serve as a coach for Django Girls, I speak at Python meetups and Pycon Italia. In my spare time you can find me in the countryside near Siena.

Contents

Table of Contents

Intro. Qualche parola su questo libro

  1. Struttura del libro
  2. A chi è rivolto questo libro?
  3. Convenzioni tipografiche
  4. Come seguire gli esempi del libro?
  5. Errata e altro
  6. Qualche parola su di me
  7. Ringraziamenti
  8. Parte 1 - Le parti “strane” di JavaScript

Capitolo 1. Per iniziare

  1. Cos’è JavaScript?
  2. A cosa serve JavaScript?
  3. Cosa posso costruire con JavaScript?
  4. Perché dovrei studiare JavaScript?
  5. React, Redux, ed ES6
  6. Devo studiare anche jQuery?
  7. ECMAScript, ES5, ES6 e altri termini tecnici

Capitolo 2. Prologo: i fondamenti di JavaScript.

  1. Stringhe, numeri, array e variabili
  2. Le funzioni in JavaScript
  3. Che cosa significa firma di una funzione?
  4. Metodi o funzioni?
  5. Uno sguardo veloce a ECMAScript 2015

Capitolo 3. Come funzionano i motori JavaScript?

  1. I motori JavaScript
  2. Global Memory nei motori JavaScript
  3. Global Execution Context e Call Stack
  4. JavaScript asincrono, Callback Queue ed Event Loop
  5. Che cosa significa REST API?
  6. Callback hell e Promises
  7. Promises e microtask queue
  8. La gestione degli errori con le Promises
  9. Metodi statici e Promise combinators
  10. Import dinamici e code splitting
  11. Da Promise ad async/await
  12. Sommario del capitolo

Capitolo 4. Closures, variabili, e affini

  1. Le closures in JavaScript
  2. Variabili globali “accidentali” in JavaScript
  3. Cosa significa hoisting in JavaScript?
  4. Hoisting in JavaScript: let e const
  5. Variabili globali e hoisting
  6. Sommario del capitolo

Capitolo 5. Tutto è un oggetto (o quasi)

  1. JavaScript e l’illusione delle classi
  2. JavaScript e Object.prototype
  3. JavaScript e la keyword new
  4. Qualche parola su toString
  5. Sommario del capitolo

Capitolo 6. This in JavaScript

  1. JavaScript: alla scoperta di “this”
  2. Regola numero 1 per il this in JavaScript: default binding
  3. Regola numero 2 per il this in JavaScript: implicit binding
  4. Regola numero 3 per il this in JavaScript: explicit binding
  5. Regola numero 4 per il this in JavaScript: new binding
  6. Le arrow functions e this
  7. Sommario del capitolo

Capitolo 7. Tipi e conversione in JavaScript.

  1. Tipi e primitive
  2. Quando un numero diventa una stringa
  3. Che cosa significa [object Object]?
  4. Non sono un numero!
  5. Uguale uguale oppure uguale uguale uguale?
  6. Primitive e oggetti
  7. Ricordi new in JavaScript?
  8. Sommario del capitolo
  9. Parte 2 - Lavorare con JavaScript nel browser

Capitolo 8. Modellare l’HTML con JavaScript.

  1. Il Document Object Model e la manipolazione del DOM
  2. Generare tabelle HTML con JavaScript
  3. Sommario del capitolo

Capitolo 9. Refactoring ed organizzazione del codice

  1. Refactoring da ES5 ad ES6
  2. Refactoring da codice procedurale a modulo
  3. Stili diversi ma risultato uguale: da modulo a prototype
  4. Da prototype a classi
  5. Sommario del capitolo

Capitolo 10. Lavorare con JavaScript asincrono.

  1. REST API ed XMLHttpRequest
  2. Il DOM e gli eventi
  3. XMLHttpRequest in azione
  4. Generare liste di elementi HTML con JavaScript
  5. L’evoluzione di JavaScript asincrono: da XMLHttpRequest a Fetch
  6. La gestione degli errori con Fetch
  7. Fetch con Async/Await
  8. Sommario del capitolo

Capitolo 11. JavaScript e i form.

  1. Alla riscoperta dei form HTML
  2. I form HTML in azione
  3. Estrarre dati da un form HTML
  4. Event listeners e this
  5. Fetch e richieste POST
  6. Reset dei form HTML e async/await
  7. Sommario del capitolo
  8. Parte 3 - Appendici

Soluzioni alle domande

  1. Capitolo 3. Come funzionano i motori JavaScript?
  2. Capitolo 4. Closures, variabili, e affini
  3. Capitolo 5. JavaScript e i prototipi
  4. Capitolo 6. this in JavaScript
  5. Capitolo 7. La conversione dei tipi in JavaScript
  6. Capitolo 8. Lavorare con JavaScript nel browser
  7. Capitolo 9. Refactoring ed organizzazione del codice
  8. Capitolo 10. Lavorare con JavaScript asincrono
  9. Capitolo 11. JavaScript e i form

Changelog

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub