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 / Getting Started / Re: Using Mediators as Controllers on: December 27, 2009, 03:08:41
Hello Cliff (I suppose),

Thank you for the detailed reply. First of all I want to mention that CodePeek is a good sample, I was just puzzled a little.

I think am presenting the point of a medium-advanced developer (in general) who wants to become more friendly with PureMVC and I hope my opinions will help other solve problems and not bother anyone.
Another problem with CodePeek was the use of the XML_Database utility. For the DesktopCitizen utility everything is clear, but with the XML_Database I feel that there is not enough transparency. I am registering a Command which does something (good probably). But as I said, this is a small matter.

Now to come back to your explanation, I totally agree on the fact that Mediator can call the Model directly and MVC is not 100% a n-tier system, but now I am not sure when/why to use Commands ? Accessing the model directly from Mediator makes it easy, less code, so people (I mean me :)) would be tempted to take the short way. So using the PureMVC without using too much the Commands is it a bad practice?

Maybe some of my questions seem stupid for people with great experience like you, but I think for someone like me, who is a beginner with the framework and wants to do things the right way, it will make a big difference.

Regarding the Multicore version I cannot say too much because I used only Standard version. I am not sure yet when I will need the Multicore version.
2  Announcements and General Discussion / Getting Started / Using Mediators as Controllers on: December 27, 2009, 12:22:28
Hello everyone,

I am quite new to PureMVC, but I am very interested about working with this framework.
What I don't like about it is that sometimes I get the feeling it's too much code to write to do few. Of course, this will pay out later, for big applications, I got that, but still ...

Another thing is that you cannot find good authority samples. The existing ones are provided by 3rd party people and I think they do not follow 100% the concepts behind the PureMVC. For a framework beginner like me this can become very annoying, because you simply do not get the right way to do stuff. Every sample available on the internet has a different approach. I will give an example:

I am trying to build an AIR app using PureMVC and I studied lots of examples. I can do it, but I am interested in the right "perfect" way. So I took a look at CodePeek. I saw that only Startup and Shutdown commands are used. I was expecting to have a command for the search action, but instead the proxy methods are called directly from mediators. Working like this, you can completely remove the Commands from the picture, so where is the Controller then? Here it seems its role is played by the Mediators, which not only they provide a steward for the views, but they actually access the model directly.
Maybe I got this wrong, but it seems CodePeek approach is not 100% in the spirit of PureMVC. Can someone please tell me which is the correct way to approach this? Maybe a good sample?

Thanks all.
Pages: [1]