|
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.
|
|
|
|