Login
You're viewing the front-end.social public feed.
  • Sep 25, 2026, 8:18 PM

    Phew. Did a couple of days of epic refactoring of my by now quite old code base for my app. I had over 50 ObservableObject and hundreds of ObservedObjects, a few massive God singletons and so much ugly stuff. Cleaned up everything and moved to the new observation framework, got rid of all the singleton accesses (most accessed now via the environment) and cleaned up quite a few crusty old data models. Time extremely well spent.

    #swiftui #iosdev #indiedev #myapp

    💬 2🔄 0⭐ 0

Replies

  • Sep 25, 2026, 8:23 PM

    First time in years that I think my code base has improved a lot. When I first tested the observation stuff some years ago it was... not great. But by now it seems to do what it should do. Got rid of all Combine code too.

    Now, I feel like it would be about time for Apple to feature my app prominently somewhere. I've never got any help from them during these past 10 years that my app has been available, regardless of my much I pay in fees and shares of my hard earned revenue.

    💬 0🔄 0⭐ 0
  • Sep 25, 2026, 8:25 PM

    I think the only way to actually get some feature in the App Store is to be friends with someone at Apple, be from California (and of course be American), be a well known celebrity rockstar developer or be a multinational megacorp. The rest of us? We can get fucked.

    💬 1🔄 0⭐ 0
  • Sep 25, 2026, 8:34 PM

    @chakie Oh, yes, absolutely.

    By and large Apple hates developers. We’re all like battered wives. We take what we’re given and come back for more.

    Basically we’re all a bunch of idiots. I am certainly an idiot because I keep writing code for the platform.

    💬 2🔄 0⭐ 0
  • Sep 25, 2026, 8:38 PM

    @fahrni Yeah, we get treated badly year after year and still we come back for our share of the beatings.

    The software ecosystem today is utterly broken. There is no space for small developers and no possibilities to succeed outside Apple, Google and MS. Windows is perhaps the most open of them all, but God what a dumpster fire it is to develop for that garbage.

    💬 1🔄 0⭐ 0
  • Sep 26, 2026, 1:10 AM

    @chakie I spent the first 20’ish years of my career writing Windows apps, so I owe my career to Windows in some ways. It was a different time. We had the Windows API, AKA Win32, and things were pretty uniform. Today it seems a complete wreck.

    💬 1🔄 0⭐ 0
  • Sep 26, 2026, 6:51 AM

    @fahrni It seems to be the only API that has survived more than three years. If you look at a modern Windows box even the OS itself uses dozens of UI (and web) frameworks for basic management/productivity applications. It’s a mess.

    💬 1🔄 0⭐ 0
  • Sep 26, 2026, 3:09 PM

    @chakie Why they’re not using C,C++,C#, or Rust with WinUI 3 is beyond me.

    If I were in charge of it I’d go Rust + WinUI 3 for all OS apps and utilities. Just build a priority list and go top to bottom. Reuse certain bits and wrap them in new UI. The Calculator app is a great example of that. They did a new UI and used the existing C guts.

    💬 1🔄 0⭐ 0
  • Sep 27, 2026, 4:04 PM

    @fahrni Is Win3 something that’s here to stay for more than three years? I feel like MS hasn’t been able to standardise on any UI framework since Win32. So much fledgling around, new stuff and deprecations. To me actual language seems like a smaller thing, as long as everything uses the same UI framework, same standards and is at least remotely uniform.

    💬 1🔄 0⭐ 0
  • Sep 27, 2026, 4:56 PM

    @chakie Kind of. Microsoft is, as I understand it, moving to WinUI slowly with their apps. I believe most system level apps use it now, but I could be VERY wrong.

    Last I heard Edge was using Win32 still because it had to run on Windows 7 at the time. Who knows now?

    React Native for Windows uses WinUI. Last I saw it was WinUI 2 but it could be WinUI 3 by now.

    It’s what I’d choose. Microsoft’s UI story was so tight for so long, now it’s just a big mess.

    I’d use Swift as my language of choice.

    💬 2🔄 0⭐ 0
  • Sep 27, 2026, 5:01 PM

    @chakie Microsoft *should* integrate Win3 UI into Windows and deprecate all Win32 UI support so folks start moving. Give people time to adopt it.

    Or, they could make Win32 UI code wrap Win3 UI so it just works for old apps.

    I like the deprecation method. Push folks to move forward.

    💬 1🔄 0⭐ 0
  • Sep 30, 2026, 7:44 AM

    @fahrni MS has always been extremely good at keeping old applications running, something that's awful on the Mac or even Linux. Maybe they should keep old runtime libs in place to let old cruft continue to run but remove any development support for them to that way force things slowly forward. Just using the same UI framework will on its own not make Windows a coherent desktop.

    💬 1🔄 0⭐ 0
  • Sep 30, 2026, 2:12 PM

    @chakie Raymond Chen and a team of other Softies did some compatibility code to adapt Win32 APIs to use modern code underneath. I can't find the repository, but one does exist.

    You can mix Win32 and WinUI 3 together. The reason I'd do the UI first is because they could work to re-unify the look and feel of the OS. Going below that may be a moot point if Win32 remains forever.

    Did I link to the Windows Calculator project? They did it right. Old C code that does the work was left alone.

    💬 0🔄 0⭐ 0
  • Sep 30, 2026, 7:42 AM

    @fahrni Curious why you would choose Swift? It's pretty nice, but it's a very complicated language to get things right with. The compiler as it is now is pretty slow and can fail at simple arithmetic expressions.

    💬 1🔄 0⭐ 0
  • Sep 30, 2026, 2:04 PM

    @chakie Well, it's a simple matter, really. I enjoy Swift and have for about 10 years now, which is crazy to think. I like it better than Objective-C. I spent 20 years doing C/C++ code and enjoy it but it now feels like a chore when I go back to it. My feed reader is 100% Swift and I'd like to port it to Windows someday. If I can get the core of it, that would be great!

    I would, however, go back to writing C/C++ on Windows if someone wanted to hire me to work on Windows desktop apps.

    💬 1🔄 0⭐ 0
  • Oct 1, 2026, 10:05 AM

    @fahrni Oh yeah, I did loads of Objective C too, and while it was kind of nice I can't say I miss it at all. Swift is much better and the number of memory bugs I write has dropped dramatically. Logic bugs, not so much. :)

    It does however seem like the UI story with Swift outside the Apple ecosystem isn't exactly great. Server side Swift is great on Linux (Vapor and similar), but I'm not even aware of any UI frameworks. Have you stumbled upon any?

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Oct 1, 2026, 6:46 PM

    @fahrni Is it properly supported? I mean, is it something one could really build an app on? Rust is in the same boat, it doesn’t really have any good normal and modern UI frameworks. Maybe Swift could adopt Jetpack Compose as Apple doesn’t want to open source SwiftUI?

    💬 1🔄 0⭐ 0
  • Oct 1, 2026, 8:30 PM

    @chakie Rust is fully supported on Windows and Mac. You just use the platform UI toolkit.

    Same for Swift on Windows. Just use WinUI 3.

    💬 0🔄 0⭐ 0
  • Sep 25, 2026, 8:40 PM

    @fahrni Personally I would like to see Apple suffer some major downturn so that they would be forced to eat some of that humble pie and come crawling back to the developers that made that what they are. Will never happen, of course, but one can dream. The EU does its best to carve out small spaces for developers, but they can only do so much.

    💬 0🔄 0⭐ 0