When to Comment That Code
drewdevault.com
drewdevault.com
Instead of commenting, I try to split out functions or variables that specify the intent. Since it's code - it must be up to date.
An example from this article would be:
assert(ep.send == null); // TODO: support multiple senders
Turning into
assert(notMultipleSenders(ep.send));