DEV Community

Kunal Agrawal
Kunal Agrawal

Posted on

Does Typescript make you slower?

This Post is all about Typescript and DX (Developer Experience) 😎.

Many folks think writing down code in typescript creates more errors, and writing unnecessary code.
Even I had also the same thoughts at a point in time when I started learning about TypeScript and replacing it with JavaScript in my development workflow.

It seems difficult to set up a typescript express server on your own, without using any templates.

Earlier, using TypeScript in your codebase increases one extra step that’s to convert typescript into javascript and then run it in an environment like Node.js. But with the increasing popularity of Typescript among developers, new runtime environments like Bun and Deno supports, Typescript as First Class Language that’s Typescript can directly be compiled and run.

So, why use TypeScript?

  • Intellisense
  • Standard Documentation
  • Can be converted to the previous version of the javascript
  • Type Safety

Editors like Vs code provides special privileges like intellisense, error checking and more when working with well documented languages like TypeScript.

Using typescript allows to convert code into any other javascript version, so compatibility not being an issue working with typescript.

Type Safety, dynamically typed languages like javascript are very great for writing well structured code, but increases chances of error also when a variable is undefined or null. although it can be handled using try and catch. but this doesn't seems efficient way throughout codebase.

Typescript is among top 4 in most loved programming language.

Image description

Thanks for reading this article.
For more, follow
kunal.dev

Top comments (0)