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

TypeScript - A Brief Introduction

Dariusz Parys
February 28, 2013

TypeScript - A Brief Introduction

Talk von der Basta Spring 2013

Dariusz Parys

February 28, 2013
Tweet

More Decks by Dariusz Parys

Other Decks in Technology

Transcript

  1. AGENDA • JavaScript – Stand der Dinge • Transpiler auf

    dem Vormarsch • TypeScript im Überblick • Q & A
  2. COFFEESCRIPT list = [1,2,3,4,5] roots = (Math.sqrt num for num

    in list) roots = (function() { var _i, _len, _results; _results = []; for (_i = 0, _len = list.length; _i < _len; _i++) { num = list[_i]; _results.push(Math.sqrt(num)); } return _results; })();
  3. DART library model; import 'package:web_ui/observe.dart'; import 'package:web_ui/observe/html.dart'; @observable class ViewModel

    { bool isVisible(Todo todo) => todo != null && ((showIncomplete && !todo.done) || (showDone && todo.done)); bool get showIncomplete => locationHash != '#/completed'; bool get showDone => locationHash != '#/active'; } final ViewModel viewModel = new ViewModel();
  4. TYPESCRIPT • TypeScript ist ein Superset von JavaScript – Jeder

    JavaScript Source == TypeScript • Typisierung • Klassen • Module