--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
A good informative comment sounds great, but maybe the recommendation should be to do that in addition to providing the bug link. The bug link can provide other value. It may be blocking another bug, provide links to crash data, etc. Bug links are great for code archaeology :)
--
On Tue, Jul 19, 2016 at 5:14 PM, Darin Fisher <da...@chromium.org> wrote:A good informative comment sounds great, but maybe the recommendation should be to do that in addition to providing the bug link. The bug link can provide other value. It may be blocking another bug, provide links to crash data, etc. Bug links are great for code archaeology :)There's no rule against bug links, so people are welcome to do what they think is clearest. That said, I've never run into a comment that has both (a) such perfectly sufficient description locally that looking elsewhere is unnecessary to completely understand all relevant context, and (b) a link to a bug that has interesting additional detail and doesn't require nontrivial effort to parse out precisely what that information is and how it should be understood and applied.
I'm sure it's possible, but in my experience bug links end up undercutting (a) and usually failing to provide (b).PK
--
Without any comments, someone is likely to see the weird hack/workaround/whatever-else-that-needs-explaining and "fix" it. Without a bug link, the comments become awkward:// TODO(<username>): remove workaround when workaround is no longer necessary, [insert a bunch of redundant explanation here and elsewhere]and whoever fixes the bug can't just grep the code to figure out what can be simplified.In fact, I haven't encountered many bug links that aren't of the above type; can you provide examples of what's unhelpful (anonymized if you like)?