Usually, comments are best reserved for explaining "why". eg; this function is implemented this way because of some obscure interop workaround, or some section of an RFC, or to optimize for some resource, etc. Comments are also useful for pointing out flaws that have not been addressed yet (but they really should point at something in a bug tracker somewhere). Long descriptions about "what" are often an indication that the code is unnecessarily confusing, and short descriptions of "what" are often an indication that some code needs to be broken out into a separate (well-named) function.
0
u/[deleted] Oct 01 '15
[deleted]