Re:On Comments in Code
by ElijahLynn on Tuesday June 15, 2021 @08:33PM
(#27523457)
Definitely agree there are still cases where "what" is useful. Especially in some code that I come across that I just can't grok (e.g. badly named things), I start writing what it does just as a rubber duck method, and I don't have capacity to refactor the whole thing right then, at least I will leave behind a "what" comment because if I had trouble grokking what it does then someone else likely will too.
[ Parent
| on HN ]
There are no comments on this comment yet.