Comments on the MISRA C coding guidelines (2012)
knosof.co.uk
knosof.co.uk
I wish. Sometimes code generators are also bug generators.
I've never seen C code actually using trigraphs. The way I heard it, is that different charactersets in the 70s didn't contain all characters for C. This was not a problem in 2012 and not even in 2002 or even 1992 I think.
After some time, muscle memory does the work, and you don't even realize.
Sadly, most devs (especially at large corporations) don't go out of their way to pay attention to such details and so overall I'm in favor of rules that restrict constructs that can very easily be abused.
As my career progresses and I'm spending more of my time reading, evaluating and diagnosing code, I got a new perspective on being smart when writing code. Now I think, if you are smart, you will write most plain code possible. If your code looks smart then you are probably doing something wrong. There is very few problems that actually require smart looking code.
Yeah... um... I wasn't really intending to use a 370 anyway, but thanks for pointing it out.
;-)