A Critical Look at the Coding Standards Landscape
summary
Many public C and C++ standards exist but they often mismatch project context: MISRA C++ 2008 targets C++03 and freestanding implementations and is not appropriate for modern C++ projects. Static analysis of an old GDB snapshot finds 202,000 violations across 335k LOC — about 0.6 defects per LOC — producing huge remediation cost (each MISRA deviation record ≈2.5 pages), estimated hundreds to thousands of hours. Use precise context, automate trivial rules in IDE/CI, review rules regularly, and prefer forking a guideline to fit the codebase.
AI-written summary · about
chapters (11)
- 0:00Introduction to coding standards
- 1:18Context and conference recommendations
- 2:18Personal background and vendetta
- 5:16Defining coding guidelines and standards
- 8:50Purpose and goals of coding guidelines
- 13:53Techniques for writing effective rules
- 23:50Q&A on static analysis feedback
- 25:07Problems with coding standards
- 37:29Over-reliance and productivity issues
- 49:21Conclusions and best practices
- 55:11Final Q&A session
related talks
44mCoding Guidelines – to Comply or Not Comply – Some Myth Busting
51mMISRA C and C++ in OSS: Yes, We Can!
55mC++ Core and Other C++ Guidelines - The Good, the Bad, the… Questionable?
50mCore and other guidelines. The good, the bad, the... questionable?
52mBringing Existing Open-Source Code into MISRA Compliance
01h 20mSafer C++: MISRA-C++ : 202X Rules and Beyond
51mCode Analysis ++
57mMISRA C++202x: It ain't your grandpa's MISRA any more
