0

Writing Comments

Do you actually have to write what it is for the code to work? For example would the document comment actually have to say “this is a document comment” I am using Java

14th Mar 2018, 12:54 PM
Alyssa
3 Answers
+ 12
U don't need to write comments for a code to work , but sometimes to make understand others than what have U have done ... we need to write comments or To write informations like "author name , date etc" we write comments
14th Mar 2018, 1:20 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
As Gaurav pointed out these comments are not only for the original developer but they are also for those who do system analysis and troubleshooting. ================ The more complexed the coding the more comments should be directed pointing to where or what is being engaged / firing especially were several languages and activities are involved.
14th Mar 2018, 2:48 PM
BroFar
BroFar - avatar
+ 4
Code works without comments. Comments are for the benefit of human developers reading the code. The Compiler will frankly ignore their existence.
14th Mar 2018, 2:23 PM
josh mizzi
josh mizzi - avatar