DEV Community

Discussion on: Tossing TypeScript

Collapse
 
phantas0s profile image
Matthieu Cneude

Wow. I don't write JS (and I don't really want to), but I still read this article from top to bottom because... it's good.

  1. It's well written, precise, and detailed.
  2. I'm always happy when somebody comes back to the real meaning of interface. It's an important concept, but everybody is confused about it because of the interface construct in OOP.
  3. Everything else.

I think more and more that programming is a bit like writing: there are many ways to do it, some are better than others, and it's more a question of personal preferences that we dare to admit. Typing is no exception.

There is no study which proves that "strong type safety" (which, in essence, doesn't really mean anything) improve the quality of our software. It's a safety net, but a basic one. With C++, many believed that the compiler would solve everything, till it became, indeed, a joke.

Here's what I think: history is repeating fast in our industry. We forget what was discovered already. It's a mistake, and I think we should sometimes look a bit more in the past than always lurking on the new tool, new ways, new trend.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

At least IDE integration, in case of TypeScript (and Kotlin), makes my development cycle faster, if even possible at all.

But sometimes strong-typed in Kotlin just hinder development... There are usually harder ways around, but that is no fun.

But I don't think it is ever proved to be better, though.

Collapse
 
bytebodger profile image
Adam Nathaniel Davis • Edited

I think more and more that programming is a bit like writing: there are many ways to do it, some are better than others, and it's more a question of personal preferences that we dare to admit. Typing is no exception.

(Nodding along...)

I'm not "mad" that many people love TS. I'm not even particularly bothered by the fact that my employer is currently trending in this direction. But sometimes I wish that more devs/teams/companies would be honest about the fact that some architectural choices are made because they match their preferences.

If someone says, "A lot of our devs prefer TS and we've already made the choice to standardize on TS. Therefore, TS will be our default tool choice going forward." - You know what? I get that. I've got no problem with it. Those kinds of decisions get made every day in dev shops all over the world.

But it's a little annoying to me when someone tries to tell me that TS is empirically, measurably, demonstrably BETTER for the React frontend application I'm building that will depend upon a dozen different outside data sources. In those cases, TS isn't necessarily the best tool for the job. It's just... a tool. That could do the job. If you want it to.