Live data from Hacker News

.NET MAUI: .NET Multi-Platform App UI

github.com

131–140 of 260 posts

Re: .NET MAUI: .NET Multi-Platform App UI

#131
post #128

Earlier quoted context omitted.

> Python was built as an education/learning language first. It's popular because it's often a first language learned That's my point. Colleges have been teaching Visual Basic as a starter programming language for decades. Only in the last handful of years have colleges started switching to teaching Python first... after many years of neglect by Microsoft. My local college still has an entire specialization of their C…

> Colleges have been teaching Visual Basic as a starter programming language for decades. Where? In the US, university-level intro to programming would have been in Lisp, Forth, C, C++, and/or Java before possibly trying something else in the mid 2000s, but I struggle to imagine an American university strong in CS touching anything in the VB namespace (5, 6, .NET) whatsoever.

You struggle to imagine because you went elitist. "University level strong in CS", I said college. A lot of colleges teach Visual Basic. No, Ivy League schools might not, but a lot of colleges do. Heck, my community college taught a class for kids on it in the late 90s (my intro to programming) and still teaches college students a VB track today.

Re: .NET MAUI: .NET Multi-Platform App UI

#132
post #74

Earlier quoted context omitted.

I think the Blazor server version is okay for Internet insofar as initial dl is concerned, but the problem with Blazor server is scaling it since the signalr connection requires client affinity with the server. Or I believe that's still the case. I'm not expert, but I think there are some issues with horizontal scaling with server-side blazor. Maybe that's been fixed or there are good solutions for it.

Client affinity with server is due to Signalr. Since server-side blazor uses signalr to pass the changes between client & server. Might be a easy fix with sticky sessions. But haven't come across anyone that has tried it.

Yeah, I always assumed that you could put a load balancer in between to enforce the affinity across a farm, but I think the point is that dollar-for-dollar, the need to do that means it won’t scale well for a massively public app as well as other technologies (i.e. it will be more expensive to host).

Re: .NET MAUI: .NET Multi-Platform App UI

#133
post #37

The amount of energy Microsoft is pouring into these front-end efforts is pretty incredible. A more recent development that has me very excited is Blazor Desktop: https://medium.com/young-coder/blazor-desktop-the-electron-f... > This leads to the second difference — in a Blazor Desktop app hosted in WebWindow, there’s no built-in web server. Instead, it’s pure .NET all the way down. And while we haven’t seen exactly…

Have you tried Flutter Web instead?

https://devblogs.microsoft.com/surface-duo/flutter-dual-scre...

Re: .NET MAUI: .NET Multi-Platform App UI

#134
post #73

Earlier quoted context omitted.

Agreed, I really think Blazor is the way forward for .NET UI. It's bittersweet, but: the Windows and .NET teams have failed to deliver a compelling alternative to web UI, and I'm impressed with how well Blazor integrates web UI with .NET. I think the killer feature is that it will work on any platform with a decent webview control (Windows will finally be joining that club soon when WebView2 ships in-box), including…

Xaml hot reload only works on about half of our views at work, and even then it tends to break itself. I've tried net framework, net core, and net 5. The newer targets break less often but we still can't ship net 5 thanks to Windows 7 extended support contracts from Microsoft. It doesn't even compare to blazors implementation. And c# hot reload breaks frequently around asyncs and lambdas.

I may be misreading your comment, but in case you're not aware .NET 5 supports Windows 7 as a deployment platform: https://github.com/dotnet/core/blob/main/release-notes/5.0/5...

And it does not specifically require any paid extended support contract from Microsoft to actually install and run.

Re: .NET MAUI: .NET Multi-Platform App UI

#135

Earlier quoted context omitted.

You can try to use Comet [1] today if you don't want to wait for MAUI [1] - https://github.com/dotnet/Comet

C# with MAUI went full OOP Swift with SwiftUI embraced the data oriented way with structs only They both target resource constrained devices, wich will perform better? I can already tell, apps with MAUI will be laggy on most android phones, probably less on iPhones since the hardware/OS is just better, just like with Xamarin today

What? Xamarin apps currently compile to native code, so idk where you are getting this idea from.

Re: .NET MAUI: .NET Multi-Platform App UI

#136
post #68

Earlier quoted context omitted.

Is it realistic to expect MS to support a language they purposely built a replacement for 18 years ago? What's stopped you "upgrading" to C# in 18 years?

I prefer VB. I have a degree in writing C#, I just find VB vastly preferable to work in. I hesitate to believe Python would exist in the way it does today if Microsoft hadn't treated VB so badly. It's only now being replaced as the default to teach in schools because of its simplicity and readability.

> I have a degree in writing C#

Where does one get a degree in writing C#?

Re: .NET MAUI: .NET Multi-Platform App UI

#137
post #37

The amount of energy Microsoft is pouring into these front-end efforts is pretty incredible. A more recent development that has me very excited is Blazor Desktop: https://medium.com/young-coder/blazor-desktop-the-electron-f... > This leads to the second difference — in a Blazor Desktop app hosted in WebWindow, there’s no built-in web server. Instead, it’s pure .NET all the way down. And while we haven’t seen exactly…

> fuck around with JSON APIs alone is worth the price of admission

This is true for Blazor Server as well. I just love the fact that you can generate HTML on the server and have the productivity boost of having to work with a React like component system.

Re: .NET MAUI: .NET Multi-Platform App UI

#138

Earlier quoted context omitted.

I prefer VB. I have a degree in writing C#, I just find VB vastly preferable to work in. I hesitate to believe Python would exist in the way it does today if Microsoft hadn't treated VB so badly. It's only now being replaced as the default to teach in schools because of its simplicity and readability.

> I have a degree in writing C# Where does one get a degree in writing C#?

That's kinda a nitpick. I have a game programming degree, where the majority of programming was C#. But local computer science programs also tend to have language-specific tracks available, like C# as well.

Re: .NET MAUI: .NET Multi-Platform App UI

#139

No offense, but call me when there's any Linux desktop target option.

Avalonia to the rescue: https://github.com/AvaloniaUI/Avalonia

Been using this in production for years now (although we target just Windows and MacOS so I don't have experience with it on Linux). It is buggier than WPF and has occasional annoying issues when you update to a newer version, but it's still too good for us not to use compared to .NET-based alternatives. We've been using it more and more over time.

Just keep in mind, this is all custom rendering, it is not a native control wrapper. If you want an app that will look like a normal MacOS app on the Mac, this may not be the best choice, and something that wraps native controls (like Xamarin) would likely work better. If you want a UI that looks the same everywhere, it's great.

One advantage is that it works in a very "sane" way - you're just writing a net core app, that's all there is to it, unlike with Xamarin.

A disadvantage/advantage (based on your perspective) is that this is just a UI framework, so you don't get .NET wrappers for all the other, non-UI platform stuff that Xamarin provides. If you need some platform functionality, you have to access that in some other way.

Re: .NET MAUI: .NET Multi-Platform App UI

#140
post #61

XAML? Ugh. For those of us who worked on wpf for years using xaml and then used react native this feel like someone still in denial at Microsoft. I guess I should be happy my xaml experience is still relevant...

FWIW, this will be supporting Blazor in addition to XAML. So you can have a MAUI app that just handles native hosting etc. and shows your actual UI in a web view. It's admittedly confusing and not all that well explained.

> It's admittedly confusing and not all that well explained.

Can anyone help a brother out with a good repo or two that codesplains MAUI decently?

Post reply on HN