javascript - lezione 0

21
Lezione 0 “Deep into JS” Meetup

Upload: robert-casanova

Post on 12-Aug-2015

55 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Javascript - Lezione 0

Lezione 0“Deep into JS” Meetup

Page 2: Javascript - Lezione 0

Le Origini

Page 3: Javascript - Lezione 0

Viene inventato nel1995 ad opera di Brendan Eich, giovane programmatore della neonata Netscape Communication. “I came to Netscape in April 1995, after seven years at Silicon Graphics and three years at MicroUnity Systems Engineering. Netscape was about a year old then and was looking for someone to work on a scripting language or some kind of language inside the browser that could be used to automate parts of a web page or make a web page more dynamic. Java had been around for five years at First Person and Sun, and had been retooled for the web in late 1994. Netscape was the first Java licensee, so the issue became: Can we do just Java, or do we need another language?” (Brendan Eich)

Page 4: Javascript - Lezione 0
Page 5: Javascript - Lezione 0

Brendan sviluppa la prima versione in 10 giorni e prende il nome di Mocha, successivamente rinominata in LiveScript e infine JavaScript.

Page 6: Javascript - Lezione 0

La standardizzazione del linguaggio avviene tra il 1997-99 ad opera di ECMA(European Computer

Manufactures Association) sotto il nome di ECMAScript

Page 7: Javascript - Lezione 0

La versione attualmente più supportata e diffusa è ECMAScript 5, da poco è stata rilasciata

ECMAScript 6 (Javascript Harmony)

Page 8: Javascript - Lezione 0
Page 9: Javascript - Lezione 0
Page 10: Javascript - Lezione 0

Il linguaggio

Page 11: Javascript - Lezione 0

JavaScript® (often shortened to JS) is a lightweight, interpreted, object-oriented

language with first-class functions, most known as the scripting language for Web pages, but

used in many non-browser environments as well such as node.js. It is a prototype-based, multi-paradigm scripting language that is dynamic, and supports object-oriented, imperative, and

functional programming styles.

Page 12: Javascript - Lezione 0
Page 13: Javascript - Lezione 0

• lightweight!• interpreted!• object-oriented • first-class functions!• prototype-based!• multi-paradigm (object-oriented and

functional programming)

Page 14: Javascript - Lezione 0

Casi d’uso

Page 15: Javascript - Lezione 0

• Logica client-side (routing, controller, view) • Interattivià alle pagine web (caroselli, parallassi, ..) • HTML5 (Canvas, Image Manipulation, WebGL, Audio, … )

Pagine WEB

Page 16: Javascript - Lezione 0

• NodeJS (Express) • SocketIO (demo)

Server Side

Page 17: Javascript - Lezione 0

• Desktop (Electron, NW.js, ChromeApp ) • Mobile (React Native)

Applicazioni Native

Page 18: Javascript - Lezione 0

• NodeMCU

Internet of Things, Microcontrollers

Page 19: Javascript - Lezione 0

Let’s PlayA

Page 20: Javascript - Lezione 0

Variabili e Data Types

Page 21: Javascript - Lezione 0

Scope and Hoisting