TypeScript

Ryan Hayes

#TriJS Meetup

9/9/2014

State of the Web

  • HTML5/CSS3 is awesome!
  • Browsers are hardware accelerated!
  • BIG Single Page JS Apps!
  • Javascript is living in the 90s
  • This is how I feel when I use JavaScript ----------------------->

Q: What's the Problem?

A: JavaScript wasn't designed for large-scale applications.

What's being done?

  • ECMAScript 6
    • Not Ready
  • CoffeeScript
    • Ruby-like syntax
    • Concise
  • Google's Dart
    • C#-like
    • Separate IDE/Eclipse
  • TypeScript

What is TypeScript?

  • Superset of JavaScript (JS *is* TS)
  • Compiles to JS
  • Totally Optional
  • It's ECMAScript 6 today + Types!
  • Open Source, Node.JS compiler

Syntactic Sugar (n.):

Syntax within a programming language designed solely for human benefit in understanding or expression in a more clear and concise way.

TypeScript Provides

  • Classes
  • Interfaces
  • Modules (packages/namespaces)
  • Definition files (.d.ts) for libraries (Intellisense!!)
  • Easy inheritance/composition
  • Typing/type-checking in your IDE
Made with Slides.com