939
you are viewing a single comment's thread
view the rest of the comments
[-] CatLikeLemming@lemmy.blahaj.zone -1 points 11 months ago

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?

[-] some_designer_dude@lemmy.world 9 points 11 months ago

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.

[-] pleasejustdie@lemmy.world 7 points 11 months ago

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.

this post was submitted on 12 Dec 2023
939 points (98.8% liked)

Programmer Humor

32557 readers
568 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS