I discuss my naming convention in my on-line book on OOP at:

   http://www.furrypants.com/loope

(See Chapter 2)

Irv

At 8:29 AM -0800 11/21/01, Kerry Thompson wrote:
>>If I may add,  its best to follow a naming convention for the variables and
>>strictly adhere to them while assigning values to them.
>>Like, pnVarName - number.
>>       psVarName - string.
>>       plVarName - list   etc.
>>so that life would be simpler for us as well as the poor guy who might have
>>to debug our code in the future. :)
>
>I heartily second that recommendation, Sandy--thanks.
>
>This kind of notation is used in other languages, like C, as well. 
>It's called Hungarian notation, because the guy who developed it was 
>Hungarian.
>
>You can develop your own method, or I'm sure you can find info on 
>the Web (jut go to www.google.com and type in "Hungarian Notation.")
>
>Some common prefixes we use:
>
>p = property
>g = global
>l = list
>s = string
>f = float
>i = integer
>o = object
>
>You can combine them like Sandy did. ps means a property that is a 
>string, pl means a property that is a list. You can get pretty fancy 
>with them--if you do, I recommend that you include a comment block 
>at the beginning of your code explaining the system you use.
>
>Irv Kalb has posted his system, which I like. Warren Ockrassa, who 
>isn't on this list, has written a book that McGraw-Hill is 
>publishing soon, and he devotes a couple pages to Hungarian notation.
>


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to