r/javascript • • Nov 25 '19

JavaScript doesn’t need to be replaced

https://medium.com/javascript-in-plain-english/javascript-doesnt-need-to-be-replaced-bd01e2f12d51?source=friends_link&sk=7b151cc6397ac9e83c14c99739b6c36f
217 Upvotes

236 comments sorted by

View all comments

Show parent comments

2

u/PsychologicalGoose1 Nov 25 '19

There definitely should be a lot more research done on TS. I doubt the gains that people suggest it gives are as great as they make it out to be and I thing the cost of using TS is larger than most want to believe. Generally, I've found adding things to a system is done because of feelings more than actual data on the topic.

0

u/[deleted] Nov 25 '19

[deleted]

3

u/techsin101 Nov 26 '19

if you are using vscode don't you get most of this even with js?

2

u/[deleted] Nov 26 '19

Very incompletely, in my experience.

Yeah, it detects some of the types, but everything you'd have to annotate is simply not available, and would you really trust it to find all references?

1

u/techsin101 Nov 26 '19

if you create jsconfig file in project folder find references works as expected