"DO NOT ATTEMPT TO OPTIMIZE OR REFACTOR THIS CODE.
When you ignore this warning and fail, increment this tally mark: IIII" //
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 25
//Is the code still in use?
If there are lessons written in blood for the development of safety-critical software, they haven't propagated to the wider field of software development.
(Disclaimer: I don't work on safety-critical software.)
1: https://www.csoonline.com/article/3404528/8-famous-software-...
I can think of at least three NASA missions that resulted in deaths: Apollo 1[1], and the Challenger[2] and Columbia[3] space shuttles.
[1] https://en.wikipedia.org/wiki/Apollo_1
[2] https://en.wikipedia.org/wiki/Space_Shuttle_Challenger_disas...
[3] https://en.wikipedia.org/wiki/Space_Shuttle_Columbia_disaste...
Seems like half the time it's the blood of the lobbyist or spook who didn't realize how heavy that suitcase full of benjamins was and the other half of the time it's the blood of whoever got trampeled when the moral panic turned into a moral stampede.
Cheap quips like "regulations are written in blood" are just high brow ways of saying "because I said so".
As the top level commenter points out, these sorts of messages coming from untrustworthy entities who's best interest only aligns with yours in passing are not held in high regard unless they come with some sort of justification since the entities in question (be they oracle or the EPA) do not have the reputation for honesty that they can rely on. If there's really a hazard, communicate the hazard and don't lie about it. The vast majority of the regulation of which you speak is far closer to the "no user serviceable parts inside" end of the spectrum than the "warning, landmines" end and that is why it's not taken seriously.