8 ms·
Agree completely, that's why I said "probably" :) EDIT: Comments are useful for explaining things like: 1. Non-obvious side effects 2. Code that's working ar
by nollidge 12y ago
Agree completely, that's why I said "probably" :)
EDIT: Comments are useful for explaining things like:
1. Non-obvious side effects
2. Code that's working around a bug in a 3rd party library
3. Code that calls into some non-intuitive 3rd party API
4. Citing your work (e.g. "adapted from stackoverflow.com/blah123")
5. Why you used pattern A instead of the more standard pattern B