Hacker News new | ask | show | jobs
by ranting-moth 1001 days ago
Code is logic. Comments are wisdom.
1 comments

I have seen many comments that are the opposite of wisdom.
I have to agree. Even in some cases wisdom went into hiding and applied for witness protection when he saw what was being written.

But I think it's a good phrase to keep in mind when writing comments.

Indeed, and I have also seen much code which does not do what is alleged by the names given to its identifiers.
And sometimes it severely lacking. I heard of this 5000 line "onClick()" function where most of the program, screaming and yelling, had been forcefully stuffed.