Saturday 6 October 2012

Microsoft's New Language "TypeScript"

After the Google's Dart Microsoft has responded with the "TypeScript"  yet another language that compiles to javascript. TypeScript provides many features for example type inference and concept of classes and modules which have also been proposed by Ecmascript 6 (ES6).

Having said the pleasantries, lets do what we really like to do that is to say hello ... one thing that i really love about Microsoft is that is provides great tooling support, you can download and install the TypeScript editor plugin that integrates with Visual Studio 2012 and provide you with the ready to run TypeScript Application template. TypeScript also provides support for other editors

After you have installed the TS plugin for VS2012 you can fire up the studio and find the TS application template under Visual C# Installed Project templates.



After the project has been successfully created you can simply hit f5 to launch the application and see the greeting message



Another highlight, developers familiar with c# may not find it a new thing but, the use of lambdas to represent the anonymous functions is quite intriguing.


 There is no need to share this getting started code because we have not added a single line of code to the auto generated application code by VS2012.

 The TypeScript is developed on codeplex where you can browse the source code



2 comments:

  1. hmmm informative post but it would be more helpful if could etxplain how to use it in the context of a real application....

    ReplyDelete
  2. @muneebkiani very true but TypeScript is just of incubator stay put i will definitely blog a post that will cover the real world scenario

    ReplyDelete