I dont understand why u need comment | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

I dont understand why u need comment

27th May 2017, 6:12 AM
andres palomo
andres palomo - avatar
6 Answers
+ 26
Make sure you comments your codes, label them, organized it and your comments will guide you through it... You should make that your habit commenting your codes is very important especially if someone else wanted to help you out it'll be life safer... 👍👍👍👍
27th May 2017, 6:30 AM
Myji Star
Myji Star - avatar
+ 4
let me give u a scenario I am coding a webpage of 2000 lines of code, and then I go to sleep and after that I want to make change in a specific thing but how will I do it if I don't know where is it in the code that's where comments come to use u can use them as labels
27th May 2017, 6:15 AM
_Retr0/-
_Retr0/- - avatar
+ 4
comments help in code maintance.For example, if you had to fix a bug in your 3000-line program, you would easily spot the problem with the help of comments. They also help others understand what your code is doing.If others need to improve it, they will quickly do it.
27th May 2017, 12:08 PM
Perez Ogayo
Perez Ogayo - avatar
+ 3
For yourself and for others who want to modify or simply fix your bugs
27th May 2017, 6:25 AM
Roger
+ 3
Comments can be extremely helpful if someone else is going through your code, or if you are returning to your OLD code
28th May 2017, 10:29 AM
Imran Isak 💻
Imran Isak 💻 - avatar
+ 1
So when you or other person opens your code after long time, the person should easily understand about the purpose behind writing tgat particular code.
31st May 2017, 5:57 AM
Abhishek Agarwal
Abhishek Agarwal - avatar