This is very insightful. If you make a mistake = shameful, you probably aren't going to meaningfully decrease the number of mistakes made, but you will ensure that no one wants to admit they've made one.
And I guarantee anyone who's written code long enough has written plenty of footguns of their own.
And I guarantee anyone who's written code long enough has written plenty of footguns of their own.