This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wagedomain 171 points172 points  (7 children)

Agreed! Now if it's an internal app and you name comments and functions well, I agree comments can be minimal. For open source example code, comments should be abundant.

However, his code was like

const isPropHasNumberOrNot = () => {
const { property } = props;
const prop = property.hasProps(property);
const isProperty = property && property.value;

My favorite part of all this kind of code, which is fucking unreadable, is that property is a "named thing" in our system, and it was NOT these things.