3 ms·
This is an uncharitable reading; I don't think the author is literally saying that predicate-style methods are a perfect replacement for comments. The more cha
by woodruffw 3y ago
This is an uncharitable reading; I don't think the author is literally saying that predicate-style methods are a perfect replacement for comments.
The more charitable interpretation is that they're pointing out the developer ergonomics of things like predicate methods remove the need for comments that might otherwise be reasonable to insert. Whether or not that is true is subject to reasonable debate, but it's definitely a more nuanced opinion than "Ruby's predicate idiom means I don't have to document my obvious code."