But Qt has rust bindings, so that’s good to learn!
Say no to Electron: use JavaFX to write a fast, responsive desktop app
31–40 of 143 posts
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#32Earlier quoted context omitted.
To me, on a sliding scale of complexity, JavaFx is closer to Electron than Qt and GTK+ (especially since your options are C++, or using bindings that have varying quality and ease of use). If I was trying to sell someone who uses Electron on an alternative it'd definitely be JavaFx, maybe Qt with QML if they knew C++.
C++ in itself is pretty complex comparing to other languages
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#33"you can distribute it to any user on any OS and it will just work." I had to check the date on this article to see if it was from 2007 or something. Under no circumstances does java "just work", its an insane mess of java shipped with the os, being updated, and people not updating due to oracle trying to force feed crapware as part of their installers/updaters. I, for one, do not live in a world that resembles anyth…
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#34Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#35The Chrome dev tools alone are pretty incredible. Getting that much detail in your debug environment, paint cycles, render times, animation effects, and quick style experimentation is a huge deal.
The package ecosystem for JS is also an enormous advantage. Having access to data layer systems like Redux & the Redux dev tools, as well as any module designed to run on Node.js really helps ensure an actively developed ecosystem that abstracts more and more away from the end application developer.
Finally, I argue that performance bottlenecks are rarely an issue of the javascript. V8 is extremely fast and only getting faster. Most bottlenecks come from doing something dumb during rendering, or tying up a process reading from disk. These are issues that happen on all app platforms. The big difference is that Electron gives you to tools to effectively debug and optimize these, plus a HUGE wealth of online resources & tutorials to help new developers jankbust.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#36Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#37> That's a world of difference from an Electron app, which typically needs 200MB just to open. This is sort of an unfair comparison - the JavaFX one is mainly smaller because it doesn't include the distribution of Java and all the libraries, which is if I recall correctly about 200 MB, while Electron commonly includes all libraries and the renderer. I will give you that the Java distribution can at least be shared by…
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#38Earlier quoted context omitted.
Correct me if I'm wrong, but I don't think the Java updaters on Windows do bundleware anymore. I know nearly all the free Windows antivirus updaters automatically install Chrome and set it as your default browser unless you pay close attention still.
The damage is done. Thank you Oracle.
Sun did that damage.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#39Don't say no to Electron just yet. And if you do, jesus, there's better alternatives than JavaFX (use Qt). You know what Electron has brought us? It's brought the Linux desktop reliable feature parity with other platforms. Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. Discord, another fantastic Electron app, is functionally iden…
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#40"you can distribute it to any user on any OS and it will just work." I had to check the date on this article to see if it was from 2007 or something. Under no circumstances does java "just work", its an insane mess of java shipped with the os, being updated, and people not updating due to oracle trying to force feed crapware as part of their installers/updaters. I, for one, do not live in a world that resembles anyth…
Javafx includes a packager tool which creates a native application with the runtime bundled inside. There is nothing to install.