The ABC of writing good code:
- Accuracy: A function should do one thing and one thing only.
- Brevity: Coding standard must specify the acceptable length of functions. If the function is getting long; Refactor.
- Clarity:
- Track complexity metrics. Refactor
- Use names that convey intention.
- Avoid globals.
- Write Executable Specifications.
No comments:
Post a Comment