I'm confused, why is it views not view, and model not models etc?

1 view
Skip to first unread message

Brettski

unread,
Nov 23, 2009, 6:31:22 AM11/23/09
to model-glue
Just trying to get an idea of consistency with the folder structure.

Why are some elements plural (helpers, views etc), and some non-plural
(controller, model)?

All these elements can have multiple items under them so I'm a little
confused why?

b

Dan Wilson

unread,
Nov 23, 2009, 6:33:36 AM11/23/09
to model...@googlegroups.com
Really, it comes down to personal preference. I'm not aware of any semantical difference in between plural and singular directory names.

I'd prefer singular names, much like I do when I name tables, if only to prevent confusion with plural names and stem changes.


DW

--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en



--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes

Chris Blackwell

unread,
Nov 23, 2009, 7:01:52 AM11/23/09
to model...@googlegroups.com
yeah absolutely personal preference

I tend to just use what the application template gives me, but you're free to change them to anything you want and reflect those changes in the config and all will be well with the world

Chris

2009/11/23 Dan Wilson <sipa...@gmail.com>

Bob Silverberg

unread,
Nov 23, 2009, 8:37:39 AM11/23/09
to model...@googlegroups.com
Yeah, personal preference dictates, but as to why the default is controller, model and views, my guess would be:

- in a very simple app you'd likely have only one controller.
- conceptually, you really only have one model. Even though you might have many files and folders under your model folder, together they represent your model.
- in just about any app you'll have multiple views.

Cheers,
Bob
Reply all
Reply to author
Forward
0 new messages