Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To use or not to use Hungarian Notation, this is the question (o.t)

Author: Roberto Nerici

Date: 07:41:54 03/05/04

Go up one level in this thread


On March 05, 2004 at 06:05:47, Daniel Clausen wrote:

>About the signed/unsigned thing: in my projects, it's usually clear what it is:
>if the domain of the variable excludes negative numbers, it will be unsigned,
>otherwise signed. For example "numberOfEntries" will be unsigned, since a
>negative number simply doesn't make any sense.

True enough in that case.

However your example pointed out a difference between our styles (although I
think the word 'style' is stretching it a bit in my case!). I would just use
nEntries (or uiEntries for an unsigned integer) because the hungarian prefix has
already made it clear (to me) that it is a number.

So there, Hungarian makes for shorter names :-)

>>The use of Hungarian notation is one of those computer-religous issues that
>>people get very worked up about.
>
>Agreed. :) Nevertheless I had sensible discussions with people from both camps
>and I could understand their reasoning behind the choice.

Encouraging news :-)
Unlike some topics we have on this forum... :-(

Roberto/.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.