Why use TypeScript instead of just using JavaScript?

Download this episode

Download Video

Description

TLDR: Type safety, productivity, intellisense, and debugging.

In continuing with my recent trend of using TypeScript, I wanted to illustrate how to create functions and variables in TypeScript, because this initially threw me into a loop. You can find a more in-depth version of this post, with samples at my blog. 

JavaScript and C# are the two languages I use in most of my day-to-day work, so I figured combining the two would be a joy. And it is! There isn't much of a learning curve, as I've found it more to be about switching sides of your brain, because I kept going forward with a JavaScript mentality. I wanted to just instantiate things on-the-fly and use them willy-nilly, but that isn't the case here.

 

David Catuhe, one of the engineers behind the open source WebGL project, BabylonJS, had a great blog post two years ago about why they made the switch to TypeScript as well.

You can find all of my TypeScript tutorials here.

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.