by brtkdotse · 2y ago · 0 comments
Microsoft really, _really_ missed out on a huge opportunity to rebrand .NET into something else when they did the Framework -> Core transition. Despite .NET being cross platform for over ten years and winning benchmarks left and right people still see it a the “slow enterprisey framework that only runs on Windows”.
I've met a handful of folks who used it in the .NET Framework days and hadn't kept up with the changes in Core (multi-platform, object-functional hybrid, minimal syntax for console and APIs, etc.).
https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/to...
(If there’s other syntax changes, I don’t know them, AFAIK it’s the same C# you write)
The new syntaxes that come to my mind are:
* File-scoped namespaces
* "global using"
* "using static"
It's a beginner friendly and "demo mode" set of features to reduce boilerplate for small programs, such that the minimal "hello world" program is literally 1 line of code.
And a working minimal ASP web app with a http endpoint is not much longer.
C# and .NET was from day 1 designed for "programming in the large" so that large codebases can be sensibly organised.
This however causes some overhead, such that a person coming from Python might have looked at the standard C# "hello world" example with using statements, namespace, class and method wrapping the 1-line payload, and conclude that the language is impossibly clunky and cumbersome. My opinion is the opposite; managing e.g. 50K lines of code without those ways of organising code, is going to be impossibly clunky and cumbersome.
However, it is also true that demo mode is great for 1-file demos that get right to the point.
Most of the verbosity comes from classes and namespaces. Go and Rust have shown it's possible to design a language for "programming in the large" without classes for everything and with less verbose namespaces.
But to be fair, I'm just getting started with C# so my comment above is likely wrong and biased. Happy to be proven wrong :)
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/m...
Do these people I've never heard of outnumber the people who did upgrade but wouldn't have if it had been branded as a separate product?
Mind you, I’m not a coder, and more just a Linux homelab hobbyist.
How heavy of a dependency is it?
And is there a dependency hell situation, if different programs require different versions of .NET Core?
Size very much depends on what you actually use in the app, but on the order of tens of megabytes.
So you can ship .NET code with a .NET runtime all in your installer.
Afaik, Framework was only distributable from Microsoft.
Pretty much yes. (there are also other ways to bundle it)
It's not even called ".NET Core" any more, it's just ".NET", which for version >= 5.0 effectively is the successor to cross-platform .NET Core.
.NET 9.0 will be out shortly - The annual release is expected November 2024, likely this week.
> dot
> dot console apps
> dot web API
> dot desktop apps
Simple logo design.CLI commands would be like:
> dot new console
> dot build
> dot run
> dot publish
(Yes, I know I can alias)It's not too late, Microsoft!
You may still find some JREs, which are created by some distributions that take the stuff out of the JDK to make classical JRE, though.