3 ms·
> If you're experienced enough to write a polished Mac app (and that is a non-trivial undertaking) you're experienced enough to write a polished front end in El
by lucideer 7y ago
> If you're experienced enough to write a polished Mac app (and that is a non-trivial undertaking) you're experienced enough to write a polished front end in Electron.
Yeeaaahhhh, not really. Number 1, they're different skillsets. You can be experienced enough to do one, and know relatively little about the other. They're related insofar as they both involve programming and UI/UX but the relationship's far from linear.
> Use a lightweight framework (e.g., Vue)
Just the shallowness of this statement belies the overall point being missed in this comment. There's so many things wrong with this statement:
- What is a "lightweight" framework?
- Is Vue really lightweight?
- Does using a lightweight framework make your app lightweight?
- Does everyone use Vue the same way?
- Is the UI framework even the main performance bottleneck in Electron apps?
The rest (being sensible about drawing and prepared to write some C++) are also such vague advice. It's possible to write a very performant pure-JS electron backend. Most don't manage to, and even if they do there are other unrelated bottlenecks. There's plenty of people writing bad C++ too.
> Easy to drop into WebGL if you need it
I really feel you're understating the migration cost of DOM UI to WebGL here... just a tad.
> Less vendor lock-in
That really depends how deep your npm dependency tree goes. Migrating off a bunch of no-longer-maintained JS deps you've intertwined into the core scaffolding of your app isn't going to be particularly different from a platform framework change for a large complex product.