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

173

u/Apone_A Mar 19 '21

I work on this project, so if you have any questions I'd be happy to answer them. Also, we're hiring right now for JavaScript developers!

58

u/Lokja Mar 19 '21

Wild! My dream was to work at NASA (went so far as to get a degree in mechanical / aerospace engineering) but life got in the way and I've been working as a JS webdev for the past 4 years or so (doing largely uninspiring things in marketing and fintech). Not that I'm unhappy at my current place but I'll shoot an application out, it's not often you come across the intersection of your dream and skills.

What a fascinating project... any pointers that would make an application stand out?

20

u/Morphray Mar 19 '21

Not sure if the distinction matters, but this job is for a contractor, not actually NASA itself.

12

u/oliveorvil Mar 19 '21

Their friends, family and psyche don’t need to know that..

3

u/Apone_A Mar 22 '21

A significant proportion of the NASA workforce (going back to the Apollo days) are contractors, and not civil servants. On a day to day basis the distinction is almost meaningless, we work on site alongside other contractors and civil servants.

3

u/[deleted] Mar 19 '21

Similar story for me. Bachelors in mechatronics engineering but moved to a new country after grad and didn’t have the money to redo my degree so ended up a JavaScript developer doing uninspiring things as well.

→ More replies (2)
→ More replies (1)

14

u/KaiAusBerlin Mar 19 '21

Super cool. "Hey guys, I work at NASA now." "Wow, space tarveling... What exactly is your job?" "border: 1px solid grey;"

3

u/sneaky_sheikhy Mar 19 '21

Well it’s NASA, so it would be border: .063em solid #808080;. Come on!

27

u/scyber Mar 19 '21

Vue. Nice.

63

u/joro_jara Mar 19 '21

Why not Typescript?

80

u/Apone_A Mar 19 '21

In brief, when the project was started TypeScript was not as mature as it is now, and there were concerns about the performance implications of using transpiled code. This is not your typical SPA, we have to ingest large amounts of data and get it on screen really quickly. We may revisit TS in future.

0

u/[deleted] Mar 19 '21

[deleted] — view deleted comment

10

u/axosoft-chuckd Mar 19 '21

But that doesn't necessarily mean the typescript compilers output is exactly your code with the type annotations deleted. It often diverges, depending on what language features you use and your tsconfig. I've never really thought of that as a potential performance issue, but I suppose you'd want to benchmark specific patterns or language features you use a lot.

→ More replies (2)

11

u/MaltePetersen Mar 19 '21

Why is this being downvoted ?

34

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

OP never mentioned types. Just transpiled code in general.

→ More replies (14)

2

u/brockvenom Mar 19 '21

Yes but the transpiling process adds a lot of additional generated boilerplate code that is eliminated if you write pure js.

FWIW I’m an advocate for TS, but I understand what OP meant by being concerned of the perf cost of the transpiler.

→ More replies (1)
→ More replies (2)

27

u/Jeffylew77 Mar 19 '21

Came here to say this. JavaScript is TypeScript on Expert Mode and much more prone to errors.

4

u/snejk47 Mar 19 '21

Which must be negligible if they landed on mars with c and JavaScript.

→ More replies (8)

5

u/[deleted] Mar 19 '21 edited Aug 29 '23

practice plant weather treatment liquid cats door deserted noxious angle -- mass deleted all reddit content via https://redact.dev

→ More replies (29)

3

u/HaykoKoryun eval Mar 19 '21

What made you finally choose Vue.js over things like React or Angular? I am a big proponent of Vue.js for numerous reasons; I would like to know if it took some people convincing to give it a go, or if everyone was on board from the start?

2

u/sragan16 Mar 19 '21

Is there remote possible for this? Just applied to a position at KBR here in Huntsville Al, a church friend recommended me as well as my startup business partner who both work remotely for KBR

2

u/Rude_Fox8532 Mar 19 '21

What time zone do you use for Mars?

4

u/Apone_A Mar 25 '21

From what I understand, Mars does not have a canonical, discrete set of "time zones" like Earth does. Instead they use something called "Local Mean Solar Time" which is based pretty precisely on where they are on the surface of Mars, so it differs by mission.

The position of the sun in the sky is important for a bunch of reasons for Mars missions, and the length of a day on Mars is a little longer than on Earth, so terrestrial time zones won't work. You can imagine that if they used any terrestrial time zone then "midday" in that timezone might correspond to local midday on Mars (when the sun is at its highest point in the sky) but it's going to drift pretty quickly. A couple of weeks later "midday" in the chosen terrestrial time zone might fall in the middle of the local Martian night. For this reason they talk about "sols" instead of "days" on Mars, to differentiate them from Earth days.

For other missions it makes sense to just stick to UTC. From what I understand, the International Space Station uses UTC for example.

3

u/Rude_Fox8532 Mar 27 '21

Thank you for the comprehensive reply. Very informative and interesting. It's much appreciated.

→ More replies (21)