Live data from Hacker News

Electron considered harmful

drewdevault.com

51–60 of 256 posts

Re: Electron considered harmful

#51

I have been wondering...does Slack freeze for like a couple of minutes a couple of days a day for someone else? I am on win10, on pretty hefty machines. No idea if it's because Electron or something else, but it's really annoying. I could not find any trace of issues in the event viewer etc.

Yes it does for me, too / win 10, too /; I _think_ it is connected to @mention of my nick

Re: Electron considered harmful

#52
Stupid essay is stupid, but I'm glad it pointed me to lossless-cut because that tool is great! The author completely misses the point of Chromium in berating lossless-cut for being "a graphical UI for two ffmpeg flags". Yes, exactly, it's a GUI that lets you cut video to the precise frame you want to. That exactly solves a problem I've had for a long time; I've been using a horrible ffmpeg command line alias (along with preview in VLC) for a year now. He's a little right about "It doesn’t even use ffmpeg to decode the video preview in the app"; that would be useful for supporting weird formats that Chromium doesn't. But for common formats lossless-cut is great. It's at https://github.com/mifi/lossless-cut

Re: Electron considered harmful

#53

I look at Electron apps the same way I used to look at Adobe Air apps. Any League of Legends player knows how bad the launcher is - 80% the fault of Adobe Air. Sure it was easier to build, but your users suffer for it. Electron apps are pretty terrible performance wise, and you can immediately tell it's an Electron app. - Atom - Slack - GitKraken All of these apps have 'tells'.

If you didn't like the old LOL Adobe Air client you're really not going to like the new Chromium HTML 5 client.

Re: Electron considered harmful

#54
post #45

I look at Electron apps the same way I used to look at Adobe Air apps. Any League of Legends player knows how bad the launcher is - 80% the fault of Adobe Air. Sure it was easier to build, but your users suffer for it. Electron apps are pretty terrible performance wise, and you can immediately tell it's an Electron app. - Atom - Slack - GitKraken All of these apps have 'tells'.

Yea but look at VSCode, definitely an exception to this. The feel of code vs atom is night and day to me.

Props where it's due! VSCode definitely feels native.

Re: Electron considered harmful

#55

I dislike JS just as much as the next guy but the only real contender on the list is Qt. Which you need to license for commercial development. Furthermore, even though I like to think that I'm ok in C++, I would really think twice before using it on my next project these days. The JS performance issues should go away for the most part when wasm is standard. Also a lot of people write some compile to JS language, not…

Qt is LGPL, you don't need to share your application code; you only need to share Qt's code (which only matters if you modify Qt).

(not legal advice; I'm not completely sure about this)

> The LGPL allows you to keep the source code of your application private as long as it is “work that uses” the library. Dynamic linking is usually recommended here.

Re: Electron considered harmful

#56
post #36

Earlier quoted context omitted.

What if there was a centralized way of accessing HTML + CSS + JS applications? Instead of installing apps, you could just... "download" the necessary files to execute them? Perhaps even on demand from centralized.. "servers"?

I really don't want APIs to freely access the filesystem, other processes etc in my browser. And my applications to work offline. I haven't seen many examples of people using Electron to make applications that really should be web apps instead, but more for packaging web apps with native enhancements. Often I'd prefer a "proper" native app, pushing even more features in the browser IHMO is not the answer.

>I really don't want APIs to freely access the filesystem, other processes etc in my browser. And my applications to work offline.

Ctrl+S -> Save whole webpage

alternatively get the Webpages source code.

Re: Electron considered harmful

#57
post #16

I think the points raised are solid, but at this point it seems like Electron is the best worst solution for cross platform UI. Having worked with Qt I never wanna do that again. There's also a much more significant portion of developers who can work on Electron based apps. Part of picking the best tool for the job involves considering maintainability and ease of development after all.

What are your problems with Qt? I was using PyQt, and I found it nice (Qt's integration is good).

I was using C++ Qt. Just found it really unintuitive and difficult to use compared to web technologies and native macOS development.

Re: Electron considered harmful

#59
post #3

This had me for the first half, where the author walks you through the 'case study' applications that offer minimal functionality despite shipping with an entire browser inside. But then the essay turns into a rant. It's 2016, people, the ship has sailed on pretending JS isn't a real programming language. Phrasing the argument the way he does just betrays his smug elitism. The fact is, for many types of applications,…

I think the author really has some valid points and he warns you about the rant part. Valid points are: * Electron is often too much for the purpose * it does not look native and the devs don't care * often there are better tools His points about JS being not a good programming language, meh, the language wars are probably never over #SmalltalkIsStillTheBest

> it does not look native and the devs don't care

this is not valid. no need to limit our use case to devs, either. at worst, users don't care. at best, users prefer it. see Spotify, Discord, Skype, Sublime, Chrome, Steam... should i keep going?

whenever i open an app that uses entirely native controls i just expect the author didn't want to invest any time into making their app look good.

Re: Electron considered harmful

#60
post #14

This article makes a good point, but what's the alternative? There is no good cross-platform GUI solution. Qt, GTK, JavaFx, wxWidgets, none of them are very good. Electron at least has the advantage of being fully cross-platform and not having to learn a whole new universe if you're already familiar with the web.

>There is no good cross-platform GUI solution.

TTK. That is all.

Post reply on HN