I like the writeup, but I don't see it as a big enough benefit to justify the pain of changing it. Both structures have their benefits. If one was clearly superior then I say damn the pain and change it, but in this case it seems more like an arbitrary choice. Rails chose the MVC structure and Django chose the component structure. In a way it reflects the philosophies of the two frameworks.
I like this structure much better than Rails' components though. Maybe this type of structure could be used for a lighter-weight version of components for Rails 2.0. At first glance it would appear ugly to have two different kinds of file organization, but maybe there's a strong use case for lightweight components? At any rate, it's great to see this kind of fresh thinking. On 6/15/07, Rick Olson <[EMAIL PROTECTED]> wrote: > On 6/15/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote: > > On 6/15/07, John W. Long <[EMAIL PROTECTED]> wrote: > > > > > > I've written an article suggesting some radical changes to the Rails > > > directory structure for Rails 2.0 and am curious to know the core > > > team's thoughts about it: > > > > Nice article, short and to the point. > > > > While the benefits are certainly recognizable, I, for one, would find > > slightly shocking to have a directory like this: > > blog/ > > _config.rb > > _routes.rb > > blog_controller.rb > > blog_helper.rb > > > > blog_index.rhtml > > blog_archive.rhtml > > blog_post.rhtml > > comment.rb > > comment_migrations.rb > > comments_controller.rb > > comments_helper.rb > > comments_view.rhtml > > post.rb > > > > post_migrations.rb > > > > I've been spoiled by the clean separation in Rails and I'd hate to go back > > to spaghetti directory structure. I imagine that most of its users would > > feel the same, too. > > Some of my larger plugins tend to look like that, though. It feels > wrong, I want to add directories to separate models and controllers. > Though ultimately, textmate makes it so I don't have to care that much > about the actual directory structure. > > -- > Rick Olson > http://lighthouseapp.com > http://weblog.techno-weenie.net > http://mephistoblog.com > > > > -- Gabe da Silveira http://darwinweb.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
