[gmpi] Re: Coding Conventions

  • From: "Ron Kuper" <RonKuper@xxxxxxxxxxxx>
  • To: <gmpi@xxxxxxxxxxxxx>
  • Date: Thu, 10 Feb 2005 12:03:39 -0500

I have question about naming conventions (as opposed to coding
conventions).

Before I got seriously into Windows coding, I worked at a contracting
shop where they had a naming convention where global variables began
with g, parameters began with p, locals began with l.  So:

Extern int gNumItems;

void Foo( int pNumThings, char* pText )
{
        float lValue;
}

Imagine my adjustment when I had to switch to Hungarian. ;-)

My question(s) are:

- Why do you object to Hungarian?  Do you know the history of it and its
purpose?

- Do any Windows coders on this list object to Hungarian?

- Is there some other naming scheme that we can use to enhance
readability and debuggability? (IMO these are the main benefits of
Hungarian.)

----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: