News for hackers. Stuff that matters.
Re:Blazor – Build client web apps with C# by belltaco on Wednesday October 02, 2019 @10:45AM (#21137002)
It isn't just about scratching an itch. It results in fewer bugs, faster development, more features etc. which are useful to end users.
Re:Blazor – Build client web apps with C# by untog on Wednesday October 02, 2019 @10:59AM (#21137167)
My experience of tools/languages that sit on top of the actual native implementations (e.g. React Native or Xamarin on mobile) is that they often lead to much slower development, since when you're Googling around trying to find answers to an issue you're looking in a much smaller community for answers. Eventually the answer usually ends up being "just do it the native way".

Hopefully Blazor will avoid such issues. In any case I'm probably speaking out of turn... it clearly isn't designed for wide-scale deployments - in house/intranet tools are a different beast anyway.

Re:Blazor – Build client web apps with C# by tasogare on Wednesday October 02, 2019 @11:16AM (#21137358)
I use Xamarin Android and while you are right about the ton of googling needed, it was always to search for Android API and almost never because of Xamarin itself. Once found, it’s straightforward to convert from Java code to C# except a few cases (layout parameters for instance). The other issue is coming from a nicely design framework (WPF, Silverlight or WP7/8) the Android APIs feel ugly at times (gesture handlers for example).
Re:Blazor – Build client web apps with C# by JamesSwift on Wednesday October 02, 2019 @11:37AM (#21137593)
Assuming you are doing Xamarin.Native and not Xamarin.Forms, you can just tab-complete your way through it if you know the native side. The apis are almost 1-to-1, only making things more dotnet-y when it makes sense.
Re:Blazor – Build client web apps with C# by mdgrech23 on Wednesday October 02, 2019 @11:10AM (#21137287)
That's such nonsensical marketing spin.
Re:Blazor – Build client web apps with C# by belltaco on Wednesday October 02, 2019 @11:20AM (#21137403)
I don't see how easier development does not result in better outcomes. Imagine how bad things would be if everyone had to code in Assembly.
Re:Blazor – Build client web apps with C# by untog on Wednesday October 02, 2019 @11:29AM (#21137497)
But the "easier development" part is very debatable. What do I see in the browser developer console when debugging a Blazor app? Can I insert breakpoints, trace what is running and how? etc. etc.

I get disliking JavaScript, but there is a strong argument to be made for using the tried and tested technologies that developers have been using for a very long time, rather than shoehorning whole new tech in just because it's in a language you prefer.

Re:Blazor – Build client web apps with C# by mtcoope on Wednesday October 02, 2019 @02:33PM (#21139413)
The answer to your break point question is yes. You can debug your C# code on the front end with breakpoints. The biggest benefit is applications with a lot of domain business logic tend to have that logic copied to the front end and copied to the backend. If a object can no longer be updated if it has an expired date then you would have logic on your server to prevent that. You would also have logic on your front end to display to the user that this can not happen before even going to the server. The server would act as a backup and ensure it never happens.

With Blazor, this logic only exists in one place which helps follow DRY.Logic that is duplicated tends to get missed in testing often. This provides business value.