• Save
TypeScript
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

TypeScript

on

  • 1,232 views

 

Statistics

Views

Total Views
1,232
Views on SlideShare
1,232
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

TypeScript Presentation Transcript

  • 1. Introduction to TypeScript Ryan HayesTri-Cities .NET User Group
  • 2. State of the Web● HTML 5 is awesome! (Good riddance, Flash)● Browsers are hardware accelerated!● Javascript is still living in the 90s...and this is how I feel when I use it...
  • 3. Whats being done to solve it?● CoffeeScript (www.coffeescript.org) ○ Ruby-like, concise syntax -> to JavaScript ○ Team must learn and move to CoffeeScript● Googles Dart (www.dartlang.org) ○ C#-like syntax -> to JavaScript ○ Team must learn and move to Dart● TypeScript (www.typescriptlang.org)
  • 4. What is TypeScript?● Superset of JavaScript● JavaScript is valid TypeScript● Compiles to JavaScript● TypeScript sugar is optional!● Teams can choose to add it or not.● Is just syntactic sugar...
  • 5. Syntactic Sugar (n.):Syntactic sugar is syntax within a programminglanguage designed solely for human benefit inunderstanding or expression in a more clearand concise way.
  • 6. TypeScript Provides● Classes● Interfaces● Modules (packages/namespaces)● Definition Files for libraries = Intellisense● Easy inheritance and composition● Typing and type-checking in the IDE
  • 7. What do I need?● TypeScript Download: ○ http://www.microsoft.com/en-us/download/details. aspx?id=34790● Web Essentials 2012 (VS extension) ○ http://visualstudiogallery.msdn.microsoft. com/07d54d12-7133-4e15-becb-6f451ea3bea6● Open source definition files for 3rd party libraries: ○ https://github.com/borisyankov/DefinitelyTyped
  • 8. TypeScript
  • 9. JavaScript output
  • 10. Plus, includes!:
  • 11. DEMO TIME!http://www.typescriptlang.org/Playground/