Hacker News new | ask | show | jobs
by gatlinnewhouse 3235 days ago
Ahhhhh yes. When people post claims about it's terrible performance they're concerned about how the computer feels.

/s

No. When it comes down to it. Electron hogs and drains a user's laptop battery, which in turn affects their user experience. How hard is that to understand?

Not everyone has a Macbook with decent battery life. Some people don't like Macs, don't like Apple, or simply can't afford one.

If you program with a concern for perform and battery life, it'll run well on a Mac as well as an old computer.

If you code lazily with Electron, some people will notice: a drop in battery life, and a slowing down of their computer's responsiveness.

It's pretty simple really. Code for the lowest common denominator of your target audience.

2 comments

> Not everyone has a Macbook with decent battery life.

I have a MacBook with a decent battery life until I run electron apps, then I have a MacBook with crappy battery life.

> If you code lazily with Electron [...] It's pretty simple really.

It has nothing to do with 'laziness'. You ignored the entire 'The Business Case' section of the article.

I think OP was implying that you could code in a non-lazy way while using electron. For example, a lazily coded app would use too many frameworks (e.g. jQuery + jQuery UI + angular 1, 3 http clients, 3 underscore forks) and bad coding practices (many memory leaks and unnecessary duplication, no optimization attempts, team never learned the language, shipping dev builds with extra debug tools to production). Maybe electron isn't as bad as the bad apples draw it down to be. Personally, I'm still interested in something like react native for desktop.

   react native for desktop
We're all waiting for that silver bullet
And also this (cross-plat React Native for Windows/iOS/Android): https://github.com/Microsoft/reactxp
> Personally, I'm still interested in something like react native for desktop.

Use JavaFX with JS running on the JVM?

Far smaller runtime, far better performance.

OP was not implying that (see the rest of their comment).