|
|
|
|
|
by phyzome
848 days ago
|
|
"Why" comments typically refer to things outside of the actual code, such as: * Past incidents * Regulations * What the code used to do, and why that was bad The whole point of a really good comment is that you can't infer it just by looking at the code. That's why it's there at all! |
|
Yes they become paragraph long. But that's the point. That's where I search for "why". And not just "why", "when, why and with what reasoning?".
Imagine if there were some interference that could derive a comment based on history and current code!