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:
No comments:
Post a Comment