2. What is TypeScript?
TypeScript is a typed superset of JavaScript.
Compiles to plain JavaScript.
Any IDE. Any browser. Any host. Any OS.
Open Source.
Based on open standards (ES6, ES7...).
3. JavaScript is TypeScript!
“We’re excited to announce that we
have converged the TypeScript and
AtScript languages, and that Angular 2,
the next version of the popular
JavaScript library for building web sites
and web apps, will be developed with
TypeScript”
4. Why do we need TypeScript? (PART I)
“As a system evolves, its complexity increases
unless steps are taken to reduce it”
JavaScript was not designed to deal with the
level of complexity required to meet today’s
needs.
5. Complex !== Complicated
Complicated implies being difficult to understand but with time and
effort, ultimately knowable.
Complex describes the interactions between a number of entities. If
the number of entities and interactions between them increase
we will get to a point where it would be impossible to know and
understand all of them.
6.
7. TypeScript is the future of JavaScript
TypeScript allows us to use ES6 and ES7 today!
We can use the --target compiler option to
specify ECMAScript target version: ES3, ES5 or
ES6.
13. Decorators
Note: The code snippets above are part of an open-source project I’m
working on. You can learn more about it at http://inversify.io/
● Metadata Reflection API
14. Why do we need TypeScript? (PART II)
“Large codebases are more difficult to maintain
when they are written in dynamic languages”
15. TypeScript goes beyond ES6 & ES7
TypeScript is a strongly typed programming
language
TypeScript introduces some great design-time
features that are not available in ES6 or ES7.
22. Thanks!
● Join the Dublin TypeScript Meetup to learn more!
● Get 20% off my book “Learning TypeScript” (eBook)
using promo code PACKT20 at www.packtpub.com
Hinweis der Redaktion
I like to think that TypeScript is a tool not a programming language
A tool that help us to manage the complexity of large code bases
TypeScript is an npm module
Typed superset of JavaScript
Typed superset of JSX
All you JavaScript is valid TypeScript
The two main text block in this screen are links, use them to find out more.
JavaScript was designed in 10 days.
Laws of software evolution.
Complexity is evolving even if you work and a TODO app.
Logic is increasing in the front-end
The features are great to manage complexity but we can’t use them in old browsers