r/java • • Nov 19 '15

Should Oracle Spring Clean JavaFX?

https://www.codenameone.com/blog/should-oracle-spring-clean-javafx.html
42 Upvotes

16 comments sorted by

3

u/lukaseder Nov 20 '15

Interesting opinion. I understand that if you're in the desktop application business, you'll be disappointed by JavaFX's performance on a community level. But I think this article is exaggerating the importance of this programming niche.

Along with Java, C is continuously rated top on the TIOBE index, despite being a horrible environment for desktop application development.

Perhaps, Java just isn't such a general purpose language as many people dreamed it would be. For many reasons, among which, certainly, lack of community leadership in niches like this one.

2

u/vprise Nov 20 '15

No one is arguing that Java is popular at the moment. However, Java is high there thanks to Android and the continued Java EE traction.

I wouldn't trust the reliability an index that puts Delphi/Pascal at number 12 at this point in time. I loved Delphi back in the day and Pascal was one of my favorite languages of all time.

According to Gartner etc. Java had 9M active developers (people actually writing code in Java not people who know Java) a few years back. Its now down to 6M (sorry I don't have the link, I saw it in a PR from Xamarin), this is troubling.

Java is still on top because at this very moment in time there is no real alternative. JavaScript etc. aren't ready. This can flip instantly just like any game of chess.

3

u/lukaseder Nov 20 '15

I wouldn't trust the reliability an index that puts Delphi/Pascal at number 12 at this point in time

I've recently (2 years ago) met an Embarcardero salesman. He told me that there are 3 million active Delphi developers out there. One of our clients maintains a core banking system written in Delphi with roughly 200 employees. It's not as "dead" as COBOL yet, and even COBOL isn't entirely dead...

Its now down to 6M (sorry I don't have the link, I saw it in a PR from Xamarin)

That would be very interesting to follow up with. Certainly not what Oracle says, but these numbers are never accurate.

This can flip instantly just like any game of chess.

I agree. But it won't flip because of desktop programming. That ship has sailed for all platforms, except, perhaps, .NET

1

u/vprise Nov 20 '15

The problem with the Pascal rating is the up arrow more than its actual position. If this was maintenance only it would be declining. Also as a guy who used to do a lot of assembly I find that ranking odd.

I noticed Oracle didn't highlight the 9m number as much in the past year.

I meant flip against the Java being in the first/second place in all the language rankings. Our company is hugely based on Java and marketed as such, this would be horrible for us.

2

u/lukaseder Nov 20 '15

You can write Delphi and deploy to the iPhone... Given these facts, I think that whatever happens, "horrible" is postponed for another decade or two for you. Don't worry.

1

u/vprise Nov 20 '15

The Xelphi stuff is a tiny company, hardly something that should move a needle. If this would be able to take a relatively dead language and jump it in the ranking then the only explanation for Java's traction is Android (which isn't good either as its JDK 6 era).

Changes in language/platforms happen fast and its already heavily felt for client development. If things progress the way they are I doubt Java will maintain its position but neither one of us can predict the future.

That's why I think the prudent thing to do is address issues soon to avoid potential risk.

20

u/qner Nov 19 '15

I didn't know that javafx is on the decline. Quite on the contrary, I thought it only started and would grow well rounded and better years to come. Picked it up with java 8 and was finally satisfied with building GUIs for applications + Lamdas & Streams. Breaks my heart a little bit. Thanks for the write up.

10

u/markee174 Nov 19 '15

Very well written article with some excellent original research to back up the claims.

10

u/kodifies Nov 19 '15

assuming the only use for JavaFX is ONLY for a UI is also a failing...

JavaFX can be used as a cross platform (without extra install) method for accessing 3d hardware.

It really needs some kind of cross platform shader language implementation. Implementing a truly 3d UI with JavaFX is fairly trivial, but the addition of a general purpose cross platform shader language would benefit both use cases...

1

u/GrayDonkey Nov 20 '15

I never thought JavaFX was bad. Desktop Java apps are on the decline and some super-duper Java gui library isn't going to cause a renaissance in Java thick-gui apps.

2

u/vprise Nov 20 '15

Notice that the article never called it bad. It just said that it never picked up and that for all intents and purposes Oracle dumped it and didn't send out a memo.

1

u/squishles Nov 27 '15

That fxml thing was stupid anyway. if I wanted to do my ui in xml I'd have just written html and jammed it into the webview anyway.

I did like it's java based components though there is a whole weird redo of the collections api that's a bit more functional paradigm friendly buried in that thing for some reason.

1

u/vprise Nov 28 '15

Redo of the collections API? You mean the component container hierarchy?

1

u/squishles Nov 29 '15

it's like they hybridized them to act like stacks you don't have to manually pop, I guess making use of the new streams stuff. I only did one fx app for fun before dropping it about a year back so my memory is foggy but the tables used them extensively. they missed a bit of an oportunity to subclass those to the regular collections api, data driven pushes can be usefull for more than thick client ui.

0

u/m-apo Nov 19 '15 edited Nov 19 '15

I evaluated JavaFX for my desktop app's UI last week.

The Modena skin looked just bland compared to native OSX widgets. There was a 3rd party extension that would have provided the OSX look, but there were some issues with it and I didn't want an emulated approach. I switched to SWT and the app looks as it should.

Except, now I need to hack the application menu and the app icon because SWT provides those on its own and the defaults are not easy to modify. I guess there's no silver bullet, but at least for me the native widgets were a definite requirement.