I am a Windows coder and I also object to Hungarian on the same basis.
I also like to use the prefix area of names of function arguments to
designate whether it is an in, out, or io argument (something that I
can't tell from the type).
Mike
I object to Hungarian notation on the premise that having the same information in two different places, in a computer, is just asking for trouble and contradiction. The data declaration is already one place, so that is enough already. The compiler will tell you if you get it wrong.
Original Message: ----------------- From: Ron Kuper RonKuper@xxxxxxxxxxxx Date: Thu, 10 Feb 2005 12:03:39 -0500 To: gmpi@xxxxxxxxxxxxx Subject: [gmpi] Re: Coding Conventions
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
-------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
---------------------------------------------------------------------- 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
-- Mike Berry Adobe Systems
---------------------------------------------------------------------- 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