home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!cmcl2!panix!rryan
- From: rryan@panix.com (Rob Ryan)
- Subject: Re: Use of Hungarian notation
- Message-ID: <1992Dec22.194536.29925@panix.com>
- Date: Tue, 22 Dec 1992 19:45:36 GMT
- Distribution: comp
- References: <9212220826.PN09838@LL.MIT.EDU>
- Organization: Panix, NYC
- Lines: 20
-
- In <9212220826.PN09838@LL.MIT.EDU> khamsi@ll.mit.edu (Sarir Khamsi) writes:
-
- >I have just started programming in Windows and was wondering if there
- >was anyone out there who knows if Hungarian notation for variables is
- >widely used or recomended. Thanks in adance.
-
- It is pretty widely used (in C/C++ anyway) and is definitely
- recommended. It makes code much more readable. There are often
- variations from programmer to programmer, but the biggies "sz", "n",
- "f", "hwnd", etc. are pretty consistent and make it infinitely easier
- to (a) allow someone else to read and understand your code; and (b)
- allow you to understand your code having been away from it for a
- while.
-
- Definitely use Hungarian naming. It takes so little effort and makes
- your code much more readable.
-
- --
- Rob Ryan
- rryan@panix.com
-