0

What is the use of comments?

The comment tag makes no difference in the output so what exactly is its use?

18th Dec 2016, 10:00 AM
Abbas Abid
Abbas Abid - avatar
3 ответов
+ 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.
18th Dec 2016, 10:47 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
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 ;)
18th Dec 2016, 10:13 AM
Adam Emieljaniuk
Adam Emieljaniuk - avatar