🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #4449

Hungarian Notation

#4449
From: KPUR...
Date: Tue, 11 Sep 1990 16:47
35 lines
1647 bytes
I first came across this in the 'Programmers at Work' book put out by
Microsoft Press.

It was a notation that by working from a set of rules enabled programmers
to independently come up with the same identifier names. The names were
almost unpronoucable (and as the inventor was a Hungarian, hence the notation's
name and he also worked for Microsoft).

I also remember reading a letter in CACM refering to this technique. This
gave me a little more detail. The idea was something like the following:

   p = pointer to
   i = integer
   c = character
   v = vector
   fcb = file control block

The first argument in a routine would have the number 1, second 2, etc.

There were some extra rules that I forget. But this would give stuff like:

int *pi;
char cv[10];
FILE *pfcb1, *pfcb2;

Anybody got a complete set of rules they used to generate the names?
What other conventions did you use? Did it work in the workplace? Do they
still use it at Microsoft? Does this account for the MS Word command keys
layout? :-)

If you have any info, post it then we all get the benefit!

Kevin Purcell             | kpur...@liverpool.ac.uk
Surface Science Centre    |
Liverpool University      | Omit needless words.
Technical Details
Message-ID: <90254.1747...@LIVERPOOL.AC.UK>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!ukc!mucs!liv-cs!liv!kpurcell

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!ukc!mucs!liv-cs!liv!kpurcell
From: KPUR...@LIVERPOOL.AC.UK
Newsgroups: alt.folklore.computers
Subject: Hungarian Notation
Message-ID: <90254.1747...@LIVERPOOL.AC.UK>
Date: 11 Sep 90 16:47:45 GMT
Organization: University of Liverpool
Lines: 35
Posted: Tue Sep 11 17:47:45 1990
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit