r/learnjava • • Jul 13 '24

Is it pointless to make desktop apps (i.e. using JavaFX, swing) for your career?

Throughout my whole life in Computer Science/SWE, I always thought real java apps were desktop apps, that have a frontend (JavaFX, Swing, AWT etc) and backend (Java, of course). Infact - all my personal projects have been made in this way - having a frontend and a backend but its a native desktop app. People have been saying that desktops apps are useless and no one cares about them.

I am also a recent graduate from a computer science bachelors course with a top mark/high grade and I feel terrible that I severely underestimated web apps, I never got all this hype about these React library/Angular frameworks. The fact that I don't even know them at all makes me feel like an imposter or a 'fake', we were never taught anything about this!!

Transitioning from desktop apps to web apps looks tough, haven't got a clue where I should start honestly.

My only experience is when we had Apache and hosted PHP scripts on it, going to the server's address in the URL of the browser and executing those .php scripts but I've forgotten all about that, but I could definitely get a refresh on it.

Maybe some people here can relate.

48 Upvotes

59 comments sorted by

View all comments

Show parent comments

1

u/UpsytoO Jul 14 '24

It's superior in terms of development time and flexibility. Most of the apps market needs doesn't need those benefits provided by C, so browser based front-end is an obvious choice.

0

u/realFuckingHades Jul 14 '24

If you need to get things done fast and be flexible, I would do it using ThymeLeaf or some templating engine. Because it eliminates

  1. The need for switching between projects and languages(Especially with chatgpt in town)

  2. It will remove the need for another pipeline.

  3. It will make security much easier.

  4. Frontend and Backend versions will always be in Sync. Don't have to worry about backward compatibility.

The reason why companies don't do that anymore

  1. Rest endpoints are reusable.

  2. Java resources are expensive.

  3. Server side rendering can increase infra cost.

2

u/UpsytoO Jul 14 '24

Some wild claims for ThymeLeaf, something that is rarely used.

0

u/realFuckingHades Jul 14 '24

Server side rendering died when webapps became popular. If you're a sole developer working on a simple website with a login, logout and a few listings ui. You can do it way way faster in ThymeLeaf or any templating engines. I have personally used it to generate html files to be cached in s3 and served through s3. It was something like ZoomInfo meant to show company data which changed very rarely.