4 ms·
Or, you know, learn to write useful comments already. I know it's hard, but doable, really.
by klibertp 14y ago
Or, you know, learn to write useful comments already. I know it's hard, but doable, really.
- jlogsdon 14y agoExactly this. Don't litter your code with comments, use them when they make sense. For example, if you're doing something "against the grain" but have a good reason: leave a comment explaining why.
- qu4z-2 14y agoI quite liked the previous article we had "Comments are apologies" or something. HN seemed to rail against it overall, but it makes sense to me. It's sort of "Sorry, but this has to be this way because API <x> does thing <y>". Or "This is a bit convoluted, but necessary because the naive way is too slow." That doesn't have to be the literal text of the comments, but that's the sort of mindset they should be written in, imo.