2 ms·
Comments are salt, just enough enhances, too much spoils. I'll take a codebase with no comments over pages of // assign 10 to a a = 10; particularly
by noir_lord 9y ago
Comments are salt, just enough enhances, too much spoils.
I'll take a codebase with no comments over pages of
// assign 10 to a
a = 10;
particularly when why you are assigning 10 would actually be a (more) useful comment.
- w4rh4wk5 9y agoI support the statement that comments should explain why something is done and not how something is done, in general. See my other reply why I chose to do it like this.