Live data from Hacker News

Why I chose Electron.js for my side business

getloaf.io

51–60 of 127 posts

Re: Why I chose Electron.js for my side business

#51
post #40
post #34

Earlier quoted context omitted.

This is a false dichotomy. There are plenty of cross-platform toolkits that are far leaner than electron.

Can you please give me a list of examples I can evaluate myslef and decide if it's worth spending my time learning instead of going the Electron route?

Not the previous poster, but here is a list of cross-platform GUI libraries / toolkits:

https://en.wikipedia.org/wiki/List_of_platform-independent_G...

Re: Why I chose Electron.js for my side business

#52
post #41
post #6

No matter how much I hate the bloat, and no matter how much I don't like JavaScript as and language due to it's behaviour around type coercion, I can't help it but to agree with everything in this article. Reusing the frontend skills I learned throughout the years to build desktop apps when needed, instead of having to learn an OS toolkit (and in the case of linux, multiple desktop environments, neve mind Wayland vs…

The tweet mentioned in the article, saying: Electron app memory usage: 150MB Native app memory usage: 0 MB (because you never ship it) really hit home for me.

I used to disagree with this view, since I was "raised" in school to think that raw performance is the only worthy attribute of a computer program, regardless of purpose. Then, when I started working on real products instead of homework I learned how wrong that way of thinking was.

Of course it does not apply to everything, some apps do need every last clock cycle of speed, but so far none of mine had.

Re: Why I chose Electron.js for my side business

#53
post #45
post #8

I wish more companies would choose Electron instead of native apps so they could iterate faster on all platforms. I bet most people who have a problem with Electron are laptop users. I use a refurbished HP desktop i7 that I bought two years ago for $300 on Amazon and upgraded the SSD and 32gb RAM for another $250 or so. I can run numerous instances of VS Code, Chrome, Slack, Postman, etc all day without even a hint o…

I have desktop and I hate Electron apps with a passion. Sure one or two apps are ok. But since each app is Electron (not literally but a huge number). Your RAM melts like butter in near Sun's orbit.

Discord somehow manages to run quite efficiently in contrast to nearly every other Electron app out there.

Re: Why I chose Electron.js for my side business

#54
post #9
post #6

No matter how much I hate the bloat, and no matter how much I don't like JavaScript as and language due to it's behaviour around type coercion, I can't help it but to agree with everything in this article. Reusing the frontend skills I learned throughout the years to build desktop apps when needed, instead of having to learn an OS toolkit (and in the case of linux, multiple desktop environments, neve mind Wayland vs…

You should check Gnome Disks, it alrady has bencmarking builtin and is installed by default on Gnome environments.

I just tried it and got some crazy high numbers for a VM image mounted on an external USB drive. Something seems off about how it is assessing caching.

Re: Why I chose Electron.js for my side business

#55
post #6

No matter how much I hate the bloat, and no matter how much I don't like JavaScript as and language due to it's behaviour around type coercion, I can't help it but to agree with everything in this article. Reusing the frontend skills I learned throughout the years to build desktop apps when needed, instead of having to learn an OS toolkit (and in the case of linux, multiple desktop environments, neve mind Wayland vs…

> Without Electron it would take me months of intense dedicated time, which I would rather spend on something else.

c'mon, getting the very basics of it in Qt took the better part of 15 minutes and less than 100loc - then it's mostly a menial "where to show which data"

https://github.com/jcelerier/fio-ui

Re: Why I chose Electron.js for my side business

#56
post #38

Earlier quoted context omitted.

Oops, had and typo there, meant to say: reusing the frontend skills... what is weird about that? Here's another example: GNOME shell uses JavaScript and CSS, and it's pretty straightforward to understand. Was looking at the code of a plugin to hide the workspace switcher popup and tried a few things to instead reduce the animation time to something that does not necessarity stick around over my windows too long to bo…

I don't think they were commenting about the typo, they were simply pointing out that it isn't weird to prefer using things you know. Personally I can't agree, since in this case using what you know involves shoe-horning a hacked together and mutated beast into a role it wasn't designed for.

Oh, sorry for misunderstanding that.

It's true what you're saying, JavaScript wasn't designed for this, and chromium is being repurposed for something out of it's scope too. But hopefully it will evolve with time in the right direction, my honest opinion is that it has the potential, mainly due to it's popularity, there's and huge amount of resources and hours people are willing to invest it it.

Re: Why I chose Electron.js for my side business

#57
The more I look at “modern” web sites and apps, the more I think that there should be a way to force software providers to offer discounts if their products are, essentially, bloated. (Prior to getting the software, you cannot tell how it is going to be implemented.)

There is a measurable cost to me for using these “lazy” apps:

- time and data plan spent downloading and updating these monsters

- my disk space (yes, my previous laptop ran out of space, which is hard to accept when you see “simple” apps using hundreds of megabytes)

- my battery life and utility bill (it is easy to measure the absurd CPU use of some of these things)

I am literally subsidizing your development with my own resources, because you couldn’t be bothered to create something that is at least moderately optimized for users.

Re: Why I chose Electron.js for my side business

#58

Earlier quoted context omitted.

In a heartbeat. The fact of the matter is, ecosystem trumps everything else. For UX development, nothing comes close to javascript. The language may suck, npm is somewhat of a trainwreck, and yet, if you want any sort of esoteric component, you'll find it in JS. It's got so many tools that it simply isn't uncommon for newer desktop apps to have embedded browser in them as an option. Want proof? - Show me a Lazarus na…

> It was built for UX It kinda really isn't. "Great UX" is not something I associate with any web app. They're generally slow and unresponsive, have atrocious accessibility, and don't integrate with OS native UX concepts.

For super simple apps, sure, you might be able to get away with OS native (or frameworks like GTK). And the look and feel will be better.

That's not really the point I was making. The point I was making is that if you want to do anything more complicated then "push this button", you'll quickly find out how limited pretty much every other UX environment is.

Javascript isn't "Great UX" it is "Great UX ecosystem".

Re: Why I chose Electron.js for my side business

#59
post #48

Earlier quoted context omitted.

Users love functionality provided by those apps, not the fact they were made with Electron for business reason. People love Discord. On a desktop they have no choice but to use its Electron client. Some people love Skype, but I guess not one of them wanted for native Skype to migrate to Electron. The list goes on. Electron app developers are dime a dozen, comparing to native app developers. That's the biggest driver…

> People love Discord. On a desktop they have no choice but to use its Electron client These are just the last few results for `yay -Ss discord`: aur/purple-discord-git v0.0.r637.d47f0bc-1 (+13 0.24) A libpurple/Pidgin plugin for Discord. aur/ripcord 0.4.27-1 (+20 0.66) Qt-based Discord and Slack client aur/discord-canary 0.0.115-1 (+29 2.70) All-in-one voice and text chat for gamers that's free and secure. aur/disco…

I've used a few alternative Discord frontends, both GUI and terminal-based.

To put it frankly: they're all flaming heaps of dog shit.

Re: Why I chose Electron.js for my side business

#60
post #6

No matter how much I hate the bloat, and no matter how much I don't like JavaScript as and language due to it's behaviour around type coercion, I can't help it but to agree with everything in this article. Reusing the frontend skills I learned throughout the years to build desktop apps when needed, instead of having to learn an OS toolkit (and in the case of linux, multiple desktop environments, neve mind Wayland vs…

> Without Electron it would take me months of intense dedicated time, which I would rather spend on something else. c'mon, getting the very basics of it in Qt took the better part of 15 minutes and less than 100loc - then it's mostly a menial "where to show which data" https://github.com/jcelerier/fio-ui

From your GH profile I see you're quite familiar with C++ development. Personally I'm not, at all, I'm barely comfortable enough with installing Emacs from source. Considering the time I need to dedicate to my dayjob and the limited amount I have on the weekends I'm not exagerating when saying it would take me months to reach and level where I would be comfortable developing something in Qt. Not impossible, of course, just time consuming.
Post reply on HN