+ 1
by adding comments if their is no change in output so why we add it
i am a starter help anyone
10 ответов
+ 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.
+ 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.
+ 3
it help you and the other who reveiw to Understand the code
+ 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.
+ 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.
0
can you tell me one would see output not the coding so how is it good
0
You'll see how important comments are when you write some code and try to understand it a month later. xD
0
thanks scout
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
0
ля ну где русские