Sunday November 08, 2009 I've been writing a lot of JavaFX code over the last year. After some tweaking I've arrived at a style that I like a lot. I notice that even on my team there are some variations in how people format their code, so I thought I would document what I like in case this helps others get started. (I did a quick google search and didn't find any JavaFX coding convention documents anywhere. The closest thing I found was a blog entry, but while it contains a lot of good advice, the style it recommends does not match the practice of the JavaFX team (or the Sun Java style) either). Therefore, I thought I would document what I consider good JavaFX coding conventions.
Rather than post them here in a blog entry, I placed them in a Wiki page such that they can easily be improved and kept up to date as I get feedback and in case I change my mind :)
You can find the coding conventions document here:
http://wikis.sun.com/display/JavaFxCodeConv/Home
P.S. I will be speaking at Devoxx in Antwerp, Belgium next week! Hope to meet some of you there!
(2009-11-08 20:29:29.0) Permalink Comments [5]
hey, love the picture under the banner! May the force be with your kids! - eduard/o
Posted by Eduardo Pelegri-Llopart on November 08, 2009 at 10:22 PM PST #
Great post!
Thank you!
Posted by oris watches on November 09, 2009 at 12:57 AM PST #
Hi Tor,
I will take a look at your coding conventions, but one thing I must admit I do not like very much is the missing "return" in your functions...
Maybe it's obvious, but I have to think over it...
I will also be at the Devoxx, will Sun show the JavaFX designer tool there ?
Thanks,
Guido
Posted by Guido on November 09, 2009 at 01:55 AM PST #
Hi Eduardo,
thank you!
Hi Guido,
yes, I may do a demo of the authoring tool at Devoxx!
Posted by Tor Norbye on November 09, 2009 at 07:22 AM PST #
Thanks a lot for this. I've seen a lot of ugly JavaFX code, and I hope that people adopt this style. I know I will.
Posted by Eric Wendelin on November 09, 2009 at 07:34 AM PST #