Hi,

Looking for TodoMVC example, it's perfect.
It follows the MVC pattern at the point but we are talking about a small
application with less then 10 files.

On my current Flex application I'm using a different organization from the
standard MVC:
+ models
-- all model files

+ module_name_1
-- MainViewName1.mxml
-- MainManagerName1.as
-- + some other sub-module_name_1
---- ViewName2.mxml
---- ManagerName2.as

+ module_name_2
-- MainViewName3.mxml
-- ManagerName3.as

Somehow, it's MVC and all operations are in correspondente manager
(controller) as file.

Looking now I'm not very satisfied with the solution. It's working and I
will not change, it is what it is, however on my ongoing Royale version I
can do a complete different approach.
There are hundread of mxml and as files, so the organization about models
(all as model files) + views (all mxml files) + controllers (all as
controller files) with end up with a non standard MVC organization
structure.

I'm thinking in one of two new approach:
Approach A:
+ models
+ views
--+ module_1
---- mxml1
---- mxml2
+ controllers
--+module_1
---- as1
---- as2

Approach B:
+ models
--+ module_1
----+views
----+controllers
--+ module_2
----+views
----+controllers

What do you guys think ?
Do you do MVC structure as the TodoMVC example or use a different approach
as I do.
Do you think Approach A it's better than B or do you have a third option ?

Reply via email to