Slide 1

Slide 1 text

Elia Contini FrontEnders Ticino, 16 Dec 2015 Tecnopolo di Chiasso

Slide 2

Slide 2 text

TypeScript / Elia Contini / 16 Dec 2015 Who am I Elia Contini UX Designer and FrontEnd Engineer www.eliacontini.info

Slide 3

Slide 3 text

The others attempts TypeScript / Elia Contini / 16 Dec 2015 CoffeeScript alert "Hello FrontEnders!" Try CoffeeScript: http://coffeescript.org Dart (Google) void main() { print("Hello FrontEnders!"); } DartPad: https://dartpad.dartlang.org JavaScript (generated by CoffeeScript) alert("Hello FrontEnders!");

Slide 4

Slide 4 text

Live coding session TypeScript / Elia Contini / 16 Dec 2015 “Talk is cheap. Show me the code.” Linus Torvalds Code available on GitHub https://github.com/EliaContini/ts-experiments

Slide 5

Slide 5 text

… just a moment TypeScript / Elia Contini / 16 Dec 2015 I’m talking about ● compilation, source maps, debugging (HelloWorld.ts) ● classes, interfaces, private and public members ● modules (external), compilation options to generate AMD modules ● casting ● generics

Slide 6

Slide 6 text

Should I learn TypeScript TypeScript / Elia Contini / 16 Dec 2015 YES! Google Chrome V8 team says We want to try implementing an optional type system for JavaScript, directly in the VM. The basis will be TypeScript, but modified to have a sound semantics — i.e., types are always correct and cannot be subverted (though the type any exists as an escape hatch, making types optional). https://developers.google.com/v8/experiments#soundscript

Slide 7

Slide 7 text

Webography TypeScript / Elia Contini / 16 Dec 2015 ● TypeScript Language Specification 1.6, August 2015: https://github. com/Microsoft/TypeScript/blob/6ba3502de98215982953bf0c3b85d660e59804c7/doc/spec.md ● Google SoundScript: https://developers.google.com/v8/experiments#soundscript ● Stronger JavaScript?: https://www.sitepen.com/blog/2015/10/08/stronger-javascript/ ● TypeScript Deep Dive: https://basarat.gitbooks.io/typescript/