4 ms·
Not only an insightful post, but also a fair number of interesting comments. A couple of resources I found in the comments: * A short list of safety rules for
by macintux 4y ago
Not only an insightful post, but also a fair number of interesting comments.
A couple of resources I found in the comments:
* A short list of safety rules for C: https://en.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Developing_Safety-Critical_Code https://en.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Dev...
* A much longer document, 42 rules for coding in C and C++: https://pvs-studio.com/en/blog/posts/cpp/0391/ https://pvs-studio.com/en/blog/posts/cpp/0391/
Update: also, a 210-comment thread from 2018: https://news.ycombinator.com/item?id=18334476 https://news.ycombinator.com/item?id=18334476