SlideShare a Scribd company logo
Guida galattica a Javascript
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
a cura di Roberto Mapelli
Presentation
Context
Things to know
Live Coding
Real life examples
Repository & Questions
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
00
00 - Ciao!
● Roberto Mapelli
● Software Developer
● JS addict
● Cat person
● In TOP da Febbraio 2018
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
01.1 - Context
01.2 - Wrap it up
01
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
01.1 - Context
01
● Javascript
● Jquery
● React.js
● Node.js
● Vue.js
● Vanilla
● ES5 vs ES6
● ...
Don’t Panic!
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
01.2 - Wrap it up
01
FE BE
jQuery
React.js
Polymer
Vue.js
Angular
Node.js
Loopback
Express
Koa
Es 5, 6, ...
“vanilla
Javascript”
Meteor.js
Si ma …
● Babel
● Wepack
● Browserify
● Gulp
● Grunt
● Npm
● Yarn
● …
transpiler
Bundlers
Task
runners
Gestori
Pacchetti
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
02.1 - Things to know
02.2 - Big question
02
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
02.1 - Things to know
● Linguaggio di scripting
● Orientato al funzionale
● Molti costrutti comuni a
BE e FE
● Linter con diversi dialetti
● Librerie di test
● Evoluzione continua
● Google, Amazon ,
Facebook, Netflix, ...
● MDN - La Salvezza!
02
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
01.2 - Big Question
Perché Javascript?
Isn't it enough to see that a garden is beautiful without having to believe that
there are fairies at the bottom of it too?
02
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
03 - Live Coding
Browser FTW
03
● Aprite Chrome
● Cliccate su tre puntini verticali in
altro a destra
○ Altri strumenti
■ Strumenti per
sviluppatori
● Cliccate sulla tab Sources
○ Snippets
■ New snippet
● https://codesandbox.io/
● https://repl.it/languages/javascript
● Node.js REPL
Alternative
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
03.1 - Var, Let, Const
03.1
● (Im)mutabilità
● Scope binding
● Readibility
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
03.2 - Arrays
03.2
Nuove funzioni con paradigma funzionale
● Filter: restituisce un sottoinsieme della
collezione iniziale basandosi su un
predicato
● Map: restituisce una collezione in cui
gli elementi sono modificati
● Reduce: Restituisce una collezione
ridotta ad un valore finale
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
03.3 - Objects
03.3
Tipo da cui estendono, tra gli altri, gli Array.
Funzionano per riferimento, cioè si lavora
sempre sul contenuto della locazione di
memoria dove è memorizzato il dato.
Would it save you a lot of time if I just gave up and went mad now?
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
03.4 - Promise
03.4
Nascono per evitare di incappare nel
callback hell, rendendo il codice più leggibile
e più controllabile.
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
04 - Examples
Let & const
Write a program that prints the mean between 3 numbers. Then subtract to one of the numbers the value of
the mean and print that value.
Arrays
Write a program that prints the mean between an array of numbers.
Write a program that prints the mean between only the numbers in an array like [1, true, "test", undefined, 3 ,
null].
Find a way to create an array of only even numbers using just 1 line of code.
Objects
Create a Hero object having the following properties: firstName, lastName, age, car each set to null.
Create a Car object storing the model and the plate.
Create two Hero objects and assign the car object of before
Change the car model and plate properties. What happened?
04
#TOPWorkshop
Guida galattica a Javascript
00
01
02
03
04
05
05 - Repository & Questions
https://github.com/AtrumSaurus/hitchhikers-guide-to-javascript05
So long, and thanks for all the fish

More Related Content

PDF
Intro to JavaScript
PPTX
Corso js and angular
PDF
EcmaScript 6 & 7
PDF
TypeScript, ovvero JavaScript che "non si rompe"
PDF
Acadevmy - ES6 Modern JS Today
PDF
Introduzione ad ECMAScript 6 (ES6) e TypeScript
PDF
Javascript - 4 | WebMaster & WebDesigner
PDF
Introduzione a java script
Intro to JavaScript
Corso js and angular
EcmaScript 6 & 7
TypeScript, ovvero JavaScript che "non si rompe"
Acadevmy - ES6 Modern JS Today
Introduzione ad ECMAScript 6 (ES6) e TypeScript
Javascript - 4 | WebMaster & WebDesigner
Introduzione a java script

Similar to Guida galattica a Javascript (12)

PPTX
PDF
Introduzione a JavaScript
PDF
Sviluppo Web con React e Delphi - Seminario Delphi Day 2016, Piacenza
PDF
Slide evento Code Refactoring JavaScript
PPTX
Lo sai che si può fare DDD in Javascript grazie a Typescript? Visual Studio e...
PDF
15 concetti importanti su javascript
PDF
Acadevmy - GraphQL & Angular: Tutto il REST è noia!
PDF
Introduzione ad angular 7/8
PDF
Introduzione a node.js
PDF
Introduzione a Node.js
PPTX
Javascript avanzato: sfruttare al massimo il web
PDF
Corso avanzato di Tecnologie WEB - jquery e d3js
Introduzione a JavaScript
Sviluppo Web con React e Delphi - Seminario Delphi Day 2016, Piacenza
Slide evento Code Refactoring JavaScript
Lo sai che si può fare DDD in Javascript grazie a Typescript? Visual Studio e...
15 concetti importanti su javascript
Acadevmy - GraphQL & Angular: Tutto il REST è noia!
Introduzione ad angular 7/8
Introduzione a node.js
Introduzione a Node.js
Javascript avanzato: sfruttare al massimo il web
Corso avanzato di Tecnologie WEB - jquery e d3js
Ad

More from ThinkOpen (20)

PDF
Discover Facilitation: gestire le riunioni in modo efficace
PDF
Infrastructure as a code: a cloud approach
PDF
Smart Signage: la nuova digital experience
PDF
I Graph Database: analisi del comportamento degli utenti
PDF
2019: Odissea nell'e-commerce
PDF
Java 8 -12: da Oracle a Eclipse. Due anni e una rivoluzione
PDF
Amazon Alexa vs Google Home. Quale scegliere? Funzionalità e usi
PDF
Amazon Web Services - Le potenzialità di AWS e il mondo di Amazon Alexa by Ni...
PPTX
Polymer 3.0 by Michele Gallotti
PDF
"Java 8, Lambda e la programmazione funzionale" by Theodor Dumitrescu
PDF
"Odoo: l'open source che fa tremare SAP" by Davide Davin e Nicola Napolitano
PDF
"Configuration Manager: il ruolo nel ciclo di vita del software" by Omar Rossini
PDF
"Google Home: how to make Google do it" by Theodor Dumitrescu e Gianfranco Bo...
PDF
"ThinkOpen Agile Days - #Day3" by Donato Andrisani e Giuseppe Trotta
PDF
"Reactive programming" by Theodor Dumitrescu & Gianfranco Bottiglieri
PDF
"GDPR: cos'è e come funziona" by Francesco Puglisi
PDF
"ThinkOpen Agile Days - #Day2" by Donato Andrisani e Giuseppe Trotta
PDF
"ThinkOpen Agile Days - #Day" by Giuseppe Trotta
PDF
"React Native" by Vanessa Leo e Roberto Brogi
PDF
"How to... React" by Luca Perna
Discover Facilitation: gestire le riunioni in modo efficace
Infrastructure as a code: a cloud approach
Smart Signage: la nuova digital experience
I Graph Database: analisi del comportamento degli utenti
2019: Odissea nell'e-commerce
Java 8 -12: da Oracle a Eclipse. Due anni e una rivoluzione
Amazon Alexa vs Google Home. Quale scegliere? Funzionalità e usi
Amazon Web Services - Le potenzialità di AWS e il mondo di Amazon Alexa by Ni...
Polymer 3.0 by Michele Gallotti
"Java 8, Lambda e la programmazione funzionale" by Theodor Dumitrescu
"Odoo: l'open source che fa tremare SAP" by Davide Davin e Nicola Napolitano
"Configuration Manager: il ruolo nel ciclo di vita del software" by Omar Rossini
"Google Home: how to make Google do it" by Theodor Dumitrescu e Gianfranco Bo...
"ThinkOpen Agile Days - #Day3" by Donato Andrisani e Giuseppe Trotta
"Reactive programming" by Theodor Dumitrescu & Gianfranco Bottiglieri
"GDPR: cos'è e come funziona" by Francesco Puglisi
"ThinkOpen Agile Days - #Day2" by Donato Andrisani e Giuseppe Trotta
"ThinkOpen Agile Days - #Day" by Giuseppe Trotta
"React Native" by Vanessa Leo e Roberto Brogi
"How to... React" by Luca Perna
Ad

Guida galattica a Javascript

  • 2. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 a cura di Roberto Mapelli Presentation Context Things to know Live Coding Real life examples Repository & Questions
  • 3. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 00 00 - Ciao! ● Roberto Mapelli ● Software Developer ● JS addict ● Cat person ● In TOP da Febbraio 2018
  • 4. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 01.1 - Context 01.2 - Wrap it up 01
  • 5. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 01.1 - Context 01 ● Javascript ● Jquery ● React.js ● Node.js ● Vue.js ● Vanilla ● ES5 vs ES6 ● ... Don’t Panic!
  • 6. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 01.2 - Wrap it up 01 FE BE jQuery React.js Polymer Vue.js Angular Node.js Loopback Express Koa Es 5, 6, ... “vanilla Javascript” Meteor.js Si ma … ● Babel ● Wepack ● Browserify ● Gulp ● Grunt ● Npm ● Yarn ● … transpiler Bundlers Task runners Gestori Pacchetti
  • 7. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 02.1 - Things to know 02.2 - Big question 02
  • 8. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 02.1 - Things to know ● Linguaggio di scripting ● Orientato al funzionale ● Molti costrutti comuni a BE e FE ● Linter con diversi dialetti ● Librerie di test ● Evoluzione continua ● Google, Amazon , Facebook, Netflix, ... ● MDN - La Salvezza! 02
  • 9. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 01.2 - Big Question Perché Javascript? Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too? 02
  • 10. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 03 - Live Coding Browser FTW 03 ● Aprite Chrome ● Cliccate su tre puntini verticali in altro a destra ○ Altri strumenti ■ Strumenti per sviluppatori ● Cliccate sulla tab Sources ○ Snippets ■ New snippet ● https://codesandbox.io/ ● https://repl.it/languages/javascript ● Node.js REPL Alternative
  • 11. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 03.1 - Var, Let, Const 03.1 ● (Im)mutabilità ● Scope binding ● Readibility
  • 12. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 03.2 - Arrays 03.2 Nuove funzioni con paradigma funzionale ● Filter: restituisce un sottoinsieme della collezione iniziale basandosi su un predicato ● Map: restituisce una collezione in cui gli elementi sono modificati ● Reduce: Restituisce una collezione ridotta ad un valore finale
  • 13. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 03.3 - Objects 03.3 Tipo da cui estendono, tra gli altri, gli Array. Funzionano per riferimento, cioè si lavora sempre sul contenuto della locazione di memoria dove è memorizzato il dato. Would it save you a lot of time if I just gave up and went mad now?
  • 14. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 03.4 - Promise 03.4 Nascono per evitare di incappare nel callback hell, rendendo il codice più leggibile e più controllabile.
  • 15. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 04 - Examples Let & const Write a program that prints the mean between 3 numbers. Then subtract to one of the numbers the value of the mean and print that value. Arrays Write a program that prints the mean between an array of numbers. Write a program that prints the mean between only the numbers in an array like [1, true, "test", undefined, 3 , null]. Find a way to create an array of only even numbers using just 1 line of code. Objects Create a Hero object having the following properties: firstName, lastName, age, car each set to null. Create a Car object storing the model and the plate. Create two Hero objects and assign the car object of before Change the car model and plate properties. What happened? 04
  • 16. #TOPWorkshop Guida galattica a Javascript 00 01 02 03 04 05 05 - Repository & Questions https://github.com/AtrumSaurus/hitchhikers-guide-to-javascript05 So long, and thanks for all the fish