A brief class that introduces the benefits
TypeScript provides to large scale projects.
Prerequisites: JavaScript 202
TypeScript 101
🎓 Professor Frances Coronel
@fvcproductions
fvcproductions
in/fvcproductions
Syllabus
(1) The Rise of TypeScript’s
Popularity 📈
(2) TypeScript vs JavaScript 🎭
(3) Homework Assignments 📚
@fvcproductions
W8, what is TypeScript? 🤔
• strict syntactical superset of JavaScript
• programming language developed & maintained by
Microsoft that is completely open-source
• eases development of large scale applications written
in JS with less boilerplate code & better tooling
• extends JS by adding optional typing, static analysis, &
interfaces to create code that's easier to maintain🗓 October 2012
@fvcproductions
TypeScript 🖥 TypeScript & Me 💛 Me )
Programming language Clean freaks 🛀 Human being
Anal retentive 👿
October babies 👶
@fvcproductions
(1) The Rise of TypeScript’s Popularity 📈
@fvcproductions
Companies ❤ TypeScript
Developers ❤ TypeScript
Why all the love?
Modular structure
Friendly with all editors
Scalable
Easy to learn
Easy to debug so less bugs!
Has Types
Good tooling and library support
Powers major production apps
Devs can be onboard fairly quickly
Works on both client and server
😍
Evaluating the Popularity of a Programming Language 🤓
9
1
11
3
"The platform no
developer should
live without"
- me
15 Most Popular Languages
On GitHub by Opened Pull Requests
With Percentage Change from Previous Year
(2) TypeScript vs JavaScript 🎭
.ts .js
@fvcproductions
The Nitty Gritty 💻
npm i -g typescript
Installing TypeScript
Compiling our file to JS
tsc multiplication.ts
Configuring options
touch tsconfig.json
npm i -g tslint
Optional Installing TSLint
@fvcproductions
JavaScript is TypeScript but
TypeScript is not JavaScript.
Superset vs
Subset 🔘
@fvcproductions
1. Referenced a symbol/
variable which is not
declared in program
2. Not able to fully infer
the type of a particular
variable and warns
against using it as is
3. Even if your source
code has TypeScript
errors, it will still
produce JavaScript
code which you can
execute
Spell Checker
@fvcproductions
What Types Provide
✓ modular development
✓ can be learned easily
✓ non-invasive
✓ long-term vision
✓ clean output
To Type or
Not To Type
Pros of JavaScript
• EVERYWHERE
• awesome libraries
• flexible
Cons of JavaScript
• dynamic typing
• lack of modularity
• verbose patterns
@fvcproductions
My somewhat morbid dog analogy 🐾
> @fvcproductions
THE TODAY
@fvcproductions
(3) Homework Assignments 📚
@fvcproductions
3
) ) ) ) )
@fvcproductions
ListeningTastingSeeing Touching Smelling
@fvcproductions
Option 1. 🎥 Watch the creator of TypeScript talk about
TypeScript at the #MSBuild Conference
“What’s New In TypeScript” by Anders Hejlsberg
@fvcproductions
Option 2. 🎓 Enroll in an edX course on TypeScript.
@fvcproductions
Option 3. 🎮 Screw homework and go play instead!
typescriptlang.org/play@fvcproductions
Option 4. 🎙 Podcasts!
@fvcproductions
Option 5. 🍰 Let them eat cake !
@fvcproductions
Bonus Lesson - Cool $hit!
@fvcproductions
Abstract Syntax Trees (AST)
TypeScript
2.6
JSDoc &
Inferring
Types
TypeScript
2.5
Extracting
Functions
Bonus
Bonus
Lesson
Jingle Time! 🎹
• You know that one part of class
you weren’t really expecting but
that you ended up enjoying
anyways?
• This is that part.
TypeScript 101
We just had so much fun
ECMAScript was not enough
We want JavaScript that scales
And with types and transpilation
There is no way we can fail
TypeScript is super anal
But we get way less bugs
Just useeeee TypeScript.
@fvcproductions
Thanks for listening! ☺
@fvcproductions
fvcproductions
in/fvcproductions
Slides will be uploaded ASAP to
slideshare.net/fvcproductions
Credits
1. Mathematical Finn Photo: https://glarbinator.deviantart.com/art/Mathematical-Finn-417768395
2. TypeScript Official Website: http://www.typescriptlang.org/
3. Severus Snape Video: https://www.youtube.com/watch?v=PnOyBLT07R8
4. GitHub Icon: https://www.iconfinder.com/iconsets/ionicons
5. Twitter & LinkedIn Icons: https://www.iconfinder.com/iconsets/free-social-icons
6. Fonts: Segoe UI, SF Pro Text, Input Mono
7. Google Trends: https://g.co/trends/2M11R
8. TypeScript and JavaScript Logos: egghead.io
9. Stack Overflow 2017 Survey: https://insights.stackoverflow.com/survey/2017
10. TypeScript GIFs: http://twittervideodownloader.com/ & @typescriptlang
11. EdX Course: https://www.edx.org/course/introduction-typescript-2-microsoft-dev273x-0#!
12. List of Editors: https://www.wikiwand.com/en/TypeScript
@fvcproductions
Appendix
@fvcproductions
@fvcproductions

TypeScript 101 - Studio Session - Accenture Liquid Studio

  • 1.
    A brief classthat introduces the benefits TypeScript provides to large scale projects. Prerequisites: JavaScript 202 TypeScript 101
  • 2.
    🎓 Professor FrancesCoronel @fvcproductions fvcproductions in/fvcproductions
  • 3.
    Syllabus (1) The Riseof TypeScript’s Popularity 📈 (2) TypeScript vs JavaScript 🎭 (3) Homework Assignments 📚 @fvcproductions
  • 4.
    W8, what isTypeScript? 🤔 • strict syntactical superset of JavaScript • programming language developed & maintained by Microsoft that is completely open-source • eases development of large scale applications written in JS with less boilerplate code & better tooling • extends JS by adding optional typing, static analysis, & interfaces to create code that's easier to maintain🗓 October 2012 @fvcproductions
  • 5.
    TypeScript 🖥 TypeScript& Me 💛 Me ) Programming language Clean freaks 🛀 Human being Anal retentive 👿 October babies 👶 @fvcproductions
  • 6.
    (1) The Riseof TypeScript’s Popularity 📈 @fvcproductions
  • 8.
  • 9.
  • 10.
    Why all thelove? Modular structure Friendly with all editors Scalable Easy to learn Easy to debug so less bugs! Has Types Good tooling and library support Powers major production apps Devs can be onboard fairly quickly Works on both client and server 😍
  • 11.
    Evaluating the Popularityof a Programming Language 🤓
  • 15.
  • 16.
  • 18.
    "The platform no developershould live without" - me
  • 20.
    15 Most PopularLanguages On GitHub by Opened Pull Requests With Percentage Change from Previous Year
  • 24.
    (2) TypeScript vsJavaScript 🎭 .ts .js @fvcproductions
  • 26.
    The Nitty Gritty💻 npm i -g typescript Installing TypeScript Compiling our file to JS tsc multiplication.ts Configuring options touch tsconfig.json npm i -g tslint Optional Installing TSLint @fvcproductions
  • 27.
    JavaScript is TypeScriptbut TypeScript is not JavaScript. Superset vs Subset 🔘 @fvcproductions
  • 28.
    1. Referenced asymbol/ variable which is not declared in program 2. Not able to fully infer the type of a particular variable and warns against using it as is 3. Even if your source code has TypeScript errors, it will still produce JavaScript code which you can execute Spell Checker @fvcproductions
  • 29.
    What Types Provide ✓modular development ✓ can be learned easily ✓ non-invasive ✓ long-term vision ✓ clean output To Type or Not To Type Pros of JavaScript • EVERYWHERE • awesome libraries • flexible Cons of JavaScript • dynamic typing • lack of modularity • verbose patterns @fvcproductions
  • 30.
    My somewhat morbiddog analogy 🐾 > @fvcproductions
  • 31.
  • 32.
  • 33.
    (3) Homework Assignments📚 @fvcproductions
  • 34.
    3 ) ) )) ) @fvcproductions
  • 35.
  • 36.
    Option 1. 🎥Watch the creator of TypeScript talk about TypeScript at the #MSBuild Conference “What’s New In TypeScript” by Anders Hejlsberg @fvcproductions
  • 37.
    Option 2. 🎓Enroll in an edX course on TypeScript. @fvcproductions
  • 38.
    Option 3. 🎮Screw homework and go play instead! typescriptlang.org/play@fvcproductions
  • 41.
    Option 4. 🎙Podcasts! @fvcproductions
  • 42.
    Option 5. 🍰Let them eat cake ! @fvcproductions
  • 43.
    Bonus Lesson -Cool $hit! @fvcproductions
  • 44.
  • 45.
  • 46.
  • 47.
    Bonus Bonus Lesson Jingle Time! 🎹 •You know that one part of class you weren’t really expecting but that you ended up enjoying anyways? • This is that part. TypeScript 101 We just had so much fun ECMAScript was not enough We want JavaScript that scales And with types and transpilation There is no way we can fail TypeScript is super anal But we get way less bugs Just useeeee TypeScript. @fvcproductions
  • 48.
    Thanks for listening!☺ @fvcproductions fvcproductions in/fvcproductions Slides will be uploaded ASAP to slideshare.net/fvcproductions
  • 49.
    Credits 1. Mathematical FinnPhoto: https://glarbinator.deviantart.com/art/Mathematical-Finn-417768395 2. TypeScript Official Website: http://www.typescriptlang.org/ 3. Severus Snape Video: https://www.youtube.com/watch?v=PnOyBLT07R8 4. GitHub Icon: https://www.iconfinder.com/iconsets/ionicons 5. Twitter & LinkedIn Icons: https://www.iconfinder.com/iconsets/free-social-icons 6. Fonts: Segoe UI, SF Pro Text, Input Mono 7. Google Trends: https://g.co/trends/2M11R 8. TypeScript and JavaScript Logos: egghead.io 9. Stack Overflow 2017 Survey: https://insights.stackoverflow.com/survey/2017 10. TypeScript GIFs: http://twittervideodownloader.com/ & @typescriptlang 11. EdX Course: https://www.edx.org/course/introduction-typescript-2-microsoft-dev273x-0#! 12. List of Editors: https://www.wikiwand.com/en/TypeScript @fvcproductions
  • 50.
  • 51.