| ▲ | epgui 4 days ago | |||||||||||||||||||||||||||||||
What you describe really is describing the "why", not the "what". The line between the two is not that blurry: assume your reader has total knowledge of programming, and no knowledge whatsoever of the outside world. Comments about what the code does to bits are the "what"; comments about how the code relates to the outside world are the "why". The rest is a matter of taste and judgment. | ||||||||||||||||||||||||||||||||
| ▲ | lukan 4 days ago | parent [-] | |||||||||||||||||||||||||||||||
Just curious, you advice against "what" comments? "assume your reader has total knowledge of programming" Because if I know my fellow programmers have like me not a total knowledge of programming, what comments before footguns seem useful to me. Or when there was a hack that is not obvious. To me it mostly is not a question of taste, but context. Who will read the code? | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||