TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Eric Weigel
from: Stephen Lindholm
date: 1995-05-11 02:16:02
subject: Newbie code part 2

On (11 May 95) Eric Weigel wrote to Stephen Lindholm...

 EW> What is a BOB?
 
A light, but audible, blow, spelt in caps. 
 
 EW> The other problem with "Hungarian" notation is what
happens when you
 EW> have to change the type of an existing variable or (really important!)
 EW> structure member. The meaning and usage may be identical, but now you
 EW> have to edit perhaps hundreds of lines of code.
 
Good point. 
 
 EW> OS/2 2.x header files are a fine example.  Many things changed from
 EW> USHORT to ULONG in the transition from 1.x  Most of them changed
 EW> their names, some didn't.

My rule of thumb is now that one should use typedefs for Hungarian notation.

typedef BOB unsigned short;
BOB BOB42;

instead of

unsigned short us42;

Does that cover everything? Judicious use of typedefs should fix it all.

--- PPoint 1.22
* Origin: Until the People Come Home (1:283/120.1)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 283/120 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.