With an Clear Source Code, it's easier for us to debug it. And also, the flow of the program wont be so complicated. The syntax error also can be minimized.
This is few things that must be considered by a programmer that wanna write a Clear Source Code:
- Indentation (Use space instead of tab, be consistent).
- Separate every part of processing in the program with comments.
- Use more friendly variable name instead of unfamiliar thing. For example: use "is_number" for bolean type variable instead of "number".
- Give comment that explained. But don't give long explanation.
- Don't write to long line. Break a long line to some short line (use an escape character if needed).
Happy Clearing Code.
No comments:
Post a Comment