DEV Community

Kunal Agrawal
Kunal Agrawal

Posted on

2

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

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay