29 September, 2020
But the truth is that it never ceased to annoy developers.
Being weakly and dynamically typed, the code may have included at times a lot of unexpected errors. And then, there was an issue of compatibility between different browsers, which used various interpreters or even different implementations of ECMAScript altogether (Microsoft’s JScript).
State of TypeScript 2020
Before we get into details about TypeScript, let’s just settle one thing. In terms of popularity, the efforts of Microsoft developers definitely paid off. According to the latest State of Frontend 2020 report, TypeScript popularity couldn’t be doing better.
… but they also flat out enjoy TS better:
In addition to that, more than three quarters (!) of all study participants admitted to using TS during the last year:
What problems did TypeScript set out to solve a.k.a. – why to use Typescript?
The perfect TypeScript project
TypeScript was designed to be especially beneficial for large web application projects. But what exactly makes it such a good choice?
Also, let’s not forget about decorators, a feature that is so important for frameworks like Angular, Nest.js or newer versions of Loopback,” points out Adam.
Other than these obvious advantages, TypeScript can speed up the development of large projects in a more subtle way”
“TypeScript code is also much easier to work with, because of better readability but also better integration with popular IDEs,” adds Adam.
But while these points are valid, they don’t really matter when it comes to professional web apps as such projects are almost always big enough to justify TypeScript.
An existing system is a different case. It might be complicated to move existing solutions to TypeScript, so this is something where I would recommend to stay with JS,” adds Adam.
|Year of first release||2012||1995|
|Designed by||Microsoft||Brendan Eich / Netscape|
|Type system||Static typing, strongly typed (optionally)||Dynamic typing, weakly typed|
|Advantages||Easier to debug, quicker development||Little to no initial setup|
|Support||Easily supports new features even on ES3 compatible browsers||Specific browser version supports only a set of features|
|Best suited for||Large web applications||Small projects, quick code debugging in the browser|
Does it mean that it is a must for every web developer to learn?
TS vs JS – summary
There you have it. I hope that this analysis helped you determine your own position on the JS vs TypeScript issue, regardless of whether you are a technology or business decision maker. In this article, we established that:
- Using TypeScript has benefits for scalability and the efficiency of development.
- It is unlikely that developers will abandon TypeScript anytime soon.
TSH has made TypeScript one of its top technologies, as evidenced in the Technology Radar – a summary of all the technologies used by TSH sorted by their importance. TypeScript is classed as a common technology because our developers use it regularly and believe it to be a great choice for our clients.