0
What is the use of comments?
The comment tag makes no difference in the output so what exactly is its use?
3 odpowiedzi
+ 1
Comments help other people comprehend your code better. Comments serve as explanations on the lines to make sure people know what you are doing.
0
1. Try to look at program you made after a few weeks. If it is commeted, you will understand it fast, and if not you will discover it again. It saves a lot of time.
2. Look at somebody's else code. The commented one is clear, not commented can be surprise every line.
3. Teamworrk without comments is extremely unfriendly ;)