News for hackers. Stuff that matters.
Re:I've never seen a language's style guide recommend avoidi... by ttty on Wednesday July 23, 2014 @07:21AM (#8073730)
Then you will read the comment that says to do one thing but the program will do a completely other thing. I don't see any problem, do you?
Re:I've never seen a language's style guide recommend avoidi... by mike_hearn on Wednesday July 23, 2014 @07:39AM (#8073784)
That's why good comments are about explaining WHY you're doing something, or HOW to use the code, and possibly making the code itself clearer but only if there's no way to do that by introducing better variable and method naming.

Comments are highly valuable but like any tool they can be abused, or done in such a way that they don't make things better.

Re:I've never seen a language's style guide recommend avoidi... by wtetzner on Wednesday July 23, 2014 @08:01AM (#8073862)
The point is that comments can become out of date, and there's no automated way to enforce they stay up to date.