3 ms·
> If your names and design are well thought out Sure, but how often does that happen?
by j88439h84 8y ago
> If your names and design are well thought out
Sure, but how often does that happen?
- breck 8y agoIt usually happens in good code if the language supports it. But I agree, not enough and comments are great as a stopgap until the thing you need to explain can be explained in the programming language. But sometimes that can’t be and so you do need to resort to comments. It’s like types in doc comments being used as a stopgap until a language added types. I hypothesize (I plan at some point to crunch some data here) the more comments the worse the language, and so you’d see a pattern like Python 3 code having fewer comments on average than Python 2 code.