Sunday, October 16, 2011


Towards Good Programming Style in C
Major takeaways on variable:


  • Use good variable names, with camelCasing or under_scores

  • Describe variables at declaration


Major takeaways on documentation:

  • Document every subroutine with a block comment

  • For longer programs describe the entire program, including purpose, requirements, missing (required) features, known bugs, etc.


Lastly, the golden rule of style:


Style Principle
Structure and document your program the way you wish other programmers would.


No comments:

Post a Comment