A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Proper Access Naming



 
 
Thread Tools Display Modes
  #21  
Old March 15th, 2009, 05:32 PM posted to microsoft.public.access
huangda 晋江兴达机械
external usenet poster
 
Posts: 21
Default 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  
Old March 16th, 2009, 10:28 PM posted to microsoft.public.access
Stacey Crowhurst[_2_]
external usenet poster
 
Posts: 88
Default 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  
Old March 18th, 2009, 04:59 AM posted to microsoft.public.access
Larry Linson
external usenet poster
 
Posts: 3,112
Default 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  
Old March 18th, 2009, 05:11 AM posted to microsoft.public.access
Larry Linson
external usenet poster
 
Posts: 3,112
Default 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  
Old March 18th, 2009, 09:09 PM posted to microsoft.public.access
David W. Fenton
external usenet poster
 
Posts: 3,373
Default 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  
Old March 18th, 2009, 09:58 PM posted to microsoft.public.access
David W. Fenton
external usenet poster
 
Posts: 3,373
Default 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  
Old March 21st, 2009, 09:00 AM posted to microsoft.public.access
RoyVidar
external usenet poster
 
Posts: 417
Default 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  
Old March 22nd, 2009, 09:05 AM posted to microsoft.public.access
Graham Mandeno
external usenet poster
 
Posts: 593
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.