By Maijaliisa Burkert on Oct 27, 2009
Software architect Mark Nankman was the winner of the September JFXStudio challenge, which required developers to build an application with 30 or fewer lines of code in a single JavaFX file (30 lines as counted by actual lines, or 3,000 characters), with a 'time' theme. Mark's Pacman clock application took first place and caught the attention of many because of the creativity and complexity demonstrated within the small file. Mark has several years of experience in Java programming, and has recently turned his focus to Web 2.0 and RIA development, which is how he became interested in JavaFX. He said he used to develop Adobe Flex front-ends to interact with Java back-ends, but didn't like the fact that it required 3 programming languages! Turning to JavaFX Mark found that the programming language "makes developing maintainable rich web applications a lot easier."
When discussing Mark's winning Pacman clock application, he noted that it was relatively easy to build, and said he had a functioning product within 30 minutes of starting, stating that with JavaFX "you can do a lot with just a little code." Mark said he needed to use just a few simple manipulations to keep the code within the 30-line limit, such as using compact SVGPaths, along with several other tricks he listed in his blog. Overall, Mark noted that he as "amazed at just how powerful JavaFX is." He reported only having to sacrifice one feature in his application -- the ability to dynamically resize the clock -- which he said simply couldn't be crammed into the 30-line application.
Read more of Mark's interview and listen to a podcast in Reviews Interactive.