From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,af40e09e753872c X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,30e368bdb3310fe5 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,30e368bdb3310fe5 X-Google-Attributes: gid1014db,public X-Google-Thread: 10db24,30e368bdb3310fe5 X-Google-Attributes: gid10db24,public X-Google-Thread: 1008e3,30e368bdb3310fe5 X-Google-Attributes: gid1008e3,public X-Google-Thread: 103376,30e368bdb3310fe5 X-Google-Attributes: gid103376,public X-Google-Thread: f8c65,30e368bdb3310fe5 X-Google-Attributes: gidf8c65,public From: jhd@herold.franken.de (Joachim Durchholz) Subject: Re: Hungarian notation Date: 1996/01/08 Message-ID: <60SqRIQF3RB@herold.franken.de>#1/1 X-Deja-AN: 134548085 references: <30C40F77.53B5@swsbbs.com> <4cd8fc$oud@news.manawatu.gen.nz> content-type: text/plain; charset=ISO-8859-1 mime-version: 1.0 newsgroups: comp.lang.eiffel,comp.edu,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3 Date: 1996-01-08T00:00:00+00:00 List-Id: Mike.Palmer@tus.ssi1.com wrote 06.01.96 on Re: Hungarian notation: > Joachim Durchholz wrote: > > > > > Consider also that variable names may be misleading anyway. In that > > > sense there's no great difference between > > > > > > someProc(MyString) > > > > > > and > > > > > > someProc(pszMyString) > > > > > > either could quite happily refer to any other data type. > > > > > > > This example does not occur in real life. Or rather, it better should not! > > Anybody using meaningless names like "MyString" should be thrown out of > > the programming business. Depending on the actual semantics of "someProc", > > the parameter should be called "Message" or "Options" or "ParserInput" or > > whatever. > > > > -Joachim > > One hopes you just missed the point here. Hungarian notation does not > attempt to help you keep track of _what_ your variable is, it gives you a > framework to keep track of what _kind_ of variable it is. One would also > note that someProc is not a very descriptive name, but so what? In the first > example, I have _no_ clue what type of variable MyString is, although I > could probably deduce that it is a string. In the second example, the prefix That's exactly what I meant. Sorry that I didn't make my point clear. > tells me that it is a Pointer to a Zero terminated String. -Joachim -- Im speaking for myself here. ## CrossPoint v3.02 ##