On 6/1/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:

Em Quinta 01 Junho 2006 12:40, Ed Singleton escreveu:
> I was just wondering if there was any groupthink on whether clas names
> should be plural or singular (and also the same with tables I guess).
>
> I naturally want to pluralise them (Users, Groups) etc, but that
> doesn't seem to be the norm.  Is there a particular standard?

We use it as plural here as well.  This comes from our "old" database
experience.  Each row is a user so the table is Users.  For SQL Object, on
the other hand, the class is named in singular, because each instance of it
will be one user only.  This looks like the default for SQL Object as well
(add an "s" to the end of the class name when creating the table, to say it
is plural).

it's a mix of paradims :) 

I do the single because I'm more if an OOP guy :)

--
Jorge Godoy      <[EMAIL PROTECTED]>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to