Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable/field naming conventions
Message
From
26/03/2007 17:52:47
 
 
To
26/03/2007 16:42:42
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01208623
Message ID:
01208653
Views:
24
I haven't used field naming conventions for sometime, except for primary and foreign keys. I don't use Hungarian Notatation for variables (what we use in VFP) in .Net because it's not recommended. In fact, Hungarian Notation has generally fallen out of favor outside VFP. In strict typed languages such as .Net, it's easy to see the data type where it's defined.

>Now more and more of us are using more than one development language and/or database environment, I would be interested to know what you developers out there are doing regarding continuing the 'established' VFP standard of prefixing field names with the first letter of the datatype (c for character, n for numeric, l for logical, etc.) when you are working with other software.
>
>I am so used to it now that cFirstName, cSurname, cAddress1, etc. come more naturally to me than firstname, surname, address1... The more I look at other developers' work, or on-line demos in other languages, I have not noticed the convention used anywhere else apart from the VFP community. It's a pity it hasn't been adopted more widely. Is it used anywhere else?
>
>So...
>Are you keeping up the standard, and applying it to other development environments (ie. spreading the word, and the advantages)?
>Are you keeping up the standard for VFP only, but not for SQL-Server, C#, VB.NET, PHP, etc.?
>Have you abandoned (or not adopted) the notation in VFP because no-one else outside of VFP uses it?
>
>Any thoughts would be appreciated.
>
>
>Alan
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform