Presented March 8th, 2017
I presented a 45-minute version of my "TypeScript 101" talk that serves as a short introduction to TypeScript and the benefits it provides to large-scale projects.
3. Syllabus
(1) The Rise of TypeScript’s
Popularity 📈
(2) TypeScript vs JavaScript 🎭
(3) Homework Assignments 📚
@fvcproductions
4. 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
5. TypeScript 🖥 TypeScript & Me 💛 Me )
Programming language Clean freaks 🛀 Human being
Anal retentive 👿
October babies 👶
@fvcproductions
6. (1) The Rise of TypeScript’s Popularity 📈
@fvcproductions
10. 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
😍
28. 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
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
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
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 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