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 ... 8 9 [10]
136  PureMVC Manifold / Standard Version / Re: Demo Application Ideas on: January 04, 2008, 09:47:33
The first idea that popped into my mind was a simple card game. I'm thinking War. My first thought was solitaire, but then I decided to KISS.

Some graphics, scoring, user interaction. Very simple, but it would cover the range. Besides, who doesn't like a challenging game of War!
137  Announcements and General Discussion / Architecture / Re: Proxies and Data Binding on: January 04, 2008, 07:50:19
Thanks Nathan.

I'm using Django with mySQL as my backend. They are very relational with lots of foreign keys. I'm having trouble visualizing the setup you suggest. Could I talk you into going into more detail? Here's a bit of the domain I am dealing with:

Case
   id
   client
   some_date

Task
   id
   case_id
   due_date
   assigned_to_id

Person
   id
   first_name
   last_name

Hmm, perhaps my problem was that I had the dataProvider in the mediator instead of as a public property in the view compoenent. That makes sense, and would explain why my bindings weren't working.

Cheers,

Joel
138  Announcements and General Discussion / Architecture / Proxies and Data Binding on: January 04, 2008, 02:25:51
I have a couple of things I am trying to get my head around.

My first pureMVC application had 3 proxies. One of them I named DataProxy, and it was the place that held ALL of my remote services. That was fine, for awhile, but then it got seriously complex and hard to find anything I wanted. So now I am dividing up each model (dbase table) into it's own proxy class. How do you guys do this? One proxy to rule them all, individual proxies, or a mix?

I also had a question regarding data binding. This is Flex specific. My data is updated every couple of minutes from the server. I use the [Bindable] metatag, but it doesn't seem to have an effect and you can't use it on the data object or getData() anyway. What is the preferred method for updating a datagrid, or any other container with a dataProvider property?
139  Announcements and General Discussion / General Discussion / Re: Architectural frameworks worth it? on: December 31, 2007, 09:46:57
I think Yakov misses the point of PureMVC, as it is not a framework on top of flex. It is an AS3 framework that can coincide nicely with Flex, Flash, or any other AS3 platform.

I also think that somebody with decades of software architecture experience might look at a framework and say, 'Meh, I like to do it this way...'.

In my case, having a framework from which to base my design off of is a boon. I learn more about the patterns that come into play and can start constructing meaningful software. That said, I am a big proponent of learning a language WITHOUT the crutch of a framework. When I was starting to learn AS3, I specifically avoided flex for this very reason. Sure, Flex provides a lot of nice components, but I felt like it would take away from my overall learning experience and shield me from what was actually going on.
140  Announcements and General Discussion / Architecture / Re: Validate form data, where to put it? on: December 26, 2007, 07:58:06
Sounds like I have some refactoring to do. I like your solution Peter.
141  Announcements and General Discussion / Getting Started / Re: Where should visual theme assets go? on: December 25, 2007, 01:20:59
There is a really tight asset loading example in the ApplicationSkeleton example posted here. The example is Flex, but I believe the proxy setup would carry over directly to Flash.
142  Announcements and General Discussion / Architecture / Re: Validate form data, where to put it? on: December 25, 2007, 11:17:18
From my experience adding methods to VO objects does not interfere with AMF calls at all. I am using Django AMF, so your mileage may vary, but it completely ignores any methods and passes only public properties of the object (I haven't tested private properties, but implicit getters and setters work).

In Flex, I validate in my MXML form component. I don't know if this is proper, but it works ;)
143  Announcements and General Discussion / General Discussion / Re: first project with pureMVC on: December 20, 2007, 05:10:01
I'm refactoring my application, and used this instead of chaining remote service calls in a single proxy. it really ( really ) cleaned up my code and made it easier to understand. Prior to this I had one single 'DataProxy' to facilitate this, and it led to one monster class that was starting to get confusing.

Anyways, thanks!

I just created this...

I thought this might be a little more reusable then counting.

If someone can advise if it's complying to best practice  :)  I'd like to contribute something to this post.  8)

It's the first proxy to be registered.  All other proxies that need to be loaded before moving on, will call addResource() which adds them to a list of resources.  Once all proxies have been added, you execute a command to call loadResources() which calls load() on all proxies in the list.  Once the individual proxies complete the load process, they call resourceComplete() to advise StartupMonitorProxy that something has finished loading.  It then checks to see if all proxies are ready.  If all proxies check out, it notifies the framework to move on :)

If this is looking like something that other's can use I can upload the files I'm using.
144  Announcements and General Discussion / Architecture / Re: Logging inside of PureMVC - Where to place it? on: December 20, 2007, 11:53:29
I created a LogEventCommand that recieves notifications and activates the LogEventProxy which communicates with the server and logs the users actions.
Pages: 1 ... 8 9 [10]