Comment by mococa

21 days ago

I don't understand this idiocracy - it's super easy (I did myself alone many times) to have a single codebase in Qt for all OSes, even BSDs.

I think people become super lazy... "Ah, it's will ocupie a few hundreds of RAM, no problem, let's ship it."

They are companies with billions or even trillions shipping shit with Electron.

> it's super easy (I did myself alone many times) to have a single codebase in Qt

I’ve worked in Qt apps on and off through my career.

I do not want Qt apps any more than I want Electron apps.

The solution is native apps using native platform tools, or one of the mature cross-platform toolkits.

  • Conceptually, I agree with you. Unfortunately, the waters have been muddied with respect to native platform tools. Honest questions:

    Windows - Win32 (C API) or MFC (C++) or WinForms (C#) or WPF or ...? macOS - Cocoa/AppKit in ObjC or Swift/AppKit? Linux - Qt (C++) or Gtk 2 or Gtk 3 or Gtk 4?

  • Which cross-platform toolkits are more mature than Qt?

    • Mature was probably not the best word. The modern desktop UI toolkits produce a better UX to me.

      Qt feels too locked in to old decisions that were the right choice at the time, but desktops and mobile have changed so much that it always feels like a clash of old and new.

      9 replies →

This is definitely true. It seems to be the modern approach that the less effort in development, the better!

I too had code that worked across 3 platforms with wxwidgets and a 3D game toolkit incorporated in opengl for visualisation, with most 2d controls being drawn using wxwidgets OnPaint handlers for custom controls rendered natively on that platform. I wrote this single-handedly, with another colleague handling the network code and firmware on the remote hardware devices.

Everything else is sheer laziness as far as I am concerned. There's even less excuse today with the rise of LLMs to do the majority of UI coding for you.

  • Not a front end developer but I’ve always assumed it was ROI - nobody felt a smaller memory footprint would drive enough incremental revenue to offset the costs, compared to the other things they could be doing.

    What seems to have changed is the size of the costs - LLMs are really good at this - such that you can now say “well, maybe the returns aren’t that big, in fact maybe they’re zero, but this is easy enough, so why not”

    De minimus improvement has always suffered this problem - we’re all fairly sure it’s worth something. Maybe there’s even real perceptible value when you fix the whole basket. But making the case is hard.

Qt licensing is terrible for commercial products. You end up with an account manager that changes every year, compliance within your company is a chore. Qt is fine for things that are and always will be open source.

I would understand if devs preferred to not bundle lots of libraries, so their mobile apps are faster and slimmer.

And yet most Android apps today take 50-100MB bundle size for very simple GUIs and take up lots of RAM and lots of time to load or react to anything.

So maybe we'd be better off with everyone bundling Qt after all.