• MoogleMaestro@lemmy.zip
    link
    fedilink
    English
    arrow-up
    288
    ·
    1 month ago

    Electron is the only cross platform gui toolkit…

    If you ignore QT, GTK and everything else.

    I’m so glad that Microsoft makes an awesome cross platfor— wait, no, but they contribute code to— hmmm … Hey, what does Microsoft do to make apps more portable again?

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      138
      arrow-down
      1
      ·
      edit-2
      1 month ago

      The real reasons often are:

      • They want be able to hire much cheaper webdevs instead of software devs.
      • Electron has a lot of built-in data collecting metrics, which they urgently need for creating a real-life KITT.
      • Easy live embedding of content. Sure you can add your own solution, in fact I created ETML as a solution for this problem for my engine, all without any support for nasty scripting languages or convoluted stylesheets (style-inheritance in CSS turned me off from webdev even more than JS did). At best, it can be used for things like embedding videos on Discord, because no one else thought some universal approach, let alone one that disallows proprietary players. At worst, it’s being used for ads.

      Also a lot of Windows-only apps are Electron apps, only because the manufacturer wants to go “fuck you”, even putting protections into the code just in case you wanted to run it on Linux.

      EDIT: Forgot the “live embeds” reason.

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      63
      ·
      1 month ago

      one of the funniest (and sadly accurate) things i’ve heard said about linux backwards-compatibility is that its most stable API is Win32. you can run really old windows software on wine because they support stuff even windows doesn’t anymore.

      of course this is because the expectation is that you can just recompile old software to work on new systems, which is not really a thing on window.s

        • Archer@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          It’s very amusing to imagine devs carefully watching for an EOL/EOS date and starting to build software only after

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      31
      ·
      1 month ago

      It’s so portable! With maximal efforts we support both windows 7, windows 8.1 (but not 8.0), windiws 10 and soon Windows 11 !!!

      /s

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 month ago

      .net
      .net cli apps are cross platform and can be portable :p
      Gui in .net isnt fully cross platform ( maui is everything except linux ) but frameworks like avalonia ( .net ) and imgui fix all that :')

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Winforms of all things haha. Eeuw xD
          But thats flipping awesome and i love it! I know xamarin was wpf being cross platform with mono, but thats a dead horse thanks to microsoft haha

          • mittorn@masturbated.one
            link
            fedilink
            arrow-up
            2
            ·
            1 month ago

            @DacoTaco Yes, it’s Microsoft decided to kill classic win32 widgets and any XAML support in Mono, forcing new WinRT platform and not providing any GUI support in netcore. It’s sad that nobody made some crossplatform WPF implementation for modern dotnet, Maui is not incompatible with existing source code, IIRC

            • hdsrob@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 month ago

              It’s sad that nobody made some crossplatform WPF implementation for modern dotnet

              That’s basically Avalonia UI.

              I believe Uno Platform is similar, but less of a WPF variant, and closer to Xamarin or MAUI in the style of Xaml that they use.

              • mittorn@masturbated.one
                link
                fedilink
                arrow-up
                1
                ·
                1 month ago

                @hdsrob
                >That’s basically Avalonia UI.
                no, avalonia cannot help you run existing applications. Also. Avalonia is a crap, taking minutes to parse xml crap on poor hardware
                Yes, there are many implementaion of WPF-like UI, but no implementation of existing Windows UI.
                mono’s winforms allows you run existing winforms apps without single line change or even without recompiling (just replace related System.Windows.* assembies)

            • DacoTaco@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 month ago

              Avalon is actually xaml and cross platform. Personally id rather have a razor format of gui code, but xaml is a good second. Its basically what maui was suppose to be

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Nope. The ui framework doesnt support linux at all. None of its cross platform claases and enums have linux. Its stupid because .net and aspcore just work on linux…

    • teolan@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      19
      ·
      1 month ago

      GTK is not accessible anywhere other than Linux and is therefore not a serious option outside of Linux.

        • dogs0n@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          Punchable is a bit far, probably wanna tone it down a bit, big guy.

          Just kidding, but it’s only funny and also is it this guys fault?

          I don’t even know if it’s true, but in any case, the guy who tasked a react (native) developer on the start menu is responsible (not the developer).

          Example: If I managed a product and hired a python developer and told them to do x, they would likely use python, right? (In this scenario, It is I the manager wjo failed everyone, not the developer).

          Also the other commenter is correct. It’s like the common saying “use the right tool for the job”. The saying doesn’t make sense, because the right tool is always the one you know how to use…

          • Victor@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            Punchable is a bit far

            Didn’t mean that literally 😁 I just thought it was funny to describe a written response as punchable. But the response was annoying.

            It might not be the developer’s fault, but him practically defending the choice by completely dodging the performance aspect is irresponsible to me. It’s like he’s ashamed to discuss it. Or doesn’t have the knowledge to?

            A good developer should speak up and say that they might not have the skill set required for the task. That’s my opinion. Either that or learn the ropes but flag for extra time needed.

            the right tool is always the one you know how to use…

            100% disagree. There are more suitable tools for certain jobs.

            Hello I am looking for a job as a surgeon. Okay what tools do you know? Jackhammer. That’s the only one you know? Yup. Mmkay then that’s the right tool for surgery in your case, can you start Monday?

            🫠

            Imagine someone using Java to write a program that just runs several other commands in sequence. That should really be a script, and the developer should learn a sufficiently suitable shell scripting language.

            But yeah, ultimately I agree, it’s not his “fault”. Especially if he flagged this to be something a bit out of the ordinary, and his manager(?) insisted. Then it’s 100% not the guy’s fault, for sure ong.

        • AeonFelis@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          1 month ago

          Probably, but only because at this point I’m fairly certain reality itself must be a parody of something.

        • InFerNo@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          1 month ago

          In the era of tech evangelists? People pick 1 technology branch and make it their entire personality

          • masinko@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            1 month ago

            That’s still a stupid reason. I’m a .NET & MSSQL developer primarily, I’m not gonna shove C# in every project I write if it doesn’t makes sense.

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 month ago

      Well, at least it’s React Native, seemingly. Also from what I’ve heard it’s only one section like rendering results from the web or some shit like that.

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      1 month ago

      Tbh, it’s not entirely wrong, which is the reason why it works so well as rage bait.

      It’s really not about Linux, but it is about supporting anything and everything out there with a single app. Use Electron and you can have the same app running on Windows, Mac, Linux, Android, iOS, your car, your game console, your smart fridge and in a website.

      Of course the result sucks, but if you can cut development effort into a fraction while also supporting systems that you would have never supported otherwise, that’s not a bad deal for businesses.

  • yogurtwrong@lemmy.world
    link
    fedilink
    arrow-up
    92
    ·
    1 month ago

    Show me how you never programmed anything without telling me

    Software should be maintained, not built and forgotten about. Windows encourages the latter, which is just straight up bad practice

    • finitebanjo@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Some things should be replaced or updated to improve performance. However, I don’t think Windows has ever done anything of the sort, I certainly can’t think of any examples since Vista.

    • 0x0@lemmy.zip
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 month ago

      No, Windows encourages backwards compatibility, which tends to cause code to e forgotten about.

  • [object Object]@lemmy.world
    link
    fedilink
    arrow-up
    85
    arrow-down
    1
    ·
    1 month ago

    (Apple as a platform is so closed that it couldn’t be influenced by this utter crap and the developers can use the OS native API’s.)

    A hidden gem of stupidity and nonsense in the already pretty dumb tirade.

    • presoak@lazysoci.al
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 month ago

      But once you read his words he’s got a foot in the door. Then he’s harder to ignore.

      So maybe it’s harder to ignore fools on social media. Which would make social media a kind of fool-enhancer.

      I guess this is where blocking comes in. But that seems drastic.

      • pulsewidth@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Blocking is severe, but boy is my feed clean of morons (I think I’ve only blocked like 30 people on Lemmy).

        You gotta try it. Very satisfying to click ‘read all’ on your inbox now and then to clear out notifications for new (hidden) messages from trolls you’ve blocked.

  • dejected_warp_core@lemmy.world
    link
    fedilink
    arrow-up
    60
    ·
    edit-2
    1 month ago

    This is such a hilariously bad take. I like how “I can’t use Win32 on Linux” morphed into “re-write the whole app in Javascript just so I can use Electron.”

    Meanwhile, Wine and QT are like: “am I a joke to you?”

    I’ll add that (IMO) a lot of applications are becoming increasingly malicious, although less-so in the desktop space. I’m happy that devs like this are forced to quasi-sandbox their crap into a browser. Actually, if anyone knows how to crack into an Electron app in order to restore local plugins, user-scripts, and sandbox security controls, let me know. Or just liberate the guts into a local web app instead so I can use a real browser? This trend could be very useful for local security if those features become available.

  • jollyrogue@lemmy.ml
    link
    fedilink
    arrow-up
    60
    arrow-down
    3
    ·
    1 month ago
    1. The user land API/ABI is stable to a fault in Linux. The kernel API/ABI is unstable.

    2. Companies are cheap. They hired web devs then tasked them with building a desktop application rather then hiring people to write native apps. They had a hammer and used it to fix every problem they had.

    3. macOS is just as affected by electron apps as a Linux is.

    4. Electron is horrible, but it does bring apps to many an OS once Chromium is ported.

    5. Open protocols or open APIs from the company would fix the non-native app problem.

    • ammonium@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      1 month ago

      The user land API/ABI is stable to a fault in Linux. The kernel API/ABI is unstable

      It’s the other way around. The kernel API stable to a fault, the kernel ABI isn’t. If your application only relies on the kernel API you won’t have many compatibility issues. If you rely on userland stuff such as C++ stdlib, GTK, QT, Python, … Good luck.

      • jollyrogue@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        I wasn’t clear and that seems to have cause some confusion. I was talking about the Linux kernel itself, and only the Linux kernel.

        There are two sides to the Linux kernel: internal exposed to drivers and such, external syscalls exposed to the public. That’s what I was talking about.

        All bets are off with 3rd party software. That’s just a general problem in software development. It’s not specific to Linux, and it’s why vendoring libraries is recommended.

        This is why all the 3rd party software is frozen at a point-in-time with fixes backported in distros like Debian or RHEL. It fixes the problems of devs being mercurial. The distro is the SDK. It creates a stable base, and it works rather well.

        Unfortunately, most software relies on libc and a compiler. Both of which can be problems, and both of which are external to the Linux kernel. There’s not much which relies on only kernel syscalls.

      • Railcar8095@lemmy.world
        link
        fedilink
        arrow-up
        15
        ·
        edit-2
        1 month ago

        Well, RAM is dirt cheap anyways. /S

        Edit: I bought this one for 180 in another site just a few months ago. It now costs as much what I paid for RAM, CPU + MOBO. Dodged a bullet not waiting for the black Friday “deals”

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 month ago

      Further, if you get code into the kernel, anyone who breaks it needs to fix it. So it seems to me it’s only a problem if you’re trying to do something like maintain a proprietary driver without putting it into the kernel? Or something to that effect?

      • jollyrogue@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        Basically. Out-of-tree drivers are annoying without an LTS kernel.

        There are also out-of-tree drivers which don’t get mainlined for one reason or another even though they are FOSS. OpenZFS has this problem, and now so does bcachefs.

  • FE80@lemmy.world
    link
    fedilink
    English
    arrow-up
    53
    arrow-down
    1
    ·
    1 month ago

    What kind of shit for brains asshole is still defending Windows in 2025?

    • krooklochurm@lemmy.ca
      link
      fedilink
      arrow-up
      22
      arrow-down
      3
      ·
      1 month ago

      And what kind of slavering mouth-breathing teoglodyte doesn’t understand that Hannah Montana Linux negates all of these issues, will suck your dixk without hesitation, and lets you read news from four days from now.