I think it is more focused on the ASP.NET Core part. To run Web applications written in C# easily in docker containers on Linux and windows locally and in the cloud is what Microsoft wanted to achieve.
I agree though that the GUI part would be really nice but I also think it is really hard to solve.
"Java on Linux appears to be going nowhere; notable because everyone is using it for backend applications"
C# is competing with Java, basically. C# is not competing with cross platform front end languages, tools and framework because at this point all the big guys have abandoned the desktop, basically. The Linux desktop wasn't abandoned because there wasn't any to take into account :D
On a more serious note, I'm as sad as you are about this, because I had wanted to build a .NET cross platform app, Win/Lin/Android/iOS/MacOS. But from their point of view it makes sense, you invest where you get the most bang for the buck.
Java comes with a working cross-platform GUI library though. Maybe not a particularly good one, but enough to display some basic forms and buttons for configuring your backend app or what have you. For internal tools and secondary functionality on what's primarily a backend app it's often good enough. As long as C# can't do that, it's a substantial advantage for Java, even if you never see a Java GUI in a consumer-facing application.
Being able to reuse all your functions and datatypes in different components of the same system is really useful. For a "big" dedicated UI, the advantages of a language that's better at UI might outweigh the costs of reimplementing everything, but certainly for a little utility that's part of a larger system you're much better off using the same language.
Most immediately you want to run the same validation code on the GUI and the backend - a lot of bugs are caused by inconsistent validation in different places.
But you also want to use the same datatypes - why have two representations for the same thing? Of course it's important that what you pass between client and server be inert data (i.e. records), but there are far better ways to achieve that than a custom text-based protocol, which is adding a lot of overhead and opportunities for error to no benefit.
Validation in the ui and the logic layer are different.
No, the same type has the same set of valid states, by definition.
Do not be a lazy copy-paster, do the right thing.
This is utterly backwards. You avoid copy-pasting by avoiding repeating yourself, which means reusing the same logic - not a copy but the actual same code - when you want to do the same thing.
And, text-based communication have tons of benefits: scriptable easy to replace gui frontends testable easy to insert something (e.g., logging, network forwarding, etc.) in between
All that remains true for more structured communication mechanisms, which avoid the security issues and unreliability inherent in text-based approaches. Custom parsers are still one of the biggest sources of security vulnerabilities, and interleaving control and data is still another one.
.NET Core was primarily targeted at server software. I don't think they have any intention of providing any cross-platform support for their own GUI libraries like Windows Forms and WPF. However, I've heard good things about Avalonia
One day later...It's almost like Msoft read my complaint and finally decided to open source WinForms. I'm surprised & happy to read this.... I'm pretty invested in C# and have been frustrated in my desire to take my applications to Linux.
Now can I get my 6 points back?!? ;-Q
(Seriously, what is it with some people that they can't rationally, factually respond to a constructive criticism but can only down vote it?)
Anyway, again, I'm very pleased Msoft has made this change. It's been a long, long time coming...and I think will, in time, vastly extend the reach of C#.
7
u/tuoret Dec 04 '18
This is pretty off topic but I had no idea it's been 4 years since they went that way. Glad to realise how much progress has been made at least