• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is best practice for databse naming ?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
is there any standard or best practice for naming database objects and objects attributes ?

Thanks
 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic