Agreed, generally. I'd say comments are to express things the code itself cannot. More expressive languages can get by with good naming, some declarations, and clear idioms in many cases.
The most useful kind of comments are "why" comments, about why specific design trade-offs were chosen.
Comments
Agreed, generally. I'd say comments are to express things the code itself cannot. More expressive languages can get by with good naming, some declarations, and clear idioms in many cases.
The most useful kind of comments are "why" comments, about why specific design trade-offs were chosen.