• immutable@lemm.ee
    link
    fedilink
    arrow-up
    54
    arrow-down
    2
    ·
    1 year ago

    People that are upset about electron should consider it’s not:

    Electron App vs Wonderful Fully Supported Native Linux Application

    The reality is that your choice is largely:

    Electron App vs No App (maybe running their windows app in wine if you can get that to work)

    It’s not like companies are going to go build a native linux app but electron got in their way. It was always electron or no support.

    So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

    • crispy_kilt@feddit.de
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      There’s no trophy you get at the end of your life for “most cumulative ram left idle”

      Some people like to use more than 1 app you know.

      Also, RAM is never ever idle. It is used as filesystem cache when not used by programs thus speeding up read accesses significantly.

      • EddoWagt@feddit.nl
        link
        fedilink
        arrow-up
        2
        arrow-down
        3
        ·
        1 year ago

        Honestly even with more than 1 application open it shouldn’t be an issue. Maybe with a really old computer, but anything modern really should handle an electron app just fine

    • ky56@aussie.zone
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      1 year ago

      What about laptop battery life? More CPU usage = less battery life. WHY DOES NO ONE GIVE A FUCK ABOUT BATTERY LIFE???

      The single most reason I switched from Spotify to Apple Music is that I was sick of seeing the Spotify macOS app at the top of the “High Battery Usage” page on Activity Monitor. I also actually noticed less battery life. Fuck Electron. I avoid apps made in it like the plague.

    • Shatur@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      I think proprietary Electron apps better run in browser anyway because of trackers that you can disable via extensions.

    • mustardman@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      3
      ·
      1 year ago

      So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

      This is a damn homicide lmao

      • KSP Atlas@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Running electron apps becomes a genuine ram issue when running heavy ram workloads like running heavily modded games

      • samson@aussie.zone
        link
        fedilink
        arrow-up
        0
        arrow-down
        3
        ·
        1 year ago

        And very true. 32gb is 99 dollars Australia pesos, 16 is about 70 percent that. What a waste to let it sit around.

          • samson@aussie.zone
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            1 year ago

            I’ve never had a problem with the speed of an electron app be it steam or Spotify.

    • uis@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      1 year ago

      remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something.

      Remember that house you paid for doesn’t provide value unless you fill it with elephant shit.

      That’s consumerism. Another equally shitty statement: your liver doesn’t provide value unless it dies from all toxins in the world.

    • RaivoKulli@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      1 year ago

      So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something.

      It could be doing so much more if you hadn’t gone with Electron you fuck

        • Buddahriffic@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          From the comments that have mentioned the efficient programming languages, my guess is there’s a bunch of devs in here that never got past the “c++ is hard!” stage.

          The first time I saw an office app launch in my browser, I was both impressed that they got excel to work in a browser and appalled that they wanted excel to work in a browser at the same time. And I’ll admit that it does perform well considering it’s running in a fucking browser, but I’ll still launch the native app any time I actually want to work with a file that’s opened in the browser.

            • Buddahriffic@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              Keep at it, eventually things will click and you might find yourself appreciating the compiler errors and type strictness. Perhaps you’ll even spend time getting rid of warnings even though it will let you run without doing that, because they indicate edge cases that might break your program in difficult to debug ways.

                • Buddahriffic@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 year ago

                  Yeah, time is always the hard part.

                  It’s all kinda the same btw. Like you’ll have different sytax and styles, but most languages have variables, loops, conditionals, functions, objects, inheritance, APIs to access OS functions like files and network, etc.

    • Pechente@feddit.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Well, there’s also Tauri which requires slightly more testing since you actually use the device’s built-in browser, so there might be differences. The upside is a much smaller bundle size, quick start-up times and often less RAM usage than with Electron.

    • TheOPtimal@lemmy.blahaj.zone
      link
      fedilink
      ქართული
      arrow-up
      0
      arrow-down
      1
      ·
      1 year ago

      Even native apps usually use cross-platform toolkits which usually have very good Linux support. E.g. Qt, .NET, WxWidgets, GTK (maybe)

      • bitsplease@lemmy.ml
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        Idk who you think you’re speaking for, but I don’t think it’s as many people as you think lol.

        Besides an electron app you don’t use and no app are literally the same thing, so why choose nothing?

      • Cralder@feddit.nu
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        1 year ago

        You know that “no app” and “not using the app” is the exact same user experience right? So you can just not use the app and stop complaining about it existing.

        • monk@lemmy.unboiled.info
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          1 year ago

          “Not using the app” means instead of developing a real one, I’m being pointed at an abomination.

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    1 year ago

    As a full stack web developer, I FUCKING LOVE Electron. I can make really cool desktop apps, and you can deal with it.

  • SuperSpruce@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    1 year ago

    This might be a hot take but I’ve noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.

    A well written electron app is better than a poorly written native app sometimes.

    • Knusper@feddit.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I mean, sure, but:

      1. The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.

      2. Startup time isn’t really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.

      • vivadanang@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        file manager opens instantly.

        genuinely curious, I have a shitton of networked drives and at least 7 volumes on this locally, file manager has always popped open ready to go at a click or hotkey.

      • SuperSpruce@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Can you recommend some third party windows file managers?

        1. Stock file manager has an okay UI (tabs are super nice) but is kinda slow, especially on battery.

        2. I tried explorer++ but its UI is clunky and it’s only slightly faster than the stock file manager.

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Well, the file manager I use on Linux, Dolphin, has an experimental Windows version.
          When I learned of that a few years ago, I gave it a shot on Windows and I prefered it to File Explorer, but it’s not like I compared it to other offerings or anything like that.

          I do think that’s the best file manager on Linux and most features were working on Windows back then, so it’s not unlikely either, that it is by far the best offering for Windows. But it could also be a buggy mess. I wouldn’t know…

        • legendarydromedary@feddit.nl
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I’ve been using Double Commander for years and I love it, but the UI takes some getting used to (and the default settings aren’t great).

  • Mio@feddit.nu
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    The problem is that even Microsoft choose to use Electron when they built Teams. MS got loads of developers and Teams is really a big product in terms of users.

          • seitanic@lemmy.sdf.org
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            1 year ago

            It’s quick and doesn’t lag at all, even with the couple dozen plugins I have installed. Compare that to Atom (or whatever it’s called now) with zero plugins.

            • darcy@sh.itjust.works
              link
              fedilink
              arrow-up
              4
              arrow-down
              2
              ·
              1 year ago

              i cant relate sadly. ive got a decent computer but vscode still takes a while to load (with plugins). neovim on the other hand takes a split second to open, and has never crashed on me, even with the equivilent of my vscode plugins

  • AlexWIWA@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    I’ll take shitty electron apps over winforms any day of the week.

  • Presi300@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    4
    ·
    1 year ago

    Well, screw you too, do you know how much easier developing web apps is compared to native ones? I’ve only tried to use gtk and qt and took more years off my life than the entire time I’ve spent learning web stuff… I genuinely don’t know how people have the patience and expertise to use native frameworks…

  • Mio@feddit.nu
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 year ago

    Lets write an OS in Electron and go to March. Maybe start using the right tool for the right job. If i only know how to build with lego, I dont build a real house with lego, instead i learn how to do it right.

    • ziviz@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      It kinda do though. VSCode, without a project open has 10 processes running and uses over a half gig of ram. I like VSCode to be clear. I also like discord but it’s just a chat app and apparently needs a half gig itself and 6 processes.

    • Mio@feddit.nu
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It is slow and usually anyway consume more memory than any native application built the same way due to it have to run a web browser. It is also taking up more storage space and updates are bigger and you need to watch out for we browser security holes. I think Electron have some limitations so you can’t do everything you want with it like a native application.

    • Kamek@programming.dev
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      1 year ago

      You’re right, it’s not. Now you need 16Gb because no one can be bothered writing their UI without this garbage anymore.

    • dukk@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Honestly for me electron apps can also get pretty janky.

      Plus Electron takes WAY more than 2mb of RAM.

      • PixxlMan@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Jank is one reason I’m not a fan of electron. It’s very common to gain extra scrollbars, for the contents to shift around weirdly. Things break in ways that native apps never do, due to the sheer complexity of web rendering these days. Customizability is nearly always lacking, especially when it comes to cooperating with the host OS’s preferences…

      • Semmelstulle@feddit.de
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        And thus cripples battery life.

        I only use things like Discord in Safari and Firefox to not have to use the Electron app.

        I really don’t get how everything has to use web UI. SwiftUI is really easy to learn and you can run this on any Apple platform. Flutter is a mess but you can run it on Android. GTK looks just gorgeous and Qt can run on everything but ChromeOS (like 99% of things). Is it really too much to ask for 3 more developers in a company that build native?

        • Semmelstulle@feddit.de
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          1 year ago

          Small addition: I unsubscribed like many others from 1Password because with version 8 even they switched from native to Electron. This is just crazy.

          I mean guys, frickin think about people who can’t afford recent hardware! Do we really want Electron and thus Chromium/Google to force us to buy 1000€+ hardware to be able to do things?