TypeScript…Will it Catch On?
TypeScript is a language sponsored by Microsoft making it easier to write JavaScript code while using more structured language constructs. Some of the features it supports are:
- Type annotations and compile-time type checking
- Classes
- Interfaces
- Modules
- Abbreviated "arrow" syntax for anonymous functions
You can write native JavaScript that emulates some of these concepts; but not in ways that are familiar to many. Standards are being written to extend JavaScript so many of these features are possible. Microsoft simply didn’t wait for the standards to be completed, and implemented their own standards.
Here’s the cool thing about it; the code written in TypeScript, when compiled, generates fully functional JavaScript.
Moreover, it supports some of the JavaScript frameworks already out there today such as JQuery and NodeJs, etc.
So, you get the best of both worlds…a syntax that is strongly typed, perhaps easier to read or create, possibly more structured, and yet supports existing technologies.
So, who is using it? Is it working for you? What do you not like? Leave a comment below to get into the conversation. Or drop me an email at btaylor@sswug.org.
Cheers,
Ben
$$SWYNK$$
Featured Article(s)
Learning SSAS: Part VI – Creating Hierarchies
In this article I talk about the importance of user hierarchies in Analysis Services and how to create and use them.
Featured White Paper(s)
Ten Tips for Optimizing SQL Server Performance
read more)
Featured Script
dba3_sp_RandomNumbers
— Usage: — Exec dbo.sp_RandomNumbers @N = 100, — @Mode = ‘OutPutOnly’ — All, OutPut, OutPutOnly, Statistics, Table … (read more)