Posts Tagged framework
PureMVC…use it!
I’ve recently started using PureMVC and I thought I would write up a brief overview and my praises for it.
What is it?
In the words of the PureMVC developers “PureMVC is a lightweight framework for creating applications based upon the classic Model, View and Controller concept”.
So what we want to take away from this is that Cliff Hall has created a very flexible and does a great job of keeping each object in your application truly encapsulated. I usually created my own MVC classes when coding my projects but this saves me that first bit of planning and coding and ensures that I create well organised code all the time.
What do I think?
I do have to say that at first glance I was a bit taken back by how much Cliff has broken everything up and required the coder to create proxies, mediators and commands and then register them with the façade then send and listen for notifications to perform actions (opposed to coding things directly into each component of the MVC pattern).
But, since I was either going to adopt this or Cairngorm for the latest project I am working on I persisted in learning what each framework had to offer and what each one require from me as the coder.
PureMVC has very good tutorials and documentation which made learning it quite easy and now that I have had a little experience coding with this framework I truly see the value in keeping everything so loosely coupled.
Another point for a coder fluent in multiple languages is that you are able to get this framework in a number of flavours including:
- AS2/AS3
- C#
- ColdFusion
- haXe
- Java
- JavaScript
- PHP
- and Python
So take a look at it, give the examples a test run and dive right into the well written and thought out guidelines.