Re:Say no to Electron: use JavaFX to write a fast, responsiv...
by woodrowbarlow on Tuesday October 03, 2017 @12:37PM
(#15393708)
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, responsiv...
by geofft on Tuesday October 03, 2017 @12:00PM
(#15393344)
... wow. Yes. I don't understand how the author has missed that the web is good and JS and CSS and HTML are a fantastic set of technologies for building applications. They work.
I don't write frontend / GUIs for a living (I tend to do C and Python). But I have done work with GTK+ and Qt, and I have done work with Angular and other random JS frameworks, and the web is so good.
All the complaining about the web is from people who just want it to be better.
This article so thoroughly misses the point of Electron. Furthermore the author's snark and condescension just serve to antagonize and attack rather than making any semblance of a point.
People choose Electron because it's easy to work with for people who are already comfortable with JavaScript. JS devs get to use tools like React, TypeScript, Webpack, Babel, and other tools they already understand and like. You have the entire wealth of tools of npm at your disposal. And since it's JS, you can share code between Electron, your website, and your Node server.
In addition to that, HTML, CSS, and JavaScript writing UIs is something thousands of us do every day do for a living. Being able to do that for a desktop application unlocked a whole world of development that previously was closed to only those comfortable with Objective C, C++, Java, and the like.
The author does a woefully inadequate job of explaining that choosing Electron is a _tradeoff_. You're trading a larger memory footprint, bigger artifact to distribute, and some extra performance challenges for the ability to write your application like a website in CSS, HTML and JS and have it work on every OS that Electron supports. For many this tradeoff is unacceptable but it's either incompetence or idiocy to not see that this tradeoff works for many of us.