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

Devoxx FR 2016 Typescript

Devoxx FR 2016 Typescript

Typescript
Typer pour mieux coder
20 avril 2016
Devoxx FR

Vincent Beretti

April 20, 2016
Tweet

More Decks by Vincent Beretti

Other Decks in Programming

Transcript

  1. #DevoxxFR
    Typescript
    Typer pour mieux coder
    Vincent Beretti @vberetti
    1

    View Slide

  2. #DevoxxFR
    Vincent Beretti
    Pôle Conseil Ippon Technologies
    Qui ?
    2

    View Slide

  3. #DevoxxFR
    The times they’re a changin’
    3
    ES 2015
    ES 5
    ES 3
    ES 2016

    ES 2017
    2000 2010 2015 2020
    2005

    View Slide

  4. #DevoxxFR
    Reflexions
    4
    « Considérer JavaScript comme du bytecode
    pour navigateur me convient »
    Unit
    Service
    UI
    Compilation
    http://the-babel-tower.github.io/2015/07/23/scalajs/

    View Slide

  5. #DevoxxFR
    Let’s talk about Typescript
    5
    2012
    Support de JSX
    Open source
    Langage trans-compilé
    Typage optionnel
    *.ts
    *.js
    .map
    *.js
    TSC
    version
    1.8

    View Slide

  6. #DevoxxFR
    ECMAScript 7/2016
    Let’s talk about Typescript
    6
    ECMAScript 5
    Compilateur TSC
    Superset de Javascript
    Typescript
    ECMAScript 6/2015
    ECMAScript 7/2016

    View Slide

  7. #DevoxxFR
    Pour commencer
    7
    npm install --global typescript
    et gardez votre écosystème !

    View Slide

  8. #DevoxxFR
    Live Demo
    8

    View Slide

  9. #DevoxxFR
    Conclusion
    • Souple
    • Puissant
    • Superset « vous faites déjà du Typescript »
    • Facile à apprendre depuis le Javascript, Java ou C#
    • Utilisable même sur du code Javascript « legacy »
    • De plus en plus de librairies codées en Typescript
    9

    View Slide

  10. #DevoxxFR
    Références
    10
    http://www.typescriptlang.org/
    MOOC par Microsoft :
    https://www.edx.org/course/introduction-typescript-microsoft-dev201x-1
    eBook Deep Dive :
    http://basarat.gitbooks.io/typescript/
    Understanding ES5, ES2015 and Typescript
    http://johnpapa.net/es5-es2015-typescript/

    View Slide

  11. #DevoxxFR
    Merci
    Questions ?
    11
    Rendez-vous demain amphi bleu à 18h55

    View Slide