Make Magazine recently published a video by Allyson Aberg highlighting 3 guidelines from JPL’s “Rules for Developing Safety Critical Code”. Worthwhile to watch the video for it contains more information than the written text. The guidelines can be found at:

Pixelscommander has applied these guidelines to JavaScript in this post. A more detailed document of JPL coding standards can be found at:

A Google search of “NASA coding standards” provides links to multiple pages, documents and video on the topic.