You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nelsonic opened this issue
Jul 18, 2024
· 0 comments
Labels
discussShare your constructive thoughts on how to make progress with this issuetechnicalA technical issue that requires understanding of the code, infrastructure or dependencies
NASA’s 10 rules for developing safety-critical code are:
Restrict all code to very simple control flow constructs—do not use goto statements, setjmp or longjmp constructs, or direct or indirect recursion.
Give all loops a fixed upper bound.
Do not use dynamic memory allocation after initialization.
No function should be longer than what can be printed on a single sheet of paper in a standard format with one line per statement and one line per declaration.
The code's assertion density should average to minimally two assertions per function.
Declare all data objects at the smallest possible level of scope.
Each calling function must check the return value of nonvoid functions, and each called function must check the validity of all parameters provided by the caller.
The use of the preprocessor must be limited to the inclusion of header files and simple macro definitions.
Limit pointer use to a single dereference, and do not use function pointers.
Compile with all possible warnings active; all warnings should then be addressed before the release of the software.
I really like this list of Rules. 😍
Feel this is something we should aspire to in all the code we write not just for spaceships! 🚀
The text was updated successfully, but these errors were encountered:
nelsonic
added
discuss
Share your constructive thoughts on how to make progress with this issue
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
labels
Jul 18, 2024
discussShare your constructive thoughts on how to make progress with this issuetechnicalA technical issue that requires understanding of the code, infrastructure or dependencies
https://www.perforce.com/blog/kw/NASA-rules-for-developing-safety-critical-code 🔗
Shared in a DM by @donchev7 ❤️
NASA’s 10 rules for developing safety-critical code are:
goto
statements,setjmp
orlongjmp
constructs, or direct or indirect recursion.I really like this list of Rules. 😍
Feel this is something we should aspire to in all the code we write not just for spaceships! 🚀
The text was updated successfully, but these errors were encountered: