+ 2
Is it necessary to add comments
6 ответов
+ 3
no, but comments help others understand your code
+ 2
it's not necessary for the compiler because it will be ignored , however it's really necessary to a developer bcause it helps to understand. not to be confused. and also if several persons are working on a program its important to helps other persons to understand what u are willing to do. :)
+ 2
Well documented code helps you to understand what you're thinking later.
It's also vital for others.
.
Can be used for notes of all kinds & communication on style / efficiency .. etc
.
A recent interview with Linus Torvalds gives an explicit example or two on how important they are; especially when moving to larger projects.
(apologies, no link - search TED Talks)
.
Best to be in good form of habits.
+ 1
comments are only to make the code identification for others what it really contains.....and it is not compiled....
+ 1
no, but adding comments will make you easier to identify what things each part of code does
- 1
of course ..😀😀😀