Earlier quoted context omitted.
I work with a project that contains tens of thousands of classes that span about 3m lines of code. Jump to any symbol responds to a fuzzy search in about one second. Jump to class autocompletes instantly as I type, and a rename takes a few seconds to update all classes in the project, including references from xml files and comments.
In IDEA, right?
Say no to Electron: use JavaFX to write a fast, responsive desktop app
111–120 of 143 posts
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#112Don'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…
> Electron has given desktop developers access to the web's fantastic tooling There must be irony here. The web development plateform is easy to get in, but hard to master: too many languages are involved (html, css, server side, javascript) and most didn’t have some really useful features until very recently (css grid for instance). Then you have the language creep (Typescript, Dart or anything to paliate JS deficie…
That is totally a thing in Java too. Languages: Groovy, Kotlin, Scala. Framework: GWT, Spring, Struts, Vaadin, Grails. Libraries decay: commons, apache, different parsers, different db drivers.
On top of that though, you need to think about your JVM? What dependency manager: Ant, Maven or Gradle. Then figure out which JDK to use, cause that's a thing. Then figure stuff out like facets. Sure this is more IDE field but the fact Java app architecture can be so whack that something like 'facets' needed to be abstracted only proves my point.
> If multiplatform support is not a requirment, the desktop languages and tooling are way ahead in term a ease of use.
Ahead with the size of muddle yes. Web stack is just very good and fast at emulating the amount of it.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#113"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…
It does just work, at least compared to web apps. I have experience of both web dev and distributing a somewhat complex JavaFX app to consumers. I bundled the JRE with my app so the users did not need to have Java installed. The leaks in the operating system abstraction Java gives you are really quite small. I wrote my entire app on macOS and tested on Linux/Windows only right at the end - after about 8 months of ful…
There's tools for that and i'm pretty sure just writing plain html and css or some compile-to-js would have shaved off significant time from that 8 month full dev time.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#114Earlier 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.
I use Eclipse with its native SWT UI and VSCode still blows it away in UI speed. Actually, if Mozilla's Servo tech gets integrated into something like Electron, then we will have some serious performance capabilities surpassing pretty much anything else comparable.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#115Don'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…
> there's better alternatives than JavaFX (use Qt). I've recently written a decent-size Qt app (QtWidgets, not QML) and the problem is the language. C++ leaves a lot to be desired especially coming from higher level languages. If you look around at language bindings, the only quality one I can find is Python and I want to avoid that too (I don't want to build a large app in a dynamic lang). Couldn't use Go, I needed…
what are you missing with QML ?
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#116Earlier quoted context omitted.
> there's better alternatives than JavaFX (use Qt). I've recently written a decent-size Qt app (QtWidgets, not QML) and the problem is the language. C++ leaves a lot to be desired especially coming from higher level languages. If you look around at language bindings, the only quality one I can find is Python and I want to avoid that too (I don't want to build a large app in a dynamic lang). Couldn't use Go, I needed…
> I just want a full-featured (i.e. not QML) what are you missing with QML ?
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#117Earlier quoted context omitted.
Why do you think it is worse? I am interested in hearing of your experiences on this.
Setting aside subjective reasons... how about the barrier for entry being lower for web development? Also, more people arguably have web development skills Java isn't new or unpopular- if people wanted to use it, they would
Many IDEs have some sort of visual GUI layout tool, but the nature of HTML+CSS makes it a far leakier abstraction less suited to visual positioning.
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#118Earlier quoted context omitted.
.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
#119It's also tough to beat the developer experience that the modern JS ecosystem has brought to app development. The 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…
Re: Say no to Electron: use JavaFX to write a fast, responsive desktop app
#120"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…
It does just work, at least compared to web apps. I have experience of both web dev and distributing a somewhat complex JavaFX app to consumers. I bundled the JRE with my app so the users did not need to have Java installed. The leaks in the operating system abstraction Java gives you are really quite small. I wrote my entire app on macOS and tested on Linux/Windows only right at the end - after about 8 months of ful…
Side note here: do you track security vulnerabilities of the shipped JRE and provide updates when it happens?
Too often, I've seen java applications shipping obsolete and vulnerable JRE. And in some cases, I've seen not consistent versions across a product line.
Also wasn't there some unknowns about the right to redistribute the Oracle JRE?