Came across a nice paper by NASA/JPL scientist Gerard Holzmann on coding guidelines.
Fun Notes:
- Interestingly, I recently wrote a couple of posts on the very same topics discussed in the paper – on function calls and macros – in my earlier posts. Amazing how events happen in this universe.
🙂
- I’ve worked on a project in which I blatantly broke the first rule – by using setjmp/longjmp to gracefully handle asserts and error-conditions.
Here’s the link to the paper The power of Ten — Rules for Developing Safety Critical Code.