The NASA Ten Rules of Programming
My interpretation of these rules with Golang examples.
NASA did not write these rules to win arguments on the internet. They wrote them because software failed in ways that were expensive frightening and sometimes irreversible.
The rules are short. Almost annoyingly so. That is intentional.
Each rule is a reminder that complexity is not free and that computers are fast but humans are fragile.
They helped put flying metals in orbit and manage Voyager 1, the most distant human made object.
Let’s walk through all ten using Go not because Go is perfect but because it makes these ideas painfully obvious.

Rule 1
Restrict all code to very simple control flow
If your logic requires a mental stack trace to understand it will fail at the worst possible moment.
Go helps here by being boring on purpose.
Bad