DEV Community

Cover image for Is TypeScript worth it?

Is TypeScript worth it?

Brian Neville-O'Neill on January 15, 2020

Written by Paul Cowan✏️ Before I start, I would like the jury to know that I am, for the most part, a TypeScript fan. It is my primary programming...
Collapse
 
xcs profile image
Cristian • Edited

Is TypeScript worth it?

Yes.
End of discussion.

There are many other answers to the same question here: dev.to/bettercodingacademy/typescr...

Collapse
 
ionline247 profile image
Matthew Bramer

I literally was in the same room as a team of 5 debug Typescript for 4 hours, just to get it up and running on 1 box. There's some perks, but there are some pitfalls. It's not for every project. Large, complex apps existed prior to TS and will continue to do so. It's not a zero-sum game.

Collapse
 
jwp profile image
JWP

Why did debug session take so long?

Thread Thread
 
ionline247 profile image
Matthew Bramer

Not too sure, as I was working on another project; being productive. 😉

Thread Thread
 
xcs profile image
Cristian • Edited

I think a lot of people think swithing to TypeScript can be done overnight with the press of a button. People forget that you still need to learn a new programming language. But once you do, it's always worth using it for projects larger than single file scripts, especially when there are multiple people working on the same project.

Thread Thread
 
ionline247 profile image
Matthew Bramer

I've been writing JS for over a decade. Still haven't needed typescript and the latest, large project I worked on, Typescript would have been a major inhibitor to velocity. Not bc itself, but due to the team's seniority.

Collapse
 
itsjzt profile image
Saurabh Sharma

Our team has been using typescript for a year now, reasons why we use typescript:

  • auto complete (biggest reason I think)
  • life is too short for one off errors
Collapse
 
juancarlospaco profile image
Juan Carlos

I come from CoffeeScript, that is kinda dead now.
I tried TypeScript, observed the same that this post mentions.
I tried some Python-to-JavaScript compilers, they were not good at all.
I tried Nim, solved my problems, including TypeScript ones.
:)

Collapse
 
0xdonut profile image
Mr F.

I've seen you mention a few times in here, it likes nice but there is a really tiny community and ecosystem for web apps, unless you can point out otherwise

Collapse
 
juancarlospaco profile image
Juan Carlos

It is a language to work with other languages too, I use it for Python,
I am part of the Python community, and find it searching for alternatives to Cython,
you can "import" C and JS libs and use them from Nim,
it is Python-like syntax instead of JavaScript-like so that may or may not be a disadvantage,
besides that no one forces you to abandon JS community.

But JavaScript community is biggest on the whole world anyways,
all communities are tiny communities compared to JavaScripts...
🤷‍♀️

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

Asserts gets us some of the way for runtime type checking.