|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Simon Morris's Blog
Thinking Declaratively in JavaFXPosted by javakiddy on May 26, 2009 at 11:23 AM | Permalink | Comments (3)JavaOne is coming up, and with it no doubt a slew of enhancements to JavaFX. Many of you reading will have no doubt dipped your toe into the waters of Sun's new platform, but how well do you really understand the power of its Domain-specific language, JavaFX Script? I've had a pretty good excuse to write lots of JavaFX code of late, and to be exposed to some of the difficulties programmers first have when approaching the language. One of the common stumbling blocks seems to involve the shift in thinking from purely procedural source code (where the function/method is our chief currency) to the declarative source code supported by JavaFX Script (where code may be nested into a tree structure). So, what I'm going to do in this post is take a problem ripe for declarative exploitation, and show how JavaFX Script might change the way we tackle the solution. For newbies struggling to understand the power of JavaFX, hopefully this will be an eye opener. For the uninitiated, perhaps it might demonstrate how JavaFX Script differs from Java and other languages. The example I've chosen is the parsing of an XML file — a simple enough task one might think, but a task which highlights the stark contrasts between the structure of the document being processed, and the structure of the source code processing it. (Hopefully that last sentence will make a bit more sense by the time you've finished reading this posting!) |
May 2009
Search this blog:CategoriesCommunityCommunity: JavaDesktop Community: Mobile & Embedded Deployment Games J2ME J2SE Programming Security Swing Web Applications Archives
May 2009 Recent EntriesThinking Declaratively in JavaFX ArticlesKickstarting Google Web Toolkit on the Client Side All articles by Simon Morris » | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|