12 comments

[ 1.7 ms ] story [ 36.4 ms ] thread
Before you read this, read "The Elements of Programming Style" by Brian Kernighan and P. J. Plauger.
CTRL+F security
And yet the F-35 is known for having extremely problematic software with many failures that have caused it to cause crashes/ejections.
This is insteresting to me especially since this is a 2005 document. Is there a reason why C++ was chosen instead of Ada which to my knowledge was the gold standard for such software ?
140 pages on coding style. This looks straight out of the CIA handbook for sabotage [1]. I am sure China or Russia have a version of that.

> (12) Multiply paper work in plausible ways. Start duplicate files.

> (13) Multiply the procedures and clearances involved in issuing instructions, pay checks, and so on. See that three people have to approve everything where one would do..

> (14) Apply all regulations to the last letter.

[1] https://www.cia.gov/static/5c875f3ec660e092cf893f60b4a288df/...

> 4.10.9 Inheritance Class hierarchies are appropriate when run-time selection of implementation is required. If run-time resolution is not required, template parameterization should be considered (templates are better-behaved and faster than virtual functions). Finally, simple independent concepts should be expressed as concrete types. The method selected to express the solution should be commensurate with the complexity of the problem.

I’m a TS + Java person. Is this specific to C++ or is it just due to control freaks with low abstraction skills?

This is over 200 convoluted rules with multiple subpoints on 140 pages, who the hell checks compliance with this without it taking over a decade?
Did this come with a linter?
Wait, no underscores? Vertical tab allowed? Form feed allowed? What would you even use them for?