DEV Community

Discussion on: Code comments are (mostly) a violation of DRY

Collapse
danrot90 profile image
Daniel Rotter Author

The last analogy is not really correct... The code is some kind of instruction. The other suggestions you have mentioned I would consider good comments: E.g. that something is necessary because of a browser bug is not clear by just looking at the code. Also adding a comment if you know how to improve but you don't have time is a good use case (of course it would be better to just fix it right away, but that is very idealistic).