Steve McIntyre at Climate Audit has a very interesting discussion on the giving of credit.
Update: Roger Pielke Jr. blogs on this in rather frank terms:
The short story is that a professor from Ohio State found an error in a paper on Antarctic temperature trends in Nature. He published his analysis of the error on the blog Climate Audit and sent a gracious note to the authors letting them know of his discovery.
What did the authors do? They turned around and submitted the correction to Nature as their own work, and then had it published under their own names without so much as an acknowledgment to the Ohio State professor who actually did the work and made the discovery of the error.