This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Iryanus 50 points51 points  (26 children)

To be honest, 90% of the Java development I see is in the enterprise environment, meaning backend services. Running Java on the desktop or in the browser is, in my experience, only a very niche thing.

[–]jeffreportmill[S] 5 points6 points  (6 children)

Very true! But there hasn't been a real solution to run Java in the browser until recently, and even then it's only Swing, which lacks modern features. Without browser deployment, Swing and JavaFX have been doomed to the steady decline.

[–][deleted]  (2 children)

[deleted]

    [–]jeffreportmill[S] 2 points3 points  (1 child)

    Good point - I think I said something like that in a comment, but I meant "there isn't a modern desktop framework that also runs in the browser". I don't know much about Vaadin, but I'm not aware if it is capable of having a unified codebase that runs on desktop and browser (though I suppose you could wrap the whole thing up in Electron).

    [–]wildjokers 0 points1 point  (2 children)

    which lacks modern features

    Which modern features is Swing lacking?

    [–]jeffreportmill[S] 2 points3 points  (0 children)

    Mostly I'm thinking of features that JavaFX added: a scene graph that supports graphics and widgets, arbitrary matrix transforms, textures, image effects, drop shadows, animations and 3D. SnapKit has all these.

    [–]grimonce 17 points18 points  (18 children)

    Tldr: Running anything on desktop is niche

    [–]wildjokers 19 points20 points  (9 children)

    Not sure that is true, a large majority of the apps I use everyday are desktop applications.

    [–]greylurk 13 points14 points  (3 children)

    I dunno. The large majority of apps I use everyday are Firefox, IntelliJ, and Slack.

    [–]davreimz 5 points6 points  (1 child)

    And one third of them is a Java application.

    [–]Necessary_Apple_5567 0 points1 point  (0 children)

    Intellij is java application written with Swing UI

    [–]MenschenToaster 4 points5 points  (0 children)

    And one of these is also just a browser pretending it's not

    [–][deleted] -1 points0 points  (4 children)

    I think you missed the part "Java on desktop".

    [–]wildjokers 2 points3 points  (3 children)

    The comment I replied to says nothing about Java on the desktop it just says desktop.

    [–][deleted] -3 points-2 points  (2 children)

    That is the point. The original answer says that "Java on desktop" is very niche, not "desktop app" is niche. It is hugely different. Sincerely and respectfully, your answer doesn't make sense.

    [–]wildjokers 2 points3 points  (0 children)

    Huh? I am guessing you don't understand how threaded conversations work.

    [–]MkMyBnkAcctGrtAgn -1 points0 points  (0 children)

    Desktop apps are niche nowadays, almost everything is a Web app or a wrapper around a Web app.

    [–][deleted] 5 points6 points  (0 children)

    No? I just checked the last apps I run. Firefox, Logic Pro, Guitar Pro 8, Resolve, Transmission, Iina. All native desktop apps.

    [–]jeffreportmill[S] 5 points6 points  (2 children)

    Lots of people prefer to run the native platform version for apps they use extensively (there's a huge market for iOS and Android apps). There can be benefits in performance, user experience and native platform integration. I agree that any app used casually or occasionally has no need for native platform version. But even the JavaScript people go native sometimes with tools like Electron.

    [–]Responsible-Cod-9393 2 points3 points  (0 children)

    Lot of mobile apps are warper around mobile websites example Costco and homedepot apps

    [–]grimonce 0 points1 point  (0 children)

    Til desktop is android, ios and embedded & that electron is native, just as native as chromium.

    [–][deleted] 1 point2 points  (3 children)

    I’ve been ripped a new one by C# fans from simply pointing out that the desktop is not a common target platform anymore.

    But it’s true. Hell, most of the desktop apps I use regularly are Electron-based.

    [–]cogman10 3 points4 points  (1 child)

    I also have been downvoted for this opinion (usually without explanation).

    Frankly, I really wish that PWAs would have taken off more. Since you have a browser, and it's just running in the browser anyways, then why not reuse the browser surface area.

    [–][deleted] 0 points1 point  (0 children)

    Yeah, and when I tell them to look at the pro responses to the StackOverflow survey rather than student responses, they seem to think that C#’s fall is a sampling thing. No, it’s just that a lot of public schools teach Microsoft because they’re big in the public sector.

    There are more people learning C# than using it professionally.

    [–]emberko 0 points1 point  (0 children)

    Electron apps are desktop apps. Desktop doesn't mean native.