I m looking to write some quality C code. Can someone point me to some articles , websites..whatever I need something with examples. I have already seen and read K&R C book.
But times have changed, some one must have more to say on quality C Code. and another important thing is How do you ensure that you as programmer have written quality C code??
use fairly short, easy to read identifiers for high-use, limited-scope variables. use longer, more descriptive names for less often seen identifiers. use variable names that give an idea of their purpose (see K&R for examples) ensure identifiers are long enough and different enough to be easily distinguished.
A quality code is one that is clear, simple, well tested, bug-free, refactored, documented, and performant. But the primary measure of high-quality code in compliance with the specification depends on the needs of the company.
Someone mentioned some compiler switches, but having syntactically smooth code is not going to ensure a quality end-product, because there's more to software quality than that.
There are several classifications of software qualities, but here's a list that you can use as a checklist:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With