From the WinUI community calls, I would assert all new employees have zero Windows experience and management doesn't care to give them proper skills.
Too many questions that any Windows developer would know why the question was being asked, where they either couldn't answer or had puzzled looks on why the questions were being asked in first place.
That is also a reason why now there are Webview2 instances all over the place on Windows 11.
> That is also a reason why now there are Webview2 instances all over the place on Windows 11.
I can't help but feel like there is a happy median between Native UI and WebUI that we haven't quite figured out yet.
In the gaming space there is this library called RMLUI that I have used in anger quite a bit. It gives you something that is shaped a lot like HTML and CSS, but with a built-in data binding layer, and a scripting layer that supports Lua by default but gives you the flexability to roll your own language and API. It also is a much lighter dependency than Chromium and V8.
It's missing a couple of features from vanilla HTML and CSS, but also has a bunch of unique featurea that make it far more useful in other ways. For example, it doesn't have CSS background images, but image decorators are so much more useful. And don't get me started on sprite sheets and theme media queries.
I can't help but think that something similarly shaped and designed more for general desktop use would blow the doors off of electron. My workstation has 32 gigs of RAM and yet it's often a half to three quarters full mostly because of Firefox, Discord, and Visual Studio Code instead of more lightweight apps like Visual Studio 2022.....which sounds crazy when you say it out loud.
FWIW, the start menu is a React Native app. I think that’s a pretty good compromise (I think the performance criticism is solvable, they just don’t care). Too bad RN isn’t that well supported on other platforms.
The coolest part was that it was baked into the .NET Framework installed on all newer Windows versions, so I could make a useful GUI app in like 30 KB.
I heard that the WPF code under the hood was jank, which might be part of why MS never went forward with it. From a developer perspective it was quite nice. I started in winform and I miss UI frameworks being obvious and straight forward. I have a rant about how to darken an image using HTML + css that despairs in how unintuitable and bodge-job the solution ends up being. WPF and WinForm were not like that, you draw what someone sees, inline, as they see it and that's quite nice.
I dislike some superficial things about it (and some less superficial things about WPF), but a lot of the ideas around how properties are set are pretty cool to me!
Also how (IIRC) it’s compiled to pretty standard .NET view code (“partial”) you could extend in other parts of the app.
I’m still happy to have left it behind for the aforementioned, ecosystem & tooling reasons.
Well, to be fair, Microsoft decided to kill the Windows API that everybody knew, and spent about a decade and half creating a replacement every few years that couldn't actually replace the original thing.
It's hard to survive that. Honestly, I don't even know what the GP is talking about when they say the devs don't know "Windows".
Yup. I remember 4 or 5 different frameworks that were supposed to be the future of native UI on windows, but each one after WinForms was harder to use, slower, and less capable than what came before.
nah WPF made way more sense than WinForm in its abstract design, as it supported flow/stack layout ideas instead of anchors like WinForm did. WinForm was much quicker to get started but had a fundamental flaw in that it couldn't really do transparency.
Yes, mshtml was insanely powerful. As an undergrad I was surprised how easy it was to build capable UIs with powerful visual effects[1] using mshtml and JS. Even for C++ Windows apps.
It took a long time for this to become a cross-platform reality, but it did inspire me to ignore distractions like XAML and focus on the web.
This was already a thing 20 years ago. Students weren’t have any experience with windows, it was something companies used, and today even that has gone away.
Windows is still enforced and mandated on most corporate Fortune 100/500 companies computers.
Their "cloud lift" consists of putting vms into the cloud to run at 10x the cost. (Nothing else changed from The Old Ways)
And that's still where we are today for most enterprises.
That ecosystem has had them for 30+ years and shows no signs of going away anytime soon. If it doesn't have Active Directory and Office 365 or whatever they decided to call it today, they aren't interested.
I think web views do make sense in situations where you’re presenting lots of remote content that may frequently change. After all that’s what the web is, and store content, and to an extent emails many of which are HTML anyway, are reasonable candidates.
yeah in that regard it seems that apple tastefully does so on apps where there's mostly remote roundtrips already like the app store or music app, so I agree that there makes sense to reuse the web infra
but swift ui apps are great and fast cause they're not electron monsters!
thankfully you can use safari webkit inside them, but that doesnt work cross-platform
SwiftUI apps are not great and they're not fast. A lot of Apple's new apps are considered rather poor. Theo has a video where some devs switched to a webview because the text rendering performed better!
Mostly agreed... I'd love to see MS just ditch MAUI and/or otherwise buy out UNO or Avalonia and create a cross-platform XAML based UI library that works everywhere (including Linux). As far as Linux goes, they could just go with Gnome/GTK for underlying support... not sure if QT's license would be compatible at this point, MS mostly uses MIT for modern FLOSS.
Bonus points if it worked with C, C++ and Rust for those that want it in addition to .Net (C#).
I honestly think there's still too many old guard managers/exec at Microsoft to let that legitimately happen though. They're too busy trying to wrangle every last penny of value out of every Windows user along the way.
Too many questions that any Windows developer would know why the question was being asked, where they either couldn't answer or had puzzled looks on why the questions were being asked in first place.
That is also a reason why now there are Webview2 instances all over the place on Windows 11.