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: http://pixelscommander.com/wp-content/uploads/2014/12/P10.pdf

Pixelscommander has applied these guidelines to JavaScript in this post. A more detailed document of JPL coding standards can be found at: https://yurichev.com/mirrors/C/JPL_Coding_Standard_C.pdf

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