Microsoft’s TypeScript receives a mixed reaction

Ben Moss.
October 05, 2012

ThumbThe one ECMAScript it’s still okay to like, JavaScript has in recent years shrugged off its under-powered’, bloated’ and incomplete’ labels and grown into the universal go-to solution for front-end scripting.

Go to your drawer and pull out that résumé from 5 years ago. Now find the skills section and see where you listed JavaScript’; a buck says it’s down the bottom, just above DHTML and FrontPage. Right now, JavaScript is one of the hottest skills a web developer can have. If it’s not at the top of your résumé skillset, just under HTML5 and CSS3, then it should be.

The biggest boon to JavaScript’s new found street cred is undoubtedly jQuery, but there are a plethora of interesting projects that orbit the JavaScript core. These projects have a tendency to try and fix’ JavaScript. Like the girlfriend/​boyfriend that moves in, then starts to re-order your record collection. It may be necessary, but it sure isn’t polite.

The problem with JavaScript isn’t that it’s awkward, or inefficient. It’s that too many developers are infuriated by the idea that this snot-nosed little upstart of a scripting language (they won’t let us call it a programming language) could ever be used for anything serious. Except of course that JavaScript is being used for all manner of high-brow solutions. JavaScript is the proverbial orphan that finds a winning lottery ticket in the gutter; suddenly everyone wants to be its guardian.

The latest Daddy Warbucks (or Fagin if you prefer) is Microsoft. Their development teams, tired of wrestling with the lack of error checking when building large scale apps in JavaScript, turned to Anders Hejlsberg for a solution. Hejlsberg, previously responsible for C# amongst other things, determined that what JavaScript lacked was an OO (object orientated) approach. So that’s what he delivered in the form of TypeScript.

TypeScript

TypeScript is being called a new language, but more accurately it’s a superset of JavaScript that compiles into JavaScript. Unlike Google’s Dart project TypeScript doesn’t seek to extend JavaScript’s behaviour, merely to organize JavaScript into a form more recognisable to Microsoft’s programmers. It aims to do for JavaScript applications, what jQuery did for JavaScript animation.

Naturally TypeScript is available as a plugin for Visual Studio, but it’s also available via Node.js and it’s open source. Unfortunately the error-checking that is the real time-saver of TypeScript is only available in Visual Studio, so it’s unlikely to make waves outside of the Windows platform.

The language itself doesn’t appear half-bad. The truth is that OOP is something that JavaScript is badly lacking. Expect to see revisions in the not-too-distant future though; static typing is optional in TypeScript, something that Adobe were rumoured to have attempted with Actionscript 3 before they determined the language was more robust when static typing was compulsory.

The community response to TypeScript has been mixed to say the least: exuberance from the C# crowd who’ve previously viewed JavaScript as infantile; cynicism from JavaScript developers who suspect Microsoft is laying claim to JavaScript just as Apple have tried to do with HTML5.

In reality, TypeScript is a good tool, it makes JavaScript a more attractive option for large projects, and for Visual Studio users it introduces error-checking. However, TypeScript’s user base won’t be the existing JavaScript community who have long since embraced its shortcomings; it will be the C# programmers, who until now have never quite been able to bend their mindset towards JavaScript.

Are you a Visual Studio user? Do you think TypeScript offers a new direction for JavaScript? Let us know in the comments.

Ben Moss

Ben Moss is Senior Editor at WebdesignerDepot. He’s designed and coded work for award-winning startups, and global names including IBM, UBS, and the FBI. One of these days he’ll run a sub-4hr marathon. Say hi on Twitter.

Read Next

Are Simple Websites Better For Business?

As web design technologies raise the bar on what it is possible to achieve on a realistic budget, there’s a rising deba…

Apple Opts for AR over VR at WWDC

An Apple VR headset has been one of the most widely-rumored devices of the last few years, and it was finally settled a…

Exciting New Tools for Designers, June 2023

We’re halfway through 2023 already, and the number of incredible apps, tools, and resources for designers is mounting.

3 Essential Design Trends, June 2023

This month we are focusing on three trends within a bigger website design trend – different navigation menu styles and …

15 Best New Fonts, May 2023

The choices you make when selecting a typeface have more impact on your design than almost any other decision, so it’s …

10+ Best Tools & Resources for Web Designers and Agencies (2023 updated)

Having the ability to envision a tastefully designed website (i.e., the role creativity plays) is important. But being …

20 Best New Websites, May 2023

This month, there are tons of great new agency websites to get excited about. 3D animated prisms are a popular theme, a…

How to Find the Right White Label Website Builder for Your Agency

Web design agencies face a lot of obstacles in closing the deal with new clients. One of the most common ones is the ar…

Exciting New Tools For Designers, May 2023

There are hundreds of new tools for designers and developers released each month. We sift through them all to bring you…

3 Essential Design Trends, May 2023

All three of the website design trends here mimic something bigger going on in the tech space, from a desire to have mo…

10 Best AI Tools for Web Designers (2023)

It’s time to stop worrying if AI is going to take your job and instead start using AI to expand the services you can of…

10 Best Marketing Agency Websites (Examples, Inspo, and Templates!)

Marketers are skilled in developing strategies, producing visual assets, writing text with high impact, and optimizing …