If I understand it correctly, JavaFX is Sun’s answer to Flash. I just can’t seem to remember what the question was.
It’s not exactly Java and not exactly JavaScript, which is not a problem per se. But it doesn’t pick up the best traits of either one. It’s closer to JavaScript in capabilities, and it fixes some of the obvious flaws in JavaScript. Shame they didn’t fix JavaScript itself.
Take for example the JavaFX object notation. From a distance, it looks just like JSON. Yes! Move closer. It’s just different enough, so you can’t send a JSON response to either JavaScript or JavaFX client. We don’t even know it’s useful yet, and already we need to write more server code.
There’s something very simplistic about JavaFX. I’m thinking, if someone wanted to write the BASIC equivalent of Java, what would it look like? The BASIC I remember had very few basic types. It had functions, and separately it had operations, which it called GOSUBs. Uncanny. I guess, time to dust off my BASIC skills.
JavaFX takes some ideas from other languages and implements them in a simplistic, pre-canned way. There’s list comprehension, but only for certain values of comprehension. Closures, but only over arrays. Which are not matrixes, and don’t double as hashes. There’s deffered work, but no way to control it.
It’s as if someone wanted to create a simpler Java. But instead of working towards a language that makes software development simpler and easier, they dumbed the language down.
There are some smart features, but they’re baked into the language. So it’s either enough for all your needs, or you need to look elsewhere. And that’s the problem. Pick it up, write your first 100-line application, see how easy it is, maybe even have fun. But for the next app, you might spend an unnecessary 100 lines just working around a built-in limit of the language.
Perhaps there’s more to it. The triggers, the insert/update methods, the select statements; I’m guessing native XML and SQL support baked into the language in the future. Maybe it will grow up to be a real language. But right now, it looks like some fish and salty chips, but not enough rods.
(It is open source, though, which keeps me from saying “no thank you, pass the BBQ sauce”. Let’s see what the community can make from it.)