DEV Community

Discussion on: My thoughts on the TypeScript debate

Collapse
 
brense profile image
Rense Bakker

I don't get why people keep using the last argument that somehow you would not be proficient at Javascript when you have learned Typescript... It's like the word "superset" has a different meaning to them?

After all, the web browser and Node do not understand TS

True the browser does not understand TS. However, Node is another story, as you said there's Deno, but there is also ts-node-dev (or ts-node), which understand TS.

One issue I have found it TS pushes the development more along the OOP route than I like.

Whether you use OOP or FP is up to the team. There's no difference between Javascript or Typescript, both can do either OOP or FP or any kind of mix of OOP and FP, which makes sense because Typescript is a superset of Javascript, so they support the same syntax for writing OOP or FP code. Personally I havent written a class in Typescript since React 16.8

It's understandable that C# developers would prefer TS over JS because they're used to a type safe language. The joke is on them though, because if they learn TS, they also know JS 😂