+ 2
what is the point of haveong comments if programming just ignores
4 ответов
+ 3
Comments are used in so many different ways, and I would recommend using them when writing out large programs.
Comments can be used for example to say what a cetain function, or loop does, because just by looking at it, it can't always be clear. This greatly improves the readability of the code and people are going to be more likely to understand what's going on.
Additionally, comments can also be used temporarily, for the benefit of the developer, for example, using comments to tell themselves what they plan to implement in the future, sort of like notes.
Comments are great, don't be afraid to use them. Pretty much no downsides to using them.
+ 2
Not only are comments for yourself, but for other developers as well. There will come a point where your programs will become thousands of lines and comments might help you remember what they all do.
When you work for a software company the code will become millions of lines (Visual Studio 2012 has nearly 50 million). Every time that I start at a new company or project I pray with all my might that the previous decelopers liked to put comments, because it is a major pain to be dropped in the middle of that with no guidance.
+ 1
comments are used for our own reference purposes
+ 1
If u want someone else to understand your code,comments come handy,used for better understandability