Re: Hungarian notation in C++ (is it used or not today, and if so, how?)
From: Thomas Matthews (Thomas_MatthewsSpitsOnSpamBots_at_sbcglobal.net)
Date: 10/27/04
- Next message: Fred Astair: "Your C++ Homework"
- Previous message: Thomas Matthews: "Re: odbc connecting . writing and reading"
- In reply to: Colin Girling: "Hungarian notation in C++ (is it used or not today, and if so, how?)"
- Next in thread: James Dennett: "Re: Hungarian notation in C++ (is it used or not today, and if so, how?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 27 Oct 2004 20:57:27 GMT
Colin Girling wrote:
> I had another discussion going about the use of Hungarian notation, and
> pointed out that all the companies I have worked for in the last 15 years
> have been useing this.
> If this is no longer used, what is used (or do people use nothing and just
> guess on the data type?)
>
> Also, I discovered there didn't seem to be any one standard, but many
> variations.
>
> The prefixes I am familiar with are these:
>
> p (pointer)
> c (constant)
> s (string)
> sz (null terminated string)
> l (long)
> u (unsigned), ul meaing unsinged long
> i (int)
> n (any integer type number)
> d (double)
> f (float or flag, varies)
> by (unsigned char, or byte)
> c (char)
> g or g_ (sometimes used for global)
> m_ (member variable)
>
>
> Any comments would be welcome, as I am always interested to hear what other
> people are using (if anything?)
> Thanks.
>
>
Personally, I'd rather spend my time understanding
an algorithm of a function that trying to figure out
puzzle of the Hungarian Notation prefix and validate
that the prefix is correct.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
- Next message: Fred Astair: "Your C++ Homework"
- Previous message: Thomas Matthews: "Re: odbc connecting . writing and reading"
- In reply to: Colin Girling: "Hungarian notation in C++ (is it used or not today, and if so, how?)"
- Next in thread: James Dennett: "Re: Hungarian notation in C++ (is it used or not today, and if so, how?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|