A common trend found in a quite a few of the Adobe Flex, AIR applications I have come across is the lack of a abstraction, hierarchy, or modularization. A not so common trend is a template or best practice around those three architectures; abstraction, hierarchy, or modularization.
For a small Flex / AIR application, it is a given that Flex allows for all of your code to be placed in the common src/myprojectname.mxml. If your code is short and sweet, merely looks at an RSS feed for example, or is an experiment. No problem.
However, in more complex applications, with hundreds to thousands of lines of code, controls, and behaviors; all in one single MXML project file, the ability to add to that code, refactor, test, debug etc. Becomes exponentially complex.
I have seen this too with Flash / Actionscript 2 & 3 and some designers, where as behaviors become more complex, and the code deeper and more nested, there seems to be no approach to encapsulation. Now I am not speaking for everyone here, there are those that do modularize, or encapsulate. I have seen great examples, some great encapsulation, but when it comes to Flex, I am seeing it as lending itself to that same paradigm.
It is easier to use, so in turn has the potential be even easier to make a mess of unwieldy, unreadable code.
I haven't found many articles, or books (thanks O'Reilly) that really dive into the 'Hey ! Let's actually start to architect a Flex / AIR application in a really modular way !'. To open the dialogue, I think I will start maybe a multi-post entry on a great way to approach the architecture and code using Flex, AIR, MXML, XML, components, and AS3 in nice encapsulated architecture, that is modularized (and scalability!).
More soon...
(ps. stop using com.example.org now. right now. thank you.)
Tags:
Share
You need to be a member of Seacoast ColdFusion Flex Group to add comments!
Join this Ning Network