Monday, October 22, 2012

Re: [Rails] Noob question: Creating model associations

On Mon, Oct 22, 2012 at 3:48 AM, Colin Law <clanlaw@googlemail.com> wrote:

> are you sure you want a posters table? Is a poster just a user?

Taking a positive spin: the original poster (no pun intended) might be
trying to separate concerns, putting the authentication,
authorization, and accounting stuff in User, and the stuff having to
do with posting, in Poster, thus preventing a common antipattern of
User becoming a God Object.

I started doing something similar with one of my side projects, until
I found out that Heroku now limits the databases of free apps to a
number of *rows*, rather than *bytes* like they used to. :-)

-Dave

--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate