Re: Why is Hungarian Notation Considered Evil?

From: Robert C. Martin (unclebob_at_objectmentor.com)
Date: 06/06/04


Date: Sun, 06 Jun 2004 16:34:24 -0500

On Sun, 6 Jun 2004 07:08:05 -0400, "Daniel Parker"
<danielaparker@spam?nothanks.windupbird.com> wrote:

>"Robert C. Martin" <unclebob@objectmentor.com> wrote in message
>news:bt55c09c0o5p9fkggrb1p8ife638u53u46@4ax.com...
>> On 4 Jun 2004 07:23:27 -0700, danielaparker@hotmail.com (Daniel
>> Parker) wrote:
>>
>> >Incidentally, if there is a difference between the specification of a
>> >function, perhaps expressed in Javadoc comments, and the
>> >implementation, which is the lie?
>>
>> If the comment does not actually describe the code, then the comment
>> is a lie.
>
>What if the comment describes the intent of the code, say that the code is
>re-entrant, but the code does not match the intent?

Then the comments are lies.

-----
Robert C. Martin (Uncle Bob)
Object Mentor Inc.
unclebob @ objectmentor . com
800-338-6716

"The aim of science is not to open the door to infinite wisdom,
 but to set a limit to infinite error."
    -- Bertolt Brecht, Life of Galileo