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

Pages: [1]
Print
Author Topic: benefits of using PureMVC  (Read 8203 times)
matthewpotato
Courseware Beta
Newbie
***
Posts: 3


View Profile Email
« on: February 05, 2008, 12:38:52 »

I'm creating a list of benefits of using PureMVC for people who haven't tried it and who aren't all that familiar with the MVC pattern. Are there any benefits I'm overlooking?

Notification system (publish/subscribe)
-------------------------------------
Components don’t need to know about one another’s existence in order to communicate. (Helps with modularization, code reuse.)
Communication can flow outside the containment hierarchy.

sendNotification(ApplicationFacade.LIST_LOAD_COMPLETE, showList);


Central data model
------------------
Having a model reduces redundant data fetching because value objects can be persisted within the model.
The model centralizes value objects that are accessed throughout the application.


Helps with separation of concerns
--------------------------------
The model manages value objects. Value objects are separate from the proxy class that manages them.

The view manages and displays user interfaces. The mxml user interface files are separate from the mediator classes that manage them.

The controller manages commands, pulling the strings on the view mediators and model proxies.


Enables the application to have an API
-------------------------------------
Commands can be dispatched from anywhere in the application.

The mediators, which manage specific user interface views, provide a public interface to their views.


Allows use of Flex modules (not sure about this one)
-------------------------
Apparently, Cairngorm has problems when code is modularized. PureMVC has better support for using Flex modules.


Consistent MVC pattern improves coherence of project
----------------------------------------------------
Once the MVC pattern is understood, it’s easier to figure out the workings of unfamiliar code that follows the pattern. You know where to look for code to control the user interface and code to manage value objects, etc.
Logged
Rhysyngsun
Courseware Beta
Sr. Member
***
Posts: 51

Nathan Levesque

 - rhysyngsun@gmail.com  - rhysyngsun
View Profile WWW Email
« Reply #1 on: February 05, 2008, 06:21:06 »

I think the biggest benefit (indeed, a feature) is that PureMVC is pure AS3. This means you can use it in Flex, AIR, or plain old Flash with no dependencies on other frameworks such as Flex or AIR.
Logged

puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: February 05, 2008, 06:32:48 »

Top 3 Reasons for using PureMVC:

  3) Oversized finger holes

  2) Doesn't rust when left out in the rain

  1) Facade hides much of the framework complexity from the developer

-=Cliff>
Logged
Pages: [1]
Print