Quick Tip – Generating a TypeScript Declaration File

January 29, 2013

Quick Tip – Generating a TypeScript Declaration File If you are using TypeScript, you probably want to use 3rd party libraries like jQuery, require.js or sammy.js. In order to get the environment Intellisense and design time checks, you need to import the libraries *.d.ts files into your project. The *.d.ts files are declaration files that declare to TypeScript design time the exposed objects, functions, classes and interfaces included in a script. Without using the declaration files you will get design time errors since TypeScript compiler won’t recognize the libraries and their content. There is a repository...
one comment

Why My WCF Data Service isn’t Returning JSON Format?

January 28, 2013

Why My WCF Data Service isn’t Returning JSON Format? Lately, I had the need to use WCF Data Services in a project. It has been a while since I used and wrote about WCF Data Services and a lot was changed in the framework. The scenario I needed to implement was calling a data service using jQuery. So I wrote the relevant service and used the code I wrote a few years ago and nothing happened… I got a HTTP error – HTTP Error 415 Unsupported media type. Since I know that WCF Data Services support JSON format,...
2 comments

New Speaking Engagement – VSLive Chicago

January 24, 2013

New Speaking Engagement – VSLive Chicago Lately, I have been chosen to speak at VSLive Chicago conference. The conference will take place in May 13-16 at Hilton Chicago, USA. This is going to be the second time that I’m speaking in VSLive conferences and I’m very excited. In the conference I’ll have three sessions: Working with Client-Side HTML5 Storage Technologies HTML is the markup language that every web developer uses in order to structure and present content in the Internet. HTML5 is the standard that is being shaped and...

Creating Properties in TypeScript

January 22, 2013

Creating Properties in TypeScript One of the things that developers are used to when developing with a typed language like C# is properties. Properties enable developers to expose private class members and to encapsulate the logic of getting or setting that member. In this post you will learn how to create properties in TypeScript. Since TypeScript is compiled to JavaScript we will start with JavaScript properties first. JavaScript Properties Up until ECMAScript5 (the current version of JavaScript specifications) there was no real syntax to create properties in JavaScript. In legacy browsers (such as IE6, 7, 8)...
one comment

Using Casting in TypeScript

January 18, 2013

Using Casting in TypeScript One of the things that are very common in Object-Oriented languages is type casting. In JavaScript, which is a dynamic language, you don’t have the concept of casting. On the other hand, TypeScript language, which compiles into JavaScript, does include casting. This post explains how to use casting in TypeScript. Down Casting in TypeScript TypeScript includes the ability to cast types. In order to cast a type in TypeScript you use the <> brackets with the relevant type to cast. In order to show how you can use casting lets take...
no comments

Announcing – 20481A and 20484A Microsoft Official Courses

Announcing - 20481A and 20484A Microsoft Official Courses I’m pleased to announce the release of two new Microsoft Official Courses (MOCs): Course 20481A: Essentials of Developing Windows Store Apps Using HTML5 and JavaScript Course 20484A: Essentials of Developing Windows Store Apps Using C# Both of the courses were created by Sela Group and I had the pleasure of co-authoring course 20481A. This is the third Microsoft Official Course that I’m co-authoring. The previous ones were: Course 10953A: HTML5 Programming Course...

SELA Developer Practice Conference is on The Way

SELA Developer Practice Conference is on The Way SELA Developer Practice (SDP) is Sela Group’s annual conference. The next scheduled conference will be between May 5-9, 2013. This time, we opened the call for papers to local and international speakers, and here are some of this conference numbers: 5 conference days: 3 days of full-day workshops and 2 days of breakout sessions in 4 tracks each 37 speakers, including 11 international speakers Among the speakers are 11 Microsoft MVPs and tech...

Quick Tip – Enabling TypeScript Debugging

January 12, 2013

Quick Tip – Enabling TypeScript Debugging If you are not familiar with the TypeScript language, I urge you to take a look at its website. In the last few weeks I’m using the TypeScript language from time to time. One of the things that you expect from a development language is the ability to debug its source. From version 0.8.1 TypeScript includes Source Map debugging. That means that you don’t need to debug the JavaScript output that you get from TypeScript and that you can debug TypeScript from source map-enabled browsers and in Visual Studio. ...
no comments