Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User rogersja's Avatar
    Join Date
    Sep 2008
    Location
    Winnipeg, MB
    Posts
    102
    Vote Rating
    0
    rogersja is on a distinguished road

      0  

    Thumbs up [CLOSED][b3] MVC structure suggestion

    [CLOSED][b3] MVC structure suggestion


    would be to pluralize the directories under 'app' in keeping with most other mvc frameworks available.

    also, it would seem that we are going down the convention over configuration path with Ext that we've seen in Rails, et al. It would be logical to assume that the great majority of Ext apps will have more than 1 class in each of these directories so assuming the directory name represents the contents, it would make sense to pluralize the directories (model -> models, view -> views, controller -> controllers)

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    We chose the singular approach because it matches our class naming conventions. Each of those directories maps to a package namespace, e.g.:

    MyApp.model.User vs MyApp.models.User
    MyApp.view.user.Edit vs MyApp.views.users.Edit

    We never pluralize package names in the framework and want application code and framework code to feel as alike as possible. By keeping to these naming conventions we can leverage our strong class model and tooling to make applications easier to write and deploy.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    27
    ykey has a spectacular aura about ykey has a spectacular aura about

      0  

    Default


    Ed can you speak a little about what happened to the routing functionality in prior revisions of MVC?

  4. #4
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Quote Originally Posted by ykey View Post
    Ed can you speak a little about what happened to the routing functionality in prior revisions of MVC?
    Absolutely. We tried hard to make this server-inspired pattern work on the server but have had to rethink our approach. I think we have a great solution lined up for deep linking and application-wide history management lined up but we decided to push it to 4.1 to be sure that we could deliver the right solution. Turns out it's not quite as simple as we would have liked...

    The great thing about what we have in 4.0 though is that it's only 3 classes, yet delivers an enormous amount of power. I love writing apps with this stuff
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  5. #5
    Sencha User ykey's Avatar
    Join Date
    Mar 2010
    Location
    USA
    Posts
    245
    Vote Rating
    27
    ykey has a spectacular aura about ykey has a spectacular aura about

      0  

    Default


    Simplicity is great but I would rather have to worry about 5 classes and have the routing and history management. The routing functionality becomes very important with larger applications (especially direct navigation to secondary screens to accelerate development). I had experimented a bit with the functionality you had and it seemed promising but I am sure there are complexities I have not considered.

Similar Threads

  1. [CLOSED]Suggestion: Patch to Ext.ux.Portal
    By mschwartz in forum Ext:Bugs
    Replies: 8
    Last Post: 22 Feb 2011, 2:05 PM
  2. Replies: 0
    Last Post: 17 Feb 2011, 12:13 AM
  3. GWT 1.6 structure
    By magon in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 7 Jul 2009, 5:27 AM
  4. Replies: 1
    Last Post: 4 Jun 2009, 8:19 AM
  5. Replies: 2
    Last Post: 3 Nov 2007, 6:25 AM

Thread Participants: 2