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 / PureMVC is time-wasting code -NOT on: November 03, 2008, 12:19:42
Hi All,

In our company we use PureMVC for all our Flex projects and I strongly recommended it to a contract programming firm that I've hired to build a Flex application. This app has a call to a database when it fires up that hydrates some objects and then a call when it shuts down to update dirty objects otherwise it is mostly client side graphic object generation and movement. I'd like to hear what others here have to say about why they don't wish to follow my advice. Here is what they said:

There are two existing widely used Flex architecture frameworks:
- Cairngorn
- PureMVC
We choose to not use them guided by the following aspects:
- Both of them are very data-service oriented as they are designed to work with database CRUD functionallity applications. This is not the case as this is a document editing application.
- Have a poor Domain Model witch is based only on Value Objects (a DTO Flex renaming), all the domain logic must be on Controller Commands or in the server side data-service handler.
- They are centralistic. This means that they are designed to work at application level for the event flow. This may not be desiderable as application widgets may be separated later for the creation of the document viewer.
- Specifically PureMVC is designed to work "out" of ActionScript / Flex envirioment as it tries to be more general and be implemented on many other languages. As a downside it does not use the databinding capabilities of AS3, but using a Mediator object beetween the view and the model. This is just time-wasting code.
2  Announcements and General Discussion / General Discussion / Flex integration to WebORB .NET code gen on: October 28, 2008, 10:21:10
I'm starting to use the WebORB PureMVC code gen for Flex (-type 8). I was surprised to get a Facade and a Mediator generated.

There is nice WebORB/Flex example project here: http://www.adobe.com/devnet/flex/articles/flextodotnet_remoteobject_04.html
This is a decent article on the generator:

WebORB uses XSLT to generate this stuff. The XLST is in the /weborbassets/codegen dir.

Does anyone have any best-practices advice on this code gen or an XSLT code gen they like better?

-- Mike
3  Announcements and General Discussion / General Discussion / Rogue Development's ObjectHandles on: June 27, 2008, 08:11:30

I'm developing using ObjectHandles and am wondering if anyone
has pointers for propagating events to MVC view components that are
contained in ObjectHandles. Right now I've got it working by
implementing an ObjectHandlesMediator that listens for
ObjectHandleEvent.OBJECT_SELECTED events and handles them, but I run
into some ugly code when I go to get the child object. It's mixed in
with eight ImageHandle objects. I'm thinking I should subclass
ObjectHandles and make it more specific to my uses. Any suggestion
would be appreciated.

-- Mike
4  Announcements and General Discussion / General Discussion / prana framework on: May 29, 2008, 07:55:29
Just a little bit of meta info for the reader. The first 5 or 6 posts are about MVC and Data Broker and then a really good post follows about the Prana Framework and PureMVC. -- Mike.

Hi All,
A friend suggested that I look at the Prana Framework (pranaframework.org) and I have, but before I put more time into this, I was just curious to know if anyone can recommend prana?
Thanks for any insights.
-- Mike
BTW, on the home page, there is a prominent declaration that the framework is PureMVC compatible and when I look at the code, I see a corresponding set of code.
5  Announcements and General Discussion / Getting Started / Flex event won't propagate from toolbar to canvas on: May 22, 2008, 03:24:53

I think I figured it out. The event that I'm emitting in the Toolbar (xmxl) doesn't seem to have anything to do with the INotification propagation. So I wired up the button event to a notification handler in the toolbar that turns around an sends a Create_Text notification that is seen by the canvas. This make sense. Anyway, I wanted to post this ASAP so people didn't spend time on it. Thanks.

-- Mike
Pages: [1]