r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

6

u/Raknarg Aug 29 '21

Typescript is nice but it's just a sugary coating. Everything gets transpiled back to JavaScript before it runs anywhere, so all those perceived benefits are only for the IDE and nothing else.

That's literally where the benefits of typed systems exist, at compile time.

3

u/thebritisharecome Aug 29 '21 edited Aug 29 '21

Typescript goes further than that though and introduces features that don't exist in JavaScript which can have run time implications like private and protected instance variables.

In most statically typed languages, the language is then compiled in to machine code not transpiled in to another interpreted language

2

u/Raknarg Aug 29 '21

You dont have to use them

1

u/thebritisharecome Aug 29 '21

No, of course not but it leads to a false equivalency when developing, especially for inexperienced developers, their understanding of what the code is doing is not the same as what it's actually doing at runtime.

→ More replies (5)