Click here to Skip to main content
16,020,628 members
Articles / Programming Languages / C

Ten Fallacies of Good C Code

Rate me:
Please Sign up or sign in to vote.
4.87/5 (77 votes)
30 Mar 2012CPOL37 min read 107.9K   73  
There are quite a few fallacies kicking around about how to write good code. This article is an attempt to dispel some of them.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
Andrew has a BSc (1983) from Sydney University in Computer Science and Mathematics. Andrew began programming professionally in C in 1984 and has since used many languages but mainly C, C++, and C#.

Andrew has a particular interest in STL, .Net, and Agile Development. He has written articles on STL for technical journals such as the C/C++ User's Journal.

In 1997 Andrew began using MFC and released the source code for a Windows binary file editor called HexEdit, which was downloaded more than 1 million times. From 2001 there was a shareware version of HexEdit (later called HexEdit Pro). HexEdit has been updated to uses the new MFC (based on BCG) and is once more open source.

Comments and Discussions