Is it necessary to add comments | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Is it necessary to add comments

6th Nov 2016, 9:06 AM
Sam Desmond
Sam Desmond - avatar
6 ответов
+ 3
no, but comments help others understand your code
6th Nov 2016, 9:25 AM
Mihai Dancaescu
Mihai Dancaescu - avatar
+ 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. :)
9th Nov 2016, 12:16 PM
Morisset Kesner
Morisset Kesner - avatar
+ 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.
10th Nov 2016, 9:15 AM
d'Art
d'Art - avatar
+ 1
comments are only to make the code identification for others what it really contains.....and it is not compiled....
11th Nov 2016, 5:25 PM
manideep
manideep - avatar
+ 1
no, but adding comments will make you easier to identify what things each part of code does
24th Nov 2016, 11:35 AM
ThisTNTSquid
ThisTNTSquid - avatar
- 1
of course ..😀😀😀
8th Nov 2016, 6:55 AM
Dasun Madhuranga
Dasun Madhuranga - avatar