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

TypeScript

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

Elia Contini

December 16, 2015
Tweet

More Decks by Elia Contini

Other Decks in Programming

Transcript

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

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