Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is best practice for databse naming ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • 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
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic