+ 1

by adding comments if their is no change in output so why we add it

i am a starter help anyone

12th Apr 2017, 2:48 PM
Parikshit Sharma
Parikshit Sharma - avatar
10 odpowiedzi
+ 8
After some months, you will feel difficult to understand your own code. In case you write comments, you can easily understand the code at anytime.
12th Apr 2017, 4:13 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
If you have comments ,its easier to remember what a particular part of code does,when you come back to coding after some time.
12th Apr 2017, 3:17 PM
Meharban Singh
Meharban Singh - avatar
+ 3
it help you and the other who reveiw to Understand the code
12th Apr 2017, 3:27 PM
Style Jr.
Style Jr. - avatar
+ 1
Adding comments is completely optional but it is generally a good practice to explain what you're doing for a certain fragment of code.
12th Apr 2017, 2:59 PM
Jacob Powell
Jacob Powell - avatar
+ 1
The benefit isn't generally meant for end users to see UNLESS you plan on making your code open source, of course. It's usually meant for you if you ever need to look back at it. If you ever end up working on a team, it's good if your team needs to read your code. In general, It's purely an organization tool.
12th Apr 2017, 3:05 PM
Jacob Powell
Jacob Powell - avatar
0
can you tell me one would see output not the coding so how is it good
12th Apr 2017, 3:01 PM
Parikshit Sharma
Parikshit Sharma - avatar
0
You'll see how important comments are when you write some code and try to understand it a month later. xD
12th Apr 2017, 3:06 PM
merkrafter
0
thanks scout
12th Apr 2017, 3:11 PM
Parikshit Sharma
Parikshit Sharma - avatar
0
You should not use them excessively, and you should make sure they are general informative instead of specific, because code change and it is often the case that comments are not updated to fit the change, so be ware
12th Apr 2017, 4:10 PM
Johnny Serup
Johnny Serup - avatar
0
ля ну где русские
10th Mar 2018, 12:44 PM
Даник Шиян
Даник Шиян - avatar