PLEX86  x86- Virtual Machine (VM) Program
 CVS  |  Mailing List  |  Download  |  Newsgroups

Hungarian Notation


Your Ad Here

Your Ad Here

Nice Site On Communist Era Hardware in Hungary 3223
wrote, in part: I was just noting that I recognized the Monty Python reference... but, as it happens, on my web page, I discuss a programming language which abides by a...

I think the current applications (e.g. lpszFirstName) of Hungarian notation are abominations. Merely echoing in the variable's name its storage clbutt and prototype adds no information. Reading the wikipedia article would lead me to believe that Simonyi's original concept was much more like what I imagine HN could be.

Using a standardized shorthand notation to *amplify* on the types provided by the compiler can be an extension of the doctrine "choose meaningful variable names", i.e. int numberofsheep can become int nSheep. 1

I worked on a large project many years ago where we had our own modified notation where the prefix sigils were all defined by their semantics, and this worked very well -- it was a good balance between unbearablylongvariablenames and inscrutabble names like 'pobjw'.

Why we didn't just go insane with typedef is now lost in the mists of my memory (and, my best recollection is that we DID go insane with typedef, so we must have had SOME reason ... )

1 ... in the wikipedia article they describe c for count, while the n prefix is a meaningless 'integer' (well, duh, we know it is an integer, we see it right there in the declaration 'int'!)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Computer software consists of only two components: ones and zeros, in roughly equal proportions. All that is required is to sort them into the correct order.



Your Ad Here

List | Previous | Next

Nice Site On Communist Era Hardware in Hungary 3223

Alt Folklore Computers from Newsgroups

The #1 Usenet Provider on the Internet

Nice Site On Communist Era Hardware in Hungary 3221