TypeScript vs. JavaScript

Headline: It seems that TypeScript is a better alternative to JavaScript – investigate it.

Testability

The biggest issue I had with JavaScript was the lack of testability. Until a colleague of mine pointed out one of my previous posts I completely forgot about some of the techniques for testing JavaScript. But from what little I’ve read the testability of TypeScript is much better using tsUnit.

Other Sources

In my research I ran across numerous posts about why TypeScript is a good approach:

I also ran across some that say “It didn’t fix the problem.” But, all those say that JavaScript doesn’t fix it either. They don’t think that JavaScript is better, just that even TypeScript fall short.

Summary

If you’re just using JavaScript for your coding you’re probably not building a scalable application that’s maintainable. And the code is likely going to look like a collection of hacks.

However, that’s my opinion as someone that works on many software development projects but can’t afford to have them become buggy or high maintenance.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.