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 / General Discussion / Business logic in Controller on: March 26, 2012, 03:08:26
Hi Forum

During my reading about MVC, I encountered a term that I found interesting.
The term is  Fat Stupid Ugly Controllers (FSUC). It belongs to Padraic Brady, who is pretty famous in PHP community.
He has a pretty cool book about Zend framework, and he wrote a chapter about MVC http://bit.ly/GQrmwJ .

His idea is that controllers should be as thick as possible and our business logic should be in the Model.
In PureMVC we have a separation for Business Logic and Domain Logic, and the best practice is maintaining BL in the controller
and the DL in the model.

So I have two question:
1 - Is PureMVC using a different approach to Controller role, different from classic MVC?
2 - Is the reason for it is AS3, and the fact that the language is multiplatform?

Thanks,
Eli
2  Announcements and General Discussion / General Discussion / Transient proxies question on: January 23, 2012, 10:31:34
I am dealing with the situation where I need to use a large number of transient proxies.
Something like 4-5.
My question is - shouldn't I make some custom proxy that will save information about all the states?
3  Announcements and General Discussion / General Discussion / One notification - multiple actors handling it on: January 10, 2012, 04:08:44
Hi Forum

I have a bunch of notifications, that a lot of actors are registered to.
Think of a control button which fires a notification which has more than 5 different listeners.

My question is, should I make a command that will handle the notification and operate all the actors, or should I handle this notification in each place separately?


Thanks
4  Announcements and General Discussion / General Discussion / Basic terminology question - Business Logic, Domain Logic and Domain Model on: January 06, 2012, 04:23:55
I am reading the "ActionScript Developer's Guide to PureMVC" right now, and also trying to get some help in the Best Practices document and this great forum.
At this point, I start to realize, that in order to truly understand PureMVC, there are number of key terms that are needed to be figured out.
The problem is that I'm not sure there is a precise definition for some of them(at least not in the context of PureMVC).
For example, what is the accurate definition of Domain Model? This term is being used in both documents.
Is Domain Model similar to Model from PureMVC?
Also, I think that I understand the difference between Business Logic and Domain Logic, but how are they connected to Domain Model?
The best practices document says:
Commands house the Business Logic of our application; the technical implementation of the use cases our application is expected to carry out against the Domain Model. This involves coordination of the Model and View states.
but the next paragraph says:
The Model maintains its integrity through the use of Proxies, which house Domain Logic, and expose an API for manipulation of Data Objects.
So I am confused, Business Logic represents the use cases, which are the Domain Model. But why Domain Logic is not related to Domain Model?
5  Announcements and General Discussion / General Discussion / Proxy related logic in the command on: January 03, 2012, 03:01:31
Let's say I have a proxy, with some properties in it.
And I have a command that has to access the API of the proxy, depending on some logic related to the properties of the proxy.
Where should I have all the logic, inside the command, or inside the proxy?

For example:
:
if (myProxy.a > myProxy.b)
{
    myProxy.foo()
}
else
{
    myProxy.foo2()
}

or just
:
    //figureFoo compares myProxy.a and myProxy.b and calls the relevant function in myProxy
    myProxy.figureFoo()

The reason I am asking, is that the logic is pretty complicated, and I want the proxy to be clean.



6  Announcements and General Discussion / Public Demos, Tools and Applications / Pure MVC Console with pure AS3 project on: December 28, 2011, 04:50:06
Hi All

I am trying to use the Kap Lab console with my AS3 project.
The idea is to make a Flex application that will initiate my original AS3 application.

Is there a better way?
Also, for now I did not manage to make it work, is it even possible?

Thanks
Eli
7  Announcements and General Discussion / General Discussion / Unit Testing on: December 27, 2011, 07:29:29
Hi Guys

Are there any examples for Unit Testing with PureMVC?
I'm wondering about the best solution for the core PureMVC singletones and also about testing view components.

Thanks!
Pages: [1]