home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / tools / 1801 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.2 KB  |  32 lines

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