On Mar 15, 2011, at 5:20 PM, Linus Pettersson wrote:

Hi!

I'm new to Ruby and Rails and I've got previous experience with PHP,
some C/Objective C and Java. I've just finished the short "first app"
tutorial on rubyonrails.org. RoR seems great and I really like it
after this brief intro :)

A question. What should an app contain? I mean, is it the whole site
or should I split the site up in several apps? Most tutorials only
have some basic intro that creates like a 'blog'. Yeah, that fits good
inside a single app. But what about if you have one part of your site
that's a blog, another part is a forum, another is a community thing,
another is a task manager...and so on.

Do you see what I mean? Should I split all these into several 'apps'?

Perhaps it's a stupid question, but as I said, I AM new to this
so... :)

Welcome to the party, I just got here myself... I would say to answer your question that it matters more what your various apps have in common or need to share. Let's say you have a blog comment model and a forum post model, and they both need a user to sign in in order to be able to say who created each -- that would argue for maybe putting each of these "apps" together in the same application where they could share the common sign-in and other resources.

On the other hand, if you don't need to share anything, there's a lot good to be said for having the bare-est minimum in your application. Less to break, for one thing. You could also expose your login as a service from one "user management" app, and consume it from two others. Luckily, these sorts of choices are something you can revise later on, as a Rails app can seem a bit like a box of Legos, where you can snap things together and good tests let you refactor at whim.

Walter


Cheers!
Linus

--
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- [email protected]. To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en .


--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to