why i was wrong about typescript - tj vantoll...why i was wrong about typescript why? 3 reasons 1)...

61
Why I Was Wrong About TypeScript TJ VanToll

Upload: others

Post on 04-Jun-2020

28 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why I Was Wrong About TypeScriptTJ VanToll

Page 2: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 3: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

TypeScript

Page 4: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

TypeScript

Page 5: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

TypeScript

Page 6: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why I Was Wrong About TypeScript

Page 7: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Whether TypeScript is a good fit for your

next project

Page 8: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why I Was Wrong About TypeScript

Page 9: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“A typed superset of JavaScript that

compiles to plain JavaScript”

Page 10: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“A typed superset of JavaScript that

compiles to plain JavaScript”

Page 11: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 12: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 13: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

!"

Page 14: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

😍

Page 15: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

😠

Page 16: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 17: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 18: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Compile to JavaScript tools

• There are a lot.• 345• Source: https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS

• Ruby, Python, Erlang, Java, Scala, C#, F#, Lisp, Scheme, Haskell, Smalltalk, C, C++, Basic, Go, PHP, and way more.

Page 19: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Fun names of compile-to-JS tools

• treehugger• jangaroo• Waterbear

Page 20: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

http://waterbearlang.com/

Page 21: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Compile to JavaScript tools

• There are a lot.• 345• Source: https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS

• Ruby, Python, Erlang, Java, Scala, C#, F#, Lisp, Scheme, Haskell, Smalltalk, C, C++, Basic, Go, PHP, and way more.

Page 22: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 23: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 24: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 25: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 26: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 27: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 28: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 29: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 30: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 31: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 32: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why I Was Wrong About TypeScript

Page 33: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 34: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 35: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 36: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 37: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 38: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Page 39: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“We risk a lot by building our core on top of TypeScript.”

Page 40: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“I don’t hear anyone talking about TypeScript.”

Page 41: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“I like to keep my JavaScript pure, as

God intended.”

Page 42: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 43: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 44: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 45: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 46: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why I Was Wrong About TypeScript

Page 47: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 48: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 49: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 50: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 51: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 52: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 53: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Why?

Page 54: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

3 reasons

Page 55: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

1) Commitment to the ECMAScript standard

Page 56: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

“Some examples [of compile-to-JavaScript frameworks], like Dart, portend that JavaScript

has fundamental flaws and to support these scenarios requires a “clean break” from

JavaScript in both syntax and runtime. We disagree with this point of view. We believe that with committee participant focus, the

standards runtime can be expanded and the syntactic features necessary to support

JavaScript at scale can be built upon the existing JavaScript standard.”

Page 57: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript
Page 58: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

2) Types are opt-in

Page 59: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

3) Tooling

Page 60: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

So should you use TypeScript?• Are your apps big?• Do you work on a team?• Unfamiliar codebases?• Non JS developers that need to write JS code?

Page 61: Why I Was Wrong About TypeScript - TJ VanToll...Why I Was Wrong About TypeScript Why? 3 reasons 1) Commitment to the ECMAScript standard “Some examples [of compile-to-JavaScript

Thanks!@tjvantoll

http://bit.ly/DR2017-vantoll