939
Looking at you Ionic, Tauri, ...
(lemmy.kde.social)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Cross-platform apps - The Linux experience:
I'd rather wine about it than use an electron app
I do use some Electron apps, but I also can't say I enjoy it much.
No, but when I have the choice between a platform-specific software I like and a cross-platform software I don't, I usually go with the former.
I've used Linux for much longer than Electron even exists, and I've learned to live with what I have available.
Yes & no is my take. Usually no Linux support means a free software app is born to replace it which is awesome--or better, a previously-obscure or deserves-revitalization free software application gets its moment in the sun (rather than reinventing shit that already works cough Matrix). …The downside is when employers/client/etc. demand you use some proprietary sludge so luckily you have Electron app to get over that hurdle--tho 90% of apps in this category largely should be fine in PWA form instead of needing Electron.
I'd rather just have it working properly inside a browser, instead of it telling me that it has this neat cross-platform app, which turns out to just be Electron. On mobile that can be fine, but I dislike it on Desktop, personally.
Do excuse me if this is false, I have never actually worked with Electron on the developer side myself, however I don't believe it offers anything you couldn't do through a normally provided website. I know for example Discord only allows screen sharing in the desktop app, however I've also seen websites which allow screen sharing, so that seems more like an arbitrary restriction than anything. I mean, in the end it's just a dedicated Chromium install for one single website, so where is the need to force the website onto your pc?
UX-wise, having a standalone “app” you can open and CMD-tab to is superior to “which of these 50 fucking tabs I have open is that app I was using…”
But, Electron also wraps your “website” and provides APIs to OS-level stuff like the camera, files, etc. It’s really quite elegant and probably the way of the future. It will absolutely get more performant as it matures.
It can do stuff that running in your browser can not. Since electron runs both the client-side code and the server-side nodeJS you can communicate between the rendering engine and the back-end for tasks that a web browser alone wouldn't allow you to do, like accessing and navigating your local file system for example. Or if the app has a lot of assets and it needs to work offline, you can have the nodeJS backend download the files and encrypt them and have the front-end query the nodeJS and to get the decrypted assets and use the whole web app offline completely with a local database that you may sync with a webserver at some point later if or when internet connectivity is restored.
For most apps its overkill, but Electron and NodeJS can do pretty much anything a native app can do (just slower and while using a LOT more resources than a native app) but can be done entirely by someone experienced in web frontend development and nodeJS.
I am glad that atleast it ends there. It could have been worse.