Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Any need for an Event type and/or Data type in PureMVC? on: April 16, 2009, 05:42:54
Is there any need to use an Event type and/or Data type between the 3 tiers in a PureMVC application?  Some 3rd party libraries seem to use them, however, in most if not all examples from puremvc.org uses just value-objects and enums.  In other words, if the 3rd party library (such as XIFF) uses an event type and data type, should I use them instead of value-objects and enums?  Or should I use both? 

Thanks.
2  Announcements and General Discussion / Architecture / Decouple or Strong Type? on: April 13, 2009, 05:04:03
Should a controller be decoupled from a model, by using primitive types or should the parameters that are passed to the model should be received strong typed? 

If I recall correctly, I read that the model, view and controller, should be decoupled as much as possible for that they may be used for another application.  So when an event gets passed into a controller, it will extract the  data from the event and break it apart to its primitive type to be passed to the model.   Is this correct?  Or should the model receive the parameters from the controller strong typed?   Or is this correct?

Thanks.
Pages: [1]