• slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    124
    ·
    13 days ago

    Because why go for native performance when you can go for minimum effort on all platforms.

    • grue@lemmy.world
      link
      fedilink
      arrow-up
      63
      arrow-down
      3
      ·
      13 days ago

      When all you have is a hammer JavaScript, everything looks like a nail web page.

      Kids these days don’t bother learning languages that actually compile to native apps.

      • atomicbocks@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        39
        ·
        13 days ago

        All of my degree was in C, C++, C#, Java, etc. and the one class I had that did web applications did Java backends and middleware with PHP frontends. It wasn’t until I got into the industry that I had to learn Angular, Electron, React, Django, etc.

        I don’t think it’s the devs making these decisions.

        • AnExerciseInFalling@programming.dev
          link
          fedilink
          arrow-up
          17
          ·
          13 days ago

          It’s the minimum effort that translates to minimum time that translates to minimum cost for the business. Why hire another developer for a mobile app (or another platform) when you could just have the same web dev write it. Or without hiring another dev, why have the same dev need to build up tooling in another language when you can just reuse from the existing platform

          • atomicbocks@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            7
            ·
            13 days ago

            Exactly, that and the “we are a [insert product name here] shop” mentality. The things I have had to fight for over the years are mind boggling.

        • 87Six@lemmy.zip
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          12 days ago

          It is the devs. Management says they need it fast then the devs say “fuck you here’s your browser tab app”.

          I deam of a dev job that would let me actually write a good app…

          • 87Six@lemmy.zip
            link
            fedilink
            arrow-up
            4
            ·
            12 days ago

            To add insult to injury, the demands are often really unclear. Changing something in an electron app is often pretty straight forward. Not so much in a C# or especially C++ app

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      17
      arrow-down
      10
      ·
      13 days ago

      Because you want a cross platform solution?

      I get that electron can be slow, bloated, etc, but the amount of ire it draws is overboard.

      • Wispy2891@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        13 days ago

        Yes but sometimes, for example core parts of windows 11 like the start menu, don’t need to be cross platform and should be native, not a pwa

        • TrickDacy@lemmy.world
          link
          fedilink
          arrow-up
          9
          ·
          13 days ago

          Lol I mean I would never use windows 11 or defend that use of it. I’m just saying a valid use of electron is to target multiple platforms with minimal development hurdles.

      • Billegh@lemmy.world
        link
        fedilink
        arrow-up
        13
        arrow-down
        3
        ·
        13 days ago

        Having built applications with Microsoft’s mfc, Java’s swing, the omnipresent Qt, and whatever nastiness Mac was using in the early 00’s, electron is worth the silliness. Trust me. Trust me.

        • ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          12 days ago

          the omnipresent Qt

          So weird. I spent more than two years of my career working on a Qt app (not by choice) but I’ve never met another human being who has ever even heard of Qt. Nothing else has ever made me so certain that I’m clinically insane.

          My favorite thing about Qt was the use of C++ for the back end and Javascript for the UI layer. It lets companies take advantage of the, uh, four people in the world who are good with both languages.

          • Billegh@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            8 days ago

            Hah! Yeah, qt has some really neat interfacing. And it is in so many places you wouldn’t expect it to be…

        • MonkeMischief@lemmy.today
          link
          fedilink
          arrow-up
          2
          ·
          12 days ago

          I’ll admit I’m not versed enough as a developer to grasp this so I’ll take your word for it.

          … I’mma just build my cross platform programs in Godot and nobody can stop me. >:)

      • MonkeMischief@lemmy.today
        link
        fedilink
        arrow-up
        1
        ·
        12 days ago

        the amount of ire CPU cycles / frames / watts it draws is overboard. Lol

        (Trying to be funny not aggressive lol)

        For real though, I think it’s just because it epitomizes that “Hardware is fast now so throw sluggishly interpreted high-level code at it and don’t even bother with optimization” mentality.

        Like I remember when people would bash Python over this, but Electron apps make that feel way overblown now.

        (Also Python did nothing wrong :( lol)

  • uuj8za@piefed.social
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    5
    ·
    13 days ago

    I know it’s easy to dunk on Electron… but have any of yall written any desktop apps with native frameworks? I wrote a small GTK4+Vala app once and I discovered desktop frameworks are very different than developing webapps. Customizing the look, feel, interaction of elements, and general mechanics, seems like a toooon of effort. (It kinda seems like you’re not supposed to customize it.) Web development is waaaaaaaay more friendly towards customization. Which as a company, you want your app to look like your company, not some generic OS bundled app.

    And then you have to repeat all that effort for crappleOS and Wangblows?.. And then you gotta hope that it’s even possible to do the thing you want in different OSes. Sheesh.

    I mean, I’d be happy if everything was native apps, but I also understand why people don’t tend to choose that route.

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      28
      ·
      edit-2
      13 days ago

      That’s kind of the point of the frameworks though? Electron apps suck not only because of resource footprint, they don’t look and feel native, if they have any accessibility it’s usually custom and different for every program. Too much customization is bad.

      I remember the times before UI toolkits took over. These programs had soul and were beautiful in their own way, but you had to learn how UI elements worked in each of them separately. The same thing happens with web apps now. Tab and the other usual keyboard shortcuts rarely work, controls are all custom.

      X-Copy-Probably-the-most-popular-Amiga-program-ever-Amiga-news-commodore-news-piracy-on-the-80s-and-90s-2334938446

      dpaint01-1293592928

      a5003-crop-2302041451-01

    • GreyEyedGhost@piefed.ca
      link
      fedilink
      English
      arrow-up
      25
      ·
      13 days ago

      Once upon a time, we differentiated our apps based on their capabilities and gave them a consistent interface so people who knew how to use Windows|Linux|MacOS apps would already be familiar with how they operated. Now we differentiate on looks/user experience, and many of them arent capable at all.

      • paraphrand@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        13 days ago

        People took the wrong lessons from beautiful GUI design. Anyone who felt it was just aesthetics missed the point. It wasn’t just flashy UI on what boils down to a database.

    • chunes@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      13 days ago

      Which as a company, you want your app to look like your company, not some generic OS bundled app

      Consistency of UI used to be treasured.

    • grue@lemmy.world
      link
      fedilink
      arrow-up
      14
      arrow-down
      2
      ·
      13 days ago

      Customizing the look, feel, interaction of elements, and general mechanics, seems like a toooon of effort. (It kinda seems like you’re not supposed to customize it.)

      Holy shit, he figured it out!

      So yeah, it turns out that platform human interface guidelines are a thing, and for good reason.

    • ChickenLadyLovesLife@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      12 days ago

      Customizing the look, feel, interaction of elements, and general mechanics, seems like a toooon of effort. (It kinda seems like you’re not supposed to customize it.)

      Sometimes all of this is there for a reason. I used to really hate standard Windows (and I still do) but it had one big advantage: everything was accessible, in the sense that it all worked very well for blind and vision-impaired people. Usually when people create their own custom look and feel etc. they never accommodate accessibility at all.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      12 days ago

      Honesty Electron is fine as a concept

      The problem lies with the implementation. I see no reason why many of these apps couldn’t just be links to a website.

  • Katherine 🪴@piefed.social
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    12 days ago

    What are you talking about? I love having five apps all download the same 20mb node libraries each running their own Chrome sandbox processes all because they can’t share them amongst themselves.

  • merdaverse@lemmy.zip
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    12 days ago

    Meanwhile, I have to install my third freedesktop 1GB dependency for 4 flatpak apps. What I wouldn’t give for a slim 100mb electron package… All my electron apps as appimages are less than 1gb total.

    But hey, at least native apps are so much faster. I have to get out an atomic clock to really see those microseconds that Zed is saving me compared to VSCode. You can even use the extra battery you gain to do one extra Rust compilation from scratch!