Forums Register Login

what is best practice for databse naming ?

+Pie Number of slices to send: Send
Hi
Thank you for reading my post
is there any standard or best practice for naming database objects and objects attributes ?

Thanks
+Pie Number of slices to send: Send
According to Steve McConnell in Code Complete 2, Chapter 11:

A variable should fully and accurately describe the entity the variable represents.



The same applies for classes, methods, etc.

Chapter 11 goes on to discuss name lengths, naming conventions, and more.

I often use the pattern name in the class name to help convey what the class does (i.e., WidgetDAO or WidgetMemento.)

Is there a specific type of class/method that you are having difficulty naming?

Just don't do what a former coworker of mine did. He named everything Fred. Fred1, Fred2. Seriously. The rest of us were ready to inflict bodily harm.
[ September 03, 2006: Message edited by: Scott Johnson ]
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 492 times.
Similar Threads
Serializable domain objects
Please explain Garbage Collection
restricting users resubmiting requests
constructor is necessary ???
Shadow variables
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:19:19.