News for hackers. Stuff that matters.
Re:It is fast or it is wrong by pjmlp on Saturday December 29, 2018 @02:53PM (#18785356)
> Those who might suggest that Qt covers that role have to explain why, even though it has been capable of fast, attractive apps for a long time, nobody built Slack, Discord, Atom or VSCode in it.

Because those are companies dominated by webdevs that can't be bothered to learn anything else.

Even VSCode is probably a side effect of Microsoft trying to be cool and cattering to the new generations that don't know anything else.

For me, it just made me buy a Sublime Text license instead.

Re:It is fast or it is wrong by bunderbunder on Saturday December 29, 2018 @04:11PM (#18785697)
VSCode grew out of a project to make a browser-based IDE. So, when they decided to make a desktop-like user experience instead, Electron was the natural choice, as a way to make it a port rather than a complete rewrite.

You could argue that it's a similar story for things like Slack - for business reasons, they more-or-less needed to have a web-based UI. If you're already committed to that, then it makes sense to use Electron in order to maximize your code reuse.

I can't speak to Discord or Atom. Those ones make less sense to me, but there might be a reason there, too.

Speaking completely personally, Qt has never felt like a viable option for a commercial project to me. It does have some bindings for other languages, but, at least last I checked, they're all community supported. When you're talking about language binding libraries, it's reasonable to think of "community" as a polite way of saying "poorly". That can quite justifiably influence a person's willingness to rely on them for non-hobby projects.

I don't like JavaScript much better than I like C++, but at least I can more easily think of business cases for why I might accept being locked into JavaScript. The ones up above, for example.

Re:It is fast or it is wrong by latexr on Saturday December 29, 2018 @06:23PM (#18786310)
> I can't speak to Discord or Atom. Those ones make less sense to me, but there might be a reason there, too.

Electron exists because of Atom (yes, in that order). Electron was previously called Atom Shell[1] because it was created specifically to house Atom, although they mention it wasn’t created just for that. If there’s one app that has a reason to be built on Electron, it’s Atom, because it was an experiment to see how viable that solution would be.

But even they understand that solution wasn’t the best because it’s slow, so they’re experimenting with a model where the application logic is written in Rust and only the UI is built with web technologies[2].

[1]: https://electronjs.org/blog/electron

[2]: https://github.com/atom/xray

Re:It is fast or it is wrong by danellis on Saturday December 29, 2018 @04:47PM (#18785910)
At least part of the reason is probably the lack of a good layout engine that's more flexible than rich text and less complex than a web page. An embedded browser gives them everything they need for their highly stylized layout, but at a great cost.
Re:It is fast or it is wrong by pjmlp on Saturday December 29, 2018 @05:17PM (#18786042)
You can do quite powerfull layouts with QML.
Re:It is fast or it is wrong by spullara on Saturday December 29, 2018 @05:58PM (#18786216)
Discord also has an identical web UI.
Re:It is fast or it is wrong by zakius on Friday January 11, 2019 @07:15AM (#18882969)
that has less than half functionality (and across different browsers it may be even worse)
Re:It is fast or it is wrong by pseudalopex on Saturday December 29, 2018 @08:21PM (#18786756)
Qt includes JavaScript bindings. Python has commercial support. Java used to.

Electron is good for an MVP if you have or need a web app. Companies keep using it afterward because it commodifies developers and externalizes costs.

Re:It is fast or it is wrong by coldtea on Saturday December 29, 2018 @08:24PM (#18786766)
>Because those are companies dominated by webdevs that can't be bothered to learn anything else

I doubt Microsoft (VSCode) is in that camp. Or that that was the main concern of the others. And I think that's a facile explanation anyway: the same kind of companies flocked to do native mobile apps in the past -- but nobody much cared for QT on desktop still.

Re:It is fast or it is wrong by pjmlp on Sunday December 30, 2018 @06:12AM (#18788564)
It surely is, given the amount of love JavaScript has gotten since WinRT introduction, TypeScript, and Channel 9 sessions mostly done by newly hires.
Re:It is fast or it is wrong by pseudalopex on Saturday December 29, 2018 @08:40PM (#18786825)
Efficiency is more important for mobile apps.
Re:It is fast or it is wrong by threatofrain on Sunday December 30, 2018 @03:06AM (#18788034)
I would argue that VSC beat faster and more mature editors for one simple reason -- intellisense. All the other editors allowed the seductiveness of intellisense to go unanswered for years.

Otherwise I'm not sure why most people care about the internals of their editor.

Re:It is fast or it is wrong by 21 on Saturday December 29, 2018 @03:05PM (#18785410)
The Visual Studio Installer was rewritten from a native app to an Electron one.

They had a native app. They decided to throw it all away.

Re:It is fast or it is wrong by zakius on Friday January 11, 2019 @07:16AM (#18882978)
it's amusing how they managed to make the new installer as bad as old one was
Re:It is fast or it is wrong by pragmatic on Saturday December 29, 2018 @08:07PM (#18786713)
Can you elaborate on that?
Re:It is fast or it is wrong by pjmlp on Sunday December 30, 2018 @06:14AM (#18788573)
The JavaScript camp inside WinDev managed to get Electron to replace the WPF installer for VS 2017.
Re:It is fast or it is wrong by devxpy on Saturday December 29, 2018 @03:51PM (#18785605)
> Because those are companies dominated by webdevs that can't be bothered to learn anything else.

Tell me about it!