this post was submitted on 16 Feb 2025
50 points (96.3% liked)
Programming
18333 readers
516 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The NASA secure coding standards are overbearing, obnoxious, over-engineered, and a huge waste of effort.
But they are absolutely correct and the best guidelines I'm aware of.
https://standards.nasa.gov/standard/NASA/NASA-HDBK-2203
https://standards.nasa.gov/standard/NASA/NASA-STD-871913
https://dev.to/xowap/10-rules-to-code-like-nasa-applied-to-interpreted-languages-40dd
The Software Engineering Handbook PDF appears to just be a single page with a broken link on it; is there an archive for the document that's supposed to be there?
That's kindeof poetic tbh
Sorry about that, I'm seeing the same. Here's the site linked from the Internet Archive
https://web.archive.org/web/20240328153801/https://swehb.nasa.gov/
Would this be a consequence of the Project 2025 federal purge?
I was just checking the archives and all captures seem to work that I checked until now. Wondering if they're moving it to WordPress. /s
I definitely cannot get behind the "no recursion" rule. There are plenty of algorithms where the iterative equivalent is significantly harder and less natural. For example, post-order DFS.
I guess maybe when lives depend on it. But they should be testing and fuzzing their code anyway, right?
EDIT: I can't even find in the NASA PDF where it mentions recursion.
You can transform any recursive algorithm into iterative pretty easily though; just create a manual stack.
The rule definitely makes sense in the context of C code running in space. Unbounded recursion always risks stack overflow, and they probably don't have any tooling to prove stack depth bounds (you totally can do that, but presumably these standards were written in the 1500s).