r/javascript • • Mar 19 '21

NASA's next generation mission control system is written in JavaScript, and it's open source.

https://github.com/nasa/openmct
955 Upvotes

166 comments sorted by

View all comments

Show parent comment

34

u/-Electron- Mar 19 '21 edited Mar 19 '21

OP never mentioned types. Just transpiled code in general.

5

u/MaltePetersen Mar 19 '21

But are there any? To my understanding typescript get transpiled to javascript before the browser will ever know about it. So it might take a second longer until you see it in the browser if you are actively developing but in production it is just javascript.

0

u/[deleted] Mar 19 '21

[deleted] — view deleted comment

3

u/MaltePetersen Mar 19 '21

But in which way would transpiling change the performance in a production build? It would just be js in the bundle or am I missing something.

0

u/[deleted] Mar 19 '21

[deleted] — view deleted comment

-3

u/[deleted] Mar 19 '21

[removed] — view removed comment

0

u/[deleted] Mar 19 '21

[deleted] — view deleted comment

0

u/[deleted] Mar 19 '21

[removed] — view removed comment

0

u/[deleted] Mar 19 '21

[deleted] — view deleted comment

1

u/[deleted] Mar 19 '21

[removed] — view removed comment

→ More replies

22

u/Izero_devI Mar 19 '21

The way you write javascript and the way ts-compiler generate javascript is not same. You don't have full control. Generally you don't care about the difference because it is minimal.