Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TypeScript

D2266122e7b320d0ef7d6168f1dd2d3f?s=47 Elia Contini
December 16, 2015

 TypeScript

A brief introduction to TypeScript, the superset of JavaScript created by Microsoft to build robust components. Already used by Dojo Toolkit 2, AngularJS 2, Ionic 2 and many more.

Code available at https://github.com/EliaContini/ts-experiments

D2266122e7b320d0ef7d6168f1dd2d3f?s=128

Elia Contini

December 16, 2015
Tweet

Transcript

  1. Elia Contini FrontEnders Ticino, 16 Dec 2015 Tecnopolo di Chiasso

  2. TypeScript / Elia Contini / 16 Dec 2015 Who am

    I Elia Contini UX Designer and FrontEnd Engineer www.eliacontini.info
  3. 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!");
  4. 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
  5. … 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
  6. 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
  7. 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/