+ 5

why comments are necessary?

22nd Jan 2019, 9:50 PM
MD.Abdullah Al Naeim
MD.Abdullah Al Naeim - avatar
11 odpowiedzi
+ 14
Well, comments help us better understand and organise our code. They allow us to write a short description on what we are doing and it allows other who are viewing your code, to understand and learn from it. Another nifty trick with comments is when you look back on your code, it helps you remember why you did it that way and may inspire you to make your code more efficient. I hope I helped answer your question reguarding the subject, and if you need more information, or I wasn't clear enough, I will be happy to explain further🙂
22nd Jan 2019, 10:02 PM
Mal
Mal - avatar
+ 5
It will increase code readability
24th Jan 2019, 1:21 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 4
Generally (not only in HTML) comments help understanding the code. Especially when you work in a team on a big project, comments are very useful to explain what is happening (without reading through all the code that can get very cryptic). Thus they save you time and prevent headache! :)
22nd Jan 2019, 10:03 PM
Felix Pernat
Felix Pernat - avatar
+ 3
They help outside viewers understand what parts of code do, and it will be very usefull for teams of web developers with different coding styles,
22nd Jan 2019, 10:00 PM
AAAAAAA
AAAAAAA - avatar
+ 2
If you will need to change something it will be easier to remember the structure of your code again with the comments (especially if the code was complicated, you just may forget what moved you to write it this way). And it will help someone else who works with you or after you to understand your code (it is kinda politeness). If you work in a command of developers, then others even may be angry with you if you will have a habit write your code without comments. Haha, then it would be better to leave the comments or someone may put something in your drink... (it's a joke, of course, but who knows...) Well, that's why.
23rd Jan 2019, 5:02 PM
ShadoWWW🏴
ShadoWWW🏴 - avatar
+ 1
comments are necessary because if some other programmer views the source code he can easily understand the things/logics used while programming.And also writing short comments while programming is a good practise and is a part of perfect programming.
23rd Jan 2019, 4:28 PM
navodit yadav
navodit yadav - avatar
+ 1
For understand.
23rd Jan 2019, 8:22 PM
Jhonatan Stiven
Jhonatan Stiven - avatar
0
what is the answer to --
6th Feb 2019, 5:13 PM
Ryne Maras
0
it's something like a note for your code... so, if u want to rememeber something about the code or u want the programmer to understand the code better, comments are very helpful and efficient
8th Feb 2019, 2:37 PM
Vini Jilljill
Vini Jilljill - avatar
0
Why are comments necesarry That's how it's written
21st Feb 2019, 12:44 PM
Arvid
0
Simply:It's help to understand codes
30th Aug 2019, 8:47 AM
Khaled Mostafa Ibrahem
Khaled Mostafa Ibrahem - avatar