TrainBeaser for iPhone
The moose likes Other Languages and the fly likes singular or plural names Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Other Languages
Reply Bookmark "singular or plural names" Watch "singular or plural names" New topic
Author

singular or plural names

Suganya Ram
Greenhorn

Joined: Jun 12, 2008
Posts: 18
When should I use singular or plural names
Why does Rails do pluralization


SuganyaRam
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
Originally posted by Suganya Ram:
When should I use singular or plural names?

When appropriate.

Originally posted by Suganya Ram:
Why does Rails do pluralization?

Because it's more natural to talk about "an account" when you're referring to an object and "accounts" when you're talking about the database table that those objects are stored in. It just makes sense.

In fact, I can't remember anyone suggesting that we should name the database table as "account" in such a scenario. The Rails developers have just made that universal default a default in the framework, too. If you don't like that default, you can override it (but things are a lot easier if you follow the convention).


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
 
 
subject: singular or plural names
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture