DEV Community

Discussion on: Should comments in code be considered failures in coding?

 
rossdrew profile image
Ross

I'd say lack of comments [is] an indication of a wrong paradigm choice

Surely if your paradigm is correct, it easier to express without comments. I would say the exact opposite. Bad paradigm choice leads to need for comments to explain compromises made due to lack of express ability. Code is made closer and closer to English to make it more expressive, if you need to drop into English, the abstraction has failed to be expressive enough.

Thread Thread
 
combinatorylogic profile image
combinatorylogic • Edited

Even if your code reads just like plain English and it's as close to semantics of your problem domain as possible, it still only explains the "how" part. The "why?" part is missing.

Thread Thread
 
rossdrew profile image
Ross

yawn

Thread Thread
 
combinatorylogic profile image
combinatorylogic

This is what religious fanatics say when they're cornered. Uncle bob zealots are the worst of the worst, you're all beyond any redemption...