Hacker News new | ask | show | jobs
by abjKT26nO8 2265 days ago
> This Electron-bashing is getting rather old - it's possible to write crappy code on any platform.

It's possible to write crappy code on any platform, but some platforms (like Electron) make writing apps that don't suck impossible.

> Yes, some Electron apps are resource hogs, but many are not. VS Code is a perfect example of how Electron can enable development of a performant, cross-platform IDE.

All Electron apps are resource hogs, including VS Code. Just because Slack made it a standard to ignore the fact that not everybody has loads of RAM and that there are other apps running on the system, doesn't mean everybody's standards of performance and UX should race to the bottom.

1 comments

I strongly disagree, and I have to question if you've actually used VS Code.

I use VS Code every day, and relative to it's capabilities, I think memory usage is good. It also starts almost instantaneously, and is very snappy when using.

I am not bashing on Electron, but I have seen slowdowns and memory hogging on VS in large projects (Typescript). I end up restarting it every 3-4 hours to get it back a baseline speed.
You’re not at all alone, working across several teams of devs and infra engineers people are always whinging about electron apps that eat up resources, kill their batteries and slow down over time, slack and VSCode are prime examples.
I tried it, saw rendering glitches like the ones you see when you scroll a webpage using Firefox or Chromium on X, looked at the RAM usage, saw that its UI is its own thing that doesn't integrate with the rest of the system[1] and concluded that it's not for me.

[1]: Well, this last point isn't all that exceptional on Linux, but it adds up and I suspect that for people using macOS this is a downgrade.

Not that I doubt you, but I think your experience is atypical. I've never seen rendering glitches on Windows, Linux or MacOS (I use all 3,although mostly Windows & MacOS), and I've been using it since forever. A totally scientific straw poll of colleagues finds the same.