Comment That &*☠# Code!
You think your code is so clean that it doesn't need any comments? Or are your colleagues convinced that all comments are failures? Then this talk is for you!
Let's first dispute some common arguments against commenting code:
- Comments lie?
- Tests are better?
- Good names suffice?
We'll find fault with all of them (and more)!
With that out of the way we'll categorize comments and analyze their costs and benefits. This will give us the means to discuss the end: Which comments will improve a code base?
Of course, every team has to come up with its own answer. But the vocabulary and ideas presented in this talk can help find it.