3 ms·
I love Ruby and this is spot-on. Comments in any language should explain why and not what.
by stouset 3y ago
I love Ruby and this is spot-on. Comments in any language should explain why and not what.
- nextos 3y agoSure, not justifying code without comments. But keep in mind Ruby is a bit like Lisp, where there is a strong tradition of building DSLs. Hence, lots of Ruby code is a sequence of trivial declarative blocks that look like natural language. In these parts of the code, comments are redundant. I think that is the OP's point. Other parts definitely need them.