Live data from Hacker News

Say no to Electron: use JavaFX to write a fast, responsive desktop app

sites.google.com

91–100 of 143 posts

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#91

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

As someone who spends all day in IntelliJ there's no way it's 10x as fast, hell for me it's flipped the other direction. VSCode is easily 10x faster than IntelliJ. If I'm writing Java I'll happily use IntelliJ but anything else it's VSCode or vim.

Same here, in a legacy code base with millions of lines of duplicated code that I unfortunately had to work on, IntelliJ would not even let me type, it just froze up all the time. Atom also sucked, fuzzy finder locked up the UI for 10 minutes. VSCode I can cold boot & start using the fuzzy finder, no issues. Feels like vim, in that it "just works". So performance is more dependent on what the software is doing, not what UI toolkit / runtime it uses. VSCode is faster on this codebase because it seems to not block editing due to a search index, like the others -- which has nothing to do with Electron vs Java.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#92

Earlier quoted context omitted.

> JS is weird yes. JS has problems yes. But the author is promoting friggin JAVA as the alternative? As a language, I find java is much better designed than Java Script.

Thats a totally valid opinion but its just that: an opinion. Personally I find Java overly verbose and bloated. I'd use it if it was the right too for the job though. Just depends on what you are doing.

> Personally I find Java overly verbose and bloated

Not much more verbose than it needs to be explicit.

  "Explicit is better than implicit."
                       PEP 20, Zen of Python

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#93
post #85

Earlier quoted context omitted.

> And if you do, jesus, there's better alternatives than JavaFX (use Qt). Because "god forbid" anyone use technologies associated with java? FUD at its finest. > Fat chance Visual Studio Code (often hailed as "one of the best-optimized electron apps") would have existed on Linux without Electron. I just use IntelliJ IDEA. It's ten times faster and ten times more powerful than Visual Studio Code. And it's written with…

+1 for intelliJ, or anything jetbrains. vscode gets a lot of hype but for serious development its still a toy. that said, as far as vscode proving that electron apps can be done very well, i do agree

why do "serious" Developers have to use heavyweight IDEs? what makes a more basic editor a toy?

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#95
post #85

Earlier quoted context omitted.

+1 for intelliJ, or anything jetbrains. vscode gets a lot of hype but for serious development its still a toy. that said, as far as vscode proving that electron apps can be done very well, i do agree

why do "serious" Developers have to use heavyweight IDEs? what makes a more basic editor a toy?

I'd say a lack of powerful navigation and refactoring tools.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#96

> This is not as much a result of the superiority of the web stack for building applications (far from that, I don't think anyone disagrees that the web is a mess), as a failure of the current desktop UI frameworks. If people are preferring to ship a full web browser with their apps just so they can use great tools such as JavaScript (sarcasm) to build them, something must have gone terribly wrong. This article so th…

But the article demonstrates that with JavaFX, you can have FXML + CSS + JavaScript. Isn't that close enough that a web developer could be comfortable pretty quickly? You're just working with a differently flavored DOM, right?

I am not a web developer, so I may be way off base.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#97

"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…

… especially if there's a dependency on JavaFX which is not available by default with every “Java” out there (eg. OpenJDK on Ubuntu).

this is why you package the whole JVM with it. This leads to a native executable without any dependencies (e.g. IntelliJ products)

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#99
post #48

Earlier quoted context omitted.

.NET could use that.

.NET Core can do that: https://docs.microsoft.com/en-us/dotnet/core/deploying/deplo...

.NET Core unfortunately doesn't support WPF . I think UWP isn't supported either.

Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app

#100

Earlier quoted context omitted.

As someone who spends all day in IntelliJ there's no way it's 10x as fast, hell for me it's flipped the other direction. VSCode is easily 10x faster than IntelliJ. If I'm writing Java I'll happily use IntelliJ but anything else it's VSCode or vim.

Are you running stock or loaded with plugins ?

Stock Android IntelliJ, VSCode with a few plugins(Vim bindings mostly).
Post reply on HN