Walter Meester
HoogkarspelNetherlands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only