4 ms·
I'll try to counter your arguments, even though I share your sentiments against Electron: * Huge memory impact for your app The same is true for native macOS
by moring 7y ago
I'll try to counter your arguments, even though I share your sentiments against Electron:
* Huge memory impact for your app
The same is true for native macOS applications.
* Non-native look and feel (no, neither Vue nor anything else give a native app experience)
Agreed.
* Possible security holes, as Electron is patched behind Chrome, and your app therefore behind Electron
Security holes with respect to what kind of threat? That is, for an application that gets installed on a computer and runs with user privileges (), what is the kind of threat that could break Chrome/Electron but not a native macOS application?
() If we are talking about sandboxed applications, the thread could alternatively be the application breaking out of its sandbox. A different analysis is obviously needed here.
* (...) you value their computer resources very little (...)
This seems to contradict the suggestion to write a native c/c++ backend. Such a backend can easily optimize the performance-critical parts. Premature optimisation isn't the same as valueing your user's resources.
* Electron is the solution when a developer values themselves over their customers.
This is a false dichotomy. A developer who makes his/her life easier has more time to work on things that matter, including optimization.
- comex 7y ago> This seems to contradict the suggestion to write a native c/c++ backend. I’d much rather use an app with a native UI and a JS backend (like React Native) than one with a web-view UI and a C++ backend. After all, the problem isn’t JavaScript. JavaScript may be easy to abuse, but it can be a reasonably fast language if used well. The main problem, in terms of both usability and performance, is HTML rendering itself.
- _jal 7y ago> what is the kind of threat that could break Chrome/Electron but not a native macOS application? This isn't abstract; it isn't about whether Electron is theoretically vulnerable to more vulnerabilities than a native app. It is about Electron's history of CVEs.