TypeScript 30.4.2013, @ papsl
May 12, 2015
Meet Me• C#, SQL• Web and Mobile• Security & white hacks• Computer history• Scrum, daily work at pixi* labs• Startup wanna be (Moje Kartice)
Twitter @papsl
Why• „JavaScript is x86 of the web“• JS not only on client, also on large server/backend
projects• Syntax can be complex, can we make it easier?
What is TypeScript?• TypeScript is compiled to JavaScript• JS is a valid TypeScript (superset)• Build in compliance with ECMAScript 6• It brings:
• Class based Objet Oriented Programing (inheritance, IoC / DI, …)• Is just a syntactic sugar• Header (definition) files for existing JavaScript libs.• Optional static typing
Brief history of TypeScript• Developed by Microsoft• Released in December 2012
under Apache 2 License (currently 0.9.0 preview)
• Source at codeplex.com• Anders Hejlsberg
• Pascal compiler (DOS and CP/M)• Borland
• Turbo Pascal & Delphi
• Microsoft• C#
Type annotations
Classes
Interfaces
Modules
Time for Coffe?
TypeScript
• Individual can chose• Sugar is optional
• Syntax familiar to C#, Java
CoffeScript
• All team „must“ switch• Syntax familiar to Ruby,
Phyton, Haskell• Older, mature, very
popular
Type, Coffee or
vanilla?
QA
THANK YOU!
Meetups are cool!
Twitter: @papsl
I want more• TypeScript Download (or install it via node npm)
• http://www.typescriptlang.org/#Download
• The repository for high quality TypeScript type definition (node, jQuery, knockout, • https://github.com/borisyankov/DefinitelyTyped
• Source Code• http://typescript.codeplex.com/
• JavaScript Patterns• WebEssentials 2012 (VS addin)
Resources• http://blogs.msdn.com/b/typescript/• http://www.typescriptlang.org/Tutorial/• http://en.wikipedia.org/wiki/TypeScript• http://en.wikipedia.org/wiki/Anders_Hejlsberg