Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Naming conventions.....
Message
 
To
13/05/1999 16:06:38
Philip Doran
Edward Dornan Manufacturing Ltd
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00218631
Message ID:
00218856
Views:
22
>Hello all,
>
>I can probably guess that you've all seen this one before. Is Hungarian notation the approved method of variable naming conventions in Visual Foxpro 5.0 or or they any other agreed conventions ?
>Any help or pointers appreciated.

My US$0.02 worth, to add to the good advice the others have given:

If you start work in a company who has their own naming conventions in place, obviously theirs overrides whatever the "most common" pattern is within the "FoxPro community". You've got to be able to write code your co-workers can quickly grasp.

Besides naming conventions, there are other style conventions. Just like in other tools/languages, you usually indent code between the beginning and end of a loop or a conditional (IF...ELSE...ENDIF, DO CASE...CASE...ENDCASE). Putting in comments any time you do anything at all tricky or unorthodox. Especially if you do something which appears to violate some other standard, you want to put in a comment explaining your very good reason for having done it that way...

Also of course what you're comfortable with is important. Write your code so that, if you come back to a program you wrote 2 years ago, you'll be able to understand it!

Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Reply
Map
View

Click here to load this message in the networking platform