InfoQ

News

Mate Flex Framework Alpha in Spotlight

Posted by Moxie Zhang on Jun 12, 2008

Community
Java
Topics
Rich Internet Apps
Tags
Flex

Mate (pronounced “mah-the” like latte) is gaining a lot of attention among the Flex community. Mate is a tag-based Flex framework created by AsFusion. Although it has been used internally at AsFusion for a long time, the Alpha version was just released recently.

Mate is a Flex framework that leverages the tag-based MXML language to provide a map defining how the Flex application handles events. It solves many common problems faced by developers when creating Flex applications, such as retrieving data from external services and handling business logic.

As John C. Bland II of GeekLife describes:

The majority of the frameworks out there add a bunch of extra junk you don't need or won't always use. Sometimes they have weird configurations and approaches. Most times the only thing they provide is a common code-base so a new developer can jump in and be productive because he or she already knows the chosen framework.

Bland particularly likes Mate’s event handler. He says:

Mate is a gem in this area. Simply let your events bubble, and setup EventHandlers. These handlers can perform any number of tasks, including calling a service, setting a value on a class, calling a method on a class, or dispatching another event. The joy is being able to dispatch an event 20 levels into your UI without setting a globally available property/calling a globally available method, such as ModelLocator. You can have another view/ component receive an update regardless of the location in your application. It is really nice.

While Zee Yang, a J2EE developer agrees with this positive assessment, he looks at Mate from a different angle. Yang explains:

The bottom line is none of the frameworks is doing enough to leverage the declarative nature of MXML. This makes sense, because the majority of the Flex developer base came from either the J2EE camp or the Flash/AS3 camp. For example, I come from a J2EE developer background. As my Flex skills progress, I am developing an appreciation for the beauty of MXML. At the same time, I am becoming dissatisfied with the verbose AS3-based frameworks. I like Mate, because it is a very forgiving MVC framework that makes good use of MXML.

Writing in Iconara, Theo Hultberg agrees that the MXML approach is beneficial to Flex developers. He comments, “Mate is very unintrusive. It lets you configure your application declaratively in MXML and does most of the boring things for you. Judging from the documentation and examples, it should be a good competitor in the less-than-crowded market of Flex application frameworks.”

Summarizing the core feature of Mate, Hultberg observes:

The core of Mate is the event map, which describes what should happen when your application dispatches events of different types. For each event, one or more handlers can be invoked. A handler can be anything from calling a method on an object, running a command or invoking a remote object call. There is also room for writing your own specialized handlers. Handlers can run in sequence by picking up from the previous handler's result, which makes it possible to create quite complex logic. All this is done in MXML, which means that your configuration is also the actual wiring of your application. More important, it's readable and easy to understand.

As Mate continues to enjoy the developer spotlight, InfoQ will keep pace of the discussion.

No comments

Watch Thread Reply

Educational Content

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.