541
I HATE electron (lemmy.ohaa.xyz)
top 50 comments
sorted by: hot top controversial new old
[-] immutable@lemm.ee 230 points 1 year ago

People that are upset about electron should consider it’s not:

Electron App vs Wonderful Fully Supported Native Linux Application

The reality is that your choice is largely:

Electron App vs No App (maybe running their windows app in wine if you can get that to work)

It’s not like companies are going to go build a native linux app but electron got in their way. It was always electron or no support.

So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

[-] Shatur@lemmy.ml 44 points 1 year ago

I think proprietary Electron apps better run in browser anyway because of trackers that you can disable via extensions.

load more comments (1 replies)
[-] mustardman@discuss.tchncs.de 35 points 1 year ago

So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

This is a damn homicide lmao

[-] KSPAtlas@sopuli.xyz 17 points 1 year ago

Running electron apps becomes a genuine ram issue when running heavy ram workloads like running heavily modded games

load more comments (1 replies)
load more comments (3 replies)
[-] crispy_kilt@feddit.de 33 points 1 year ago

There’s no trophy you get at the end of your life for “most cumulative ram left idle”

Some people like to use more than 1 app you know.

Also, RAM is never ever idle. It is used as filesystem cache when not used by programs thus speeding up read accesses significantly.

load more comments (4 replies)
[-] ichmagrum@feddit.de 27 points 1 year ago

A lot of the time, the alternative would be a website running in the browser.

[-] crispy_kilt@feddit.de 10 points 1 year ago* (last edited 1 year ago)

I'd prefer that. One firefox instance can easily run 10 big fat websites while using like 6GB of RAM. 10 electron apps on the other hand? 32GB RAM won't be enough.

load more comments (1 replies)
load more comments (3 replies)
[-] Pechente@feddit.de 23 points 1 year ago

Well, there's also Tauri which requires slightly more testing since you actually use the device's built-in browser, so there might be differences. The upside is a much smaller bundle size, quick start-up times and often less RAM usage than with Electron.

[-] ky56@aussie.zone 16 points 1 year ago

What about laptop battery life? More CPU usage = less battery life. WHY DOES NO ONE GIVE A FUCK ABOUT BATTERY LIFE???

The single most reason I switched from Spotify to Apple Music is that I was sick of seeing the Spotify macOS app at the top of the "High Battery Usage" page on Activity Monitor. I also actually noticed less battery life. Fuck Electron. I avoid apps made in it like the plague.

[-] JackbyDev@programming.dev 16 points 1 year ago

Doesn't Qt provide native, cross platform UI? I agree with your post though.

load more comments (1 replies)
[-] nitefox@lemmy.world 14 points 1 year ago

lmao, yea. Besides, it’s not like electron is that bad either. We aren’t in 1990, why would you care if electron uses a gb of ram or ten processes or this or that… they think that native means good, but more often than not native means a shitty ugly unusable application that will work (not really) just on windows

load more comments (13 replies)
load more comments (23 replies)
[-] SuperSpruce@lemmy.ml 56 points 1 year ago

This might be a hot take but I've noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.

A well written electron app is better than a poorly written native app sometimes.

[-] Knusper@feddit.de 56 points 1 year ago

I mean, sure, but:

  1. The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.

  2. Startup time isn't really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.

[-] eltimablo@kbin.social 21 points 1 year ago

There's also the added CPU overhead from using JavaScript for everything to contend with.

load more comments (2 replies)
load more comments (7 replies)
[-] MyFairJulia@lemmy.world 30 points 1 year ago

That's not a compliment to Electron, that's a heck of an indictment to Microsoft messing up the File Manager.

load more comments (4 replies)
[-] morrowind@lemmy.ml 19 points 1 year ago

I mean sure once you start getting big enough, you'd probably be bundling all the features of chromium anyways, and any extra bloat is meaningless. Chromium and thus electron are extremely well optimized so if you are using the full feature set it will be fast.

But please stop using vscode as the benchmark electron app. It is not comparable. No other application in history has as large of a talent pool as vscode and It's possible none ever will either.

load more comments (1 replies)
[-] crispy_kilt@feddit.de 11 points 1 year ago

That's because all the important bits in VSCode are reimplemented in C++

load more comments (3 replies)
load more comments (1 replies)
[-] JetpackJackson@feddit.de 47 points 1 year ago

What does Ctrl shift I do (I'm not at my computer and I don't have any electron apps installed)

[-] Oha@lemmy.ohaa.xyz 73 points 1 year ago
[-] sfgifz@lemmy.world 12 points 1 year ago

Does it really have to? Vscode is built on top of it, I don't think it's ever opened chromium dev tools for the app (maybe I'm wrong?)

[-] bobbysq@lemmy.world 32 points 1 year ago

Some apps can disable it, I think Discord does so people don't get tricked into pasting random scripts into the console

[-] sorrybookbroke@sh.itjust.works 11 points 1 year ago* (last edited 1 year ago)

That is true, though it's possible to re-activate them through a configuration file in discord. However, a developer can fully disable the tools if they wish

load more comments (2 replies)
load more comments (3 replies)
[-] fury@lemmy.world 43 points 1 year ago* (last edited 1 year ago)

ITT: some people are mad the web became the application platform of choice, in part due to handy dandy cross platform app tools like Electron and accessible languages like JavaScript.

There is no perfect answer. Qt isn't using the platform's native capabilities to the fullest extent either. Qt requires a "wrapper" too--all those libraries your app depends on, to name a few (unless you got a commercial license and are compiling statically, you rich devil).

Let's celebrate the onslaught of apps that work with Linux instead of trying to scare off developers any more than Linux already did. Make love not war. <3

In my experience, Electron and other "web wrapper" apps run just fine and I have enough CPU and RAM to run a dozen of them alongside my 50 browser tabs. Slack, Discord, VSCode, Teams, IRCCloud, it all works fine. Hardware is cheap compared to my time.

[-] 31337@sh.itjust.works 14 points 1 year ago

It always seemed over-complicated to me to use web technologies to create a desktop application and run it in what is essentially a browser. The tool-chain of modern web and electron apps also seems overly complicated to me (writing in a slightly different language then transpiling to an interpreted language).

I don't find JS any more accessible than any other language with automatic memory management. JS is actually a bit of mess due to bolting on new features while keeping backward compatibility.

I don't mind using electron apps. VS Code is pretty great.

I think Java Swing was the apex of desktop development :)

load more comments (2 replies)
load more comments (3 replies)
[-] erasebegin@lemmy.world 34 points 1 year ago

JS land is the America of development. You may not like it, but it's the encumbent power and it'll be that way for a long time so might as well enjoy the plus sides

load more comments (1 replies)
[-] Alfika07@lemmy.world 34 points 1 year ago

Just wait for Tauri for mobile so there will be no reason for somebody to use Electron.

[-] Andrew15_5@mander.xyz 12 points 1 year ago

I like that for every Electron meme there's a Tauri comment.

load more comments (1 replies)
load more comments (4 replies)
[-] HKayn@dormi.zone 28 points 1 year ago

Where Linux

[-] AlexWIWA@lemmy.ml 28 points 1 year ago

I'll take shitty electron apps over winforms any day of the week.

load more comments (2 replies)
[-] Mio@feddit.nu 23 points 1 year ago

The problem is that even Microsoft choose to use Electron when they built Teams. MS got loads of developers and Teams is really a big product in terms of users.

load more comments (5 replies)
[-] HenriVolney@sh.itjust.works 22 points 1 year ago* (last edited 1 year ago)

Not very found of them either but it's hard to do without them, matter wise.

[-] woelkchen@lemmy.world 24 points 1 year ago

it’s hard to do without them

Just load the wrapped website in a browser.

[-] wildbus8979@sh.itjust.works 28 points 1 year ago

Or even better, encourage native apps.

load more comments (4 replies)
load more comments (16 replies)
load more comments (3 replies)
[-] spez@sh.itjust.works 17 points 1 year ago

Dude, if it doesn't hog memory then what's the problem?

[-] ziviz@lemmy.sdf.org 35 points 1 year ago

It kinda do though. VSCode, without a project open has 10 processes running and uses over a half gig of ram. I like VSCode to be clear. I also like discord but it's just a chat app and apparently needs a half gig itself and 6 processes.

[-] tdawg@lemmy.world 22 points 1 year ago

You should come over to vim. It only takes 12 months of intense training and an additional 3 years of super glueing random rc file configs together before it works how you want it to

[-] bitsplease@lemmy.ml 14 points 1 year ago

Yeah, but once it's all setup, you get to see all your coworkers roll their eyes when they see you use vim at every job from that point on

So, all worth it in the end 👌

Also, I've saved at least $5 over the last decade from wear and tear on mice

load more comments (2 replies)
load more comments (6 replies)
load more comments (2 replies)
[-] Mio@feddit.nu 16 points 1 year ago

Lets write an OS in Electron and go to March. Maybe start using the right tool for the right job. If i only know how to build with lego, I dont build a real house with lego, instead i learn how to do it right.

load more comments
view more: next ›
this post was submitted on 18 Sep 2023
541 points (92.1% liked)

linuxmemes

21281 readers
498 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS