There is a definite benefit to being able to look at all the models or
controllers for an application together, or all the controllers.  You
might convince me that your idea is BETTER, but you won't convince me
that it is universally better, or that organization by type is somehow
redundant and carries semantic benefit.

When you are working on radiant extensions of course it seems
heavyweight because you are talking about modular pieces of
functionality that are supposed to be tight and contained by design.

However Rails was designed to build monolithic applications, and when
you 10 heavily interdependent controllers backed by 20 models, you're
getting a good number of files per directory.  Breaking them down into
modules may not be straightforward at all.  If models are used evenly
by many controllers where do they go?   Suddenly you find yourself
creating many modules just so the hierarchy is logical, and you end up
with the converse problem: that you have too many modules, none of
which are re-usable, when you could have everything in a single
controllers and models directory.

I totally understand how a Radiant extension just feels bloated with
all those directories, so I support some kind lighter-weight packaging
such as you propose.  I think Obie is on the right track that we are
close to being able to do this already, but it will definitely need
some optimization as we can't just go filling up the view_paths and
controller paths willy-nilly everytime we add a module.

On Jun 16, 9:51 am, "John W. Long" <[EMAIL PROTECTED]> wrote:

> Again, what exactly is the point of organizing files by type? Our
> applications have logical structure, why not reflect that in directory
> layout?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to