February 29, 2008 – 6:00 am
My responses to Flex and Java – A Perfect Technological Marriage, section by section
Intro: “so you’ve been a java developer…” then “… JavaScript”. Java and JavaScript, two different things. (Acknowledged implicitly in section 1)
Flex will be familiar to a Java developer. It will be familiar to a JavaScript web developer. And understanding the language and understanding the libraries are two different things. It’s like knowing the Java syntax and not the collection classes, or any other of the 100s of bundled classes there are. Flex libraries will not be familiar.
The Flex development process: It’s a lot like the one you use for Java. Um, yeah. This is the case for all technological solutions. I’ve gone through object-oriented analysis and design for projects implemented in a forward-chaining expert system language and C-based X-Window interfaces. Development is development. The language we speak our solution in is just that.
And you compile both, and unit test both … that’s like saying you use the keyboard to type both. It’s not something unique to the relationship between Java and Flex.
Flex is simple to use and helps you develop code faster. To state that all the user interface elements implement all the possible functionalities you might need is a bit presumptive. Complex data in ColumnGrids? And to overstate the user interface is anything different than other frameworks to provide is to stretch the truth.
I also still haven’t drunk the XML is coding and not a file format cool-ade. MXML is just more of the same, and the frequent need to embed ActionScript into MXML speaks to its limitations.
I would modify the statement that FlexBuilder is easy to use (though it could be much better). Flex without the builder would be unbearable.
Some differences between Flex and Java. You are using two different technologies at a well defined layer in your application architecture. This forces you to follow design and development you should have done anyway. This should not be the major difference you notice.
They are two different technologies. Connecting between them requires either text or xml, which was first used only because web developers are used to that sort of thing. The newer serializations require a translation technology between the server and client side. Using two different solution technologies also requires the duplication of effort, or code generation based on other code, neither a desirable solution.
I think Java and Flex is as good a pair (right now) as any. But I think some are perhaps naive to paint it so rosily. If you are a JavaEE developer, learning Flex will definitely have a learning curve (like learning anything). The more exposure to XML or JavaScript you’ve had, the better. The more user interface experience, the better.
Overall, I suspect Dimitrios has lived his whole coding live developing web-based applications. Now that he is being introduced to proper client-server applications, he sees the benefit. And I wholly agree with him on that!
Posted in ActionScript, Flex, Java, MXML | No Comments »