It’s because there is no such thing as optimisation anymore. Websites are bloated to the gills with terrible animations and tracking scripts.
Comment on RAM prices soar, but popular Windows 11 apps are using more RAM due to Electron, Web components
ExLisper@lemmy.curiana.net 6 days ago
It’s because people want cross-platform apps and web is the easiest way to do it. Yes, you have Flutter, KML or Qt but those are often hard to work with (looking at you, Flutter) or it’s difficult to find devs that can work with them. You choose web (JS/wasm) and you have plenty of devs familiar with the tools and you can support all the platform easily. I’m using Tauri for my personal projects because it’s fun and easy. I could use Qt but I don’t want to work with C++ or Python, at least not in my spare time. If anyone can recommend me a nice framework supporting Linux and Android and using modern language I might switch. I haven’t found one.
Croquette@sh.itjust.works 6 days ago
fuzzzerd@programming.dev 6 days ago
I have been really enjoying working with Avalonia, it is a .NET library that works across windows, Linux, and Mac and allows you to use C# for desktop app development on those environments. Its what MAUI should have been.
mfed1122@discuss.tchncs.de 5 days ago
Yeah I just can’t stop getting ragebaited by the Electron hate. All Electron haters are free to develop their own efficient, pleasant looking, cross-platform native app instead since it’s so easy
A_norny_mousse@feddit.org 6 days ago
Just use the website then? There already is a suitable browser installed on every system. But no, people want apps. Makes it easier to stop people from having opinons about data collection and such. And the full browser stack needs to be fully reproduced each time. It gets really ridiculous when these apps sit idly in the notification area. Not to speak of security implications because electron apps and such usually don’t get timely updates.
ExLisper@lemmy.curiana.net 6 days ago
It is a good solution for some apps but if you need to store data locally, use push notifications, run something in the background or access any native APIs you have to go with a native app.
A_norny_mousse@feddit.org 6 days ago
All major browsers can do this - with the exception of running something in the background I guess. But that is exactly the sort of usage scenario where an Electron app is the worst choice. Coding a separate utility with no GUI would be the sane thing to do here, not put whole browser stacks into memory.
ExLisper@lemmy.curiana.net 6 days ago
You’re actually right, by now browsers have APIs to do most of the things apps do. Technically you could convert most apps to websites. I guess as a user I just don’t want all my apps to open a tab in my browser. I want to move apps between virtual desktops and monitors independently and I don’t want my app’s window to be clattered by all the menus from my browser. On mobile I also prefer switching between apps than between different tabs. For me the best compromise is:
BrianTheeBiscuiteer@lemmy.world 6 days ago
Pretty sure PWAs can run in the background.
dasbteam@lemmynsfw.com 5 days ago
WebBluetooth, WebUSB, WebSerial and the File System Access API aren’t universally available in Browsers for example.
Tauri would be a lesser evil compared to electron, but that then involves libwebkitgtk.