+ 5
why comments are necessary?
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🙂
+ 5
It will increase code readability
+ 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! :)
+ 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,
+ 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.
+ 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.
+ 1
For understand.
0
what is the answer to --
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
0
Why are comments necesarry
That's how it's written
0
Simply:It's help to understand codes