News for hackers. Stuff that matters.
Re:Ask HN: Why is building Windows apps so complicated? by nerdywordy on Sunday December 12, 2021 @08:54AM (#29529612)
We have a Windows POS app for mines, quarries, sand and gravel, etc.

When we broke ground on this version Microsoft was hardcore pushing UWP. We were building for the future so we built our app within the constraints of UWP with the expectation that it would grow with Microsoft’s vision…

Fool me once, as they say. UWP is dead.

We are currently redeveloping the entire thing with a series of Win32 base classes and intend to layer on a WPF front end for now. WinUI is early and promising. But so was UWP.

Long term we’re exploring outside the box UI options like running a local server and popping a browser. C# and .NET are very powerful. But the fractured landscape for desktop development gives little hope for the future.

If your goal is to build a rich UI, then you may have to suffer through learning whichever flavor of XAML you decide to go for. But if your goal is to interact with local hardware functionality I’d probably steer clear and use WinForms, a browser interface, or a console interface.

Re:Ask HN: Why is building Windows apps so complicated? by nyuszika7h on Sunday December 12, 2021 @09:07AM (#29529702)
> Long term we’re exploring outside the box UI options like running a local server and popping a browser.

So... basically Electron?

Re:Ask HN: Why is building Windows apps so complicated? by nerdywordy on Sunday December 12, 2021 @09:16AM (#29529783)
Sort of. But not an embedded browser. And .NET instead of JS.

There are some promising developments with Blazor and .NET MAUI. But it all seems too speculative to build on at this point.

Re:Ask HN: Why is building Windows apps so complicated? by nyuszika7h on Monday December 13, 2021 @10:54AM (#29540685)
> .NET instead of JS

If you don't use JS, wouldn't that mean reloading the whole page for every action? Or do you still use some minimal JS to improve the experience?

Re:Ask HN: Why is building Windows apps so complicated? by sto_hristo on Sunday December 12, 2021 @10:17AM (#29530244)
Some of MS own apps are written on Electron. Think about that when considering their awesome native UI frameworks
Re:Ask HN: Why is building Windows apps so complicated? by dt3ft on Sunday December 12, 2021 @04:33PM (#29533848)
Which ones?
Re:Ask HN: Why is building Windows apps so complicated? by d_tr on Sunday December 12, 2021 @06:12PM (#29534675)
VS Code and Skype are the two I know about.
Re:Ask HN: Why is building Windows apps so complicated? by Riverheart on Sunday December 12, 2021 @07:51PM (#29535358)
Teams and Azure Data Studio.
Re:Ask HN: Why is building Windows apps so complicated? by sto_hristo on Tuesday December 14, 2021 @05:44PM (#29559161)
Also their entire office suite is migrating to an webapp. I use it at work and it's quite impressive even though it has issues and is inferior to native. But hey, it's only the beginning and can be used on every platform without the need to install. Web tech is awesome.
Re:Ask HN: Why is building Windows apps so complicated? by jmnicolas on Sunday December 12, 2021 @09:34AM (#29529934)
I'm mainly on WPF, so I might say something wrong, but I think adjusting your UWP app for WinUI would be a breeze compared to redeveloping everything with Win32.
Re:Ask HN: Why is building Windows apps so complicated? by flohofwoe on Sunday December 12, 2021 @11:38AM (#29531026)
Only up to WinUI 2 apparently, WinUI 3 doesn't support UWP anymore:

https://microsoft.github.io/microsoft-ui-xaml/about.html

Re:Ask HN: Why is building Windows apps so complicated? by petilon on Sunday December 12, 2021 @11:22AM (#29530887)
> UWP is dead.

Why do you think UWP is dead? Please post links.

Re:Ask HN: Why is building Windows apps so complicated? by flohofwoe on Sunday December 12, 2021 @11:28AM (#29530936)
If UWP would be alive, Microsoft wouldn't advice on how to migrate away from it:

https://visualstudiomagazine.com/articles/2021/10/19/uwp-mig...

Also apparently WinUI3 won't get UWP support at all:

https://www.theregister.com/2021/07/02/uwp_microsoft_winui3/

Nobody at Microsoft is going to come out and admit that UWP is dead, but it's easy to read between the lines.