Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming conventions again........
Message
From
29/08/1999 03:36:32
Walter Meester
HoogkarspelNetherlands
 
 
To
28/08/1999 13:56:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258085
Message ID:
00258926
Views:
19
Hey Walter =

>Naming conventions are not new to xBase. And not new to Visual C++, Visual Basic, etc. Generally, in school, the languages have restrictions on the size of the varname so clarity of function is more important than type IMHO.

Restrictions ? Not that i was aware of. Actually it was clearly noted that a chracter limit on varnames ws never a reason to skip good namecalling. I Know that type prefixes are not new to xBase. But i've got the *feeling* that it is used much more in xBase than in other languages while there is less need to do so (OOP, Long variable names, NON stricttype reasons)


>>- Graham Glass, UNIX for Programmers and Users
>>- Rober.L. Kruse, Programmeren met data structuren (dutch) translated from:
>> Hemel Hempstead, Programming with datastructures
>>- Translated version of Kernighan & Ritchie - The C programming language
>>- J.J.M. Mesman, Pascal en PSD's (Dutch only)
>>- Translated version of Stanley B. Lippman , C++ primer. 2nd ed
>>(Only naming conventions are used for pointers and infrequent for types)
>>- Doug Bell, Ian morrey, JohnPugh, Software Engineering A Programming approach

>None of these are VFP books.

No, but as you said yourself, naming conventions are not limited to xBase. I don't own that many VFP books (as i'm trying to figure things out myself)

>>O.k. But what about a self invented menubutton, made out of a bunch of other controls ?? Do I have to invent another prefix. What about OLE controls ??? Do I have to call them oleTreeview or something ?

>That's not a bad question. Your menubutton is more than likely a compound object and is bound into a container of some sort, right? In those cases, I use "con" as the prefix for Container (if it's a container). "frm" if it's a Form.

Hmmmm. What when I decide (with a future release of VFP) I choose for another solution and implement it by a single command button (the main reason it was implemented in a container is that command buttons cannot hold bmp graphics besides the text). Do I have to rename all the prefixes in all my projects ??

Besides that I think prefixnames should not apply to how they were implemented, but by what they are: a menubutton. So a prefix of mnu or mnb would be a more logical choice. But then again if another programmer reads this, he will probably have trouble to figure out what the **** mnb stands for.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform