If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#21
|
|||
|
|||
Proper Access Naming
"Rick Brandt" 写入消息 ... On Sat, 14 Mar 2009 07:30:28 -0800, Larry Daugherty wrote: Larry Linson's reasoning is excellent and I endorse it in all respects given. I'll just add my $.02. The thing to be aware of is your own motivation in using Access and in using these newsgroups. My overarching goal is to provide as much value to the client as I am able. While budget and time constraints may limit how much value you can put into a project, we all have our own standards and limits as to the thresholds we observe. I don't develop without the use of comments nor without the use of a naming convention. I think someone should point out that what most Access/VB people call a "Naming Convention" is not necessarily what people in other environments call a naming convention. What is very common in other programming environments is a naming convention like... ClassName methodName propertyName variableName CONSTANT_NAME This is then combined with the standard of using no characters besides A- Z, 0-9, and the underscore. A naming convention that involves the use of prefixes to "type" an object is not used much outside of Access/VB and outside of those circles it is almost universally derided. That prefixes "make it easier for the next guy" is unsupportable and frankly laughable. For a developer to see a variable named something like "emailAddress" and react with "What is it? Is it an Integer?. A String? This is confusing!" would only mean that he is incompetent. There are a great many people who *prefer* prefix-naming and are *more comfortable* when they see it compared to when they don't. To them I say go ahead and use it. Where I draw the line is when people suggest to others that your code will look unprofessional if you don't toe the same line. That is rubbish. |
#22
|
|||
|
|||
Proper Access Naming
Yes, I need to rename both my field names and all my tables, forms, queries
and reports. I decided to use the Reddick convention and also Graham's idea about a table prefix on my field names. I hope that the find and replace utility I downloaded isn't too confusing! I am not a programmer by any means and the chances that the next person in my department to maintain this database is a programmer are slim to none. However, I would like concise, clear and sensible names anyway. So I appreciate all of the feedback. Thanks again! "Graham Mandeno" wrote: Hi Larry I might have misconstrued, but I inferred from Stacey's original question that s/he was talking about table and field names. I'm not sure how Greg's VBA conventions are relevant in that context; -- Cheers, Graham M "Larry Linson" wrote in message ... "Stacey Crowhurst" wrote ... Is there anywhere that has "do's" and "dont's" for naming in Access? I'm really surprised that no one has recommended the most commonly used naming convention, the Reddick Naming Convention. It is documented in detail at Greg Reddick's site, http://www.xoc.net. Larry Linson Microsoft Office Access MVP |
#23
|
|||
|
|||
Proper Access Naming
Graham,
The Reddick Convention covers standards for naming objects, as well as the prefix and suffix definitions we normally associate with the convention -- including the priority and order of words concatenated to make the names. If I recall correctly, Greg Reddick does not recommend using prefix or suffix in the names of Fields in Tables; I could be wrong -- perhaps it was Stan Leszynski who didn't like prefixes or suffixes in Field names. But I do remember they disagreed that prefixes/suffixes should be used "everywhere". Regards, Larry "Graham Mandeno" wrote in message ... Hi Larry I might have misconstrued, but I inferred from Stacey's original question that s/he was talking about table and field names. I'm not sure how Greg's VBA conventions are relevant in that context; -- Cheers, Graham M "Larry Linson" wrote in message ... "Stacey Crowhurst" wrote ... Is there anywhere that has "do's" and "dont's" for naming in Access? I'm really surprised that no one has recommended the most commonly used naming convention, the Reddick Naming Convention. It is documented in detail at Greg Reddick's site, http://www.xoc.net. Larry Linson Microsoft Office Access MVP |
#24
|
|||
|
|||
Proper Access Naming
"Rick Brandt" wrote
What is very common in other programming environments is a naming convention like... ClassName methodName propertyName variableName CONSTANT_NAME This is then combined with the standard of using no characters besides A- Z, 0-9, and the underscore. What you describe here, Rick, is applicable to "object-oriented" environments. We have had naming conventions of various sorts, in the computer business, long before OOP was even a gleam in its originators' brains* -- some were arbitrary, for which you would need the project's Data Dictionary; others more logical. * I suspect I used naming conventions before some of the originators of OOP were even gleams in their parents' libidos. GRIN A naming convention that involves the use of prefixes to "type" an object is not used much outside of Access/VB and outside of those circles it is almost universally derided. IIRC, that is called "Hungarian" because it was proliferated by Charles Simonyi (sp?) who was in charge of programming at, of all places, Microsoft. Microsoft, of course, produced VB and the derivative VBA, but did very little programming in either -- so I am quite certain that "Hungarian" was used, and widely, outside Access and VB circles. And, "laughable" and "rubbish", like "beauty" and "value", are in the "eye of the beholder". Larry Linson Microsoft Office Access MVP |
#25
|
|||
|
|||
Proper Access Naming
"Larry Linson" wrote in
: "Hungarian" Reverse Hungarian. -- David W. Fenton http://www.dfenton.com/ usenet at dfenton dot com http://www.dfenton.com/DFA/ |
#26
|
|||
|
|||
Proper Access Naming
"David W. Fenton" wrote in
36.89: "Larry Linson" wrote in : "Hungarian" Reverse Hungarian. Oops. No, it's just Hungarian -- the "reverse" part is implicit, and the whole reason it's called Hungarian, because Hungarian names are in the opposite order, i.e., I'd be Fenton David in Hungarian. I guess I knew all of that at one time, but somewhere along the line, it got tossed out of my brain to store some piece of no doubt useless information. -- David W. Fenton http://www.dfenton.com/ usenet at dfenton dot com http://www.dfenton.com/DFA/ |
#27
|
|||
|
|||
Proper Access Naming
Larry Linson wrote:
* I suspect I used naming conventions before some of the originators of OOP were even gleams in their parents' libidos. GRIN Then Sir, you must be of considearable age, were those conventions used on computers, too? ;-) http://en.wikipedia.org/wiki/Kristen_Nygaard http://en.wikipedia.org/wiki/Ole-Johan_Dahl -- Roy-Vidar |
#28
|
|||
|
|||
Proper Access Naming
Hi Roy
You clearly haven't met Larry. He is indeed a Patrician amongst Patricians :-) -- Cheers, Graham M "RoyVidar" wrote in message ... Larry Linson wrote: * I suspect I used naming conventions before some of the originators of OOP were even gleams in their parents' libidos. GRIN Then Sir, you must be of considearable age, were those conventions used on computers, too? ;-) http://en.wikipedia.org/wiki/Kristen_Nygaard http://en.wikipedia.org/wiki/Ole-Johan_Dahl -- Roy-Vidar |
Thread Tools | |
Display Modes | |
|
|