|
Code is what computers understand and comment is what human can understand. Requirement and coding are some thing different. We can not identify code on the basis of requirement. Comment is meant to quickly explain your code [And to reduce 15mins into 15secs.. ]
"When you don't know what you're doing it's best to do it quickly"- SoMad
|
|
|
|
|
The problem I have with commenting the "what" is that when making changes, you should also update the comments. If that fails to happen for whatever reason, the "what" comment is no longer explains the actual code. You're only going to find out when reviewing both the code and comment.
|
|
|
|
|
Rohan Leuva wrote: Code is what computers understand and comment is what human can understand
*Machine* code is what computers understand. High level programming languages are designed for people.
|
|
|
|