.NET 5
.NET 5 is amazing... everything C# should be is what .NET 5 is. Previously you would have people using .NET core and .NET framework now its all just .NET thank fucking god.
Notable Features
- Focus on compiling on all operating systems no more windows only BS which is perfect because C# is used for servers a lot.
- Single executable applications, this is something everyones wanted for ages it was pretty annoying to use third party tools to bundle into a single exe.
C# 9
Recently the main focus for newer versions of C# seems to be reducing the verbosity which is in my opinion the number one complaint most people have about it.
Top Level Statements
New
System.Console.Write("Hello world!");
Old
namespace HelloWorldApp
{
public class Program
{
public static void Main(string[] args)
{
System.Console.Write("Hello world!");
}
}
}
Its pretty obvious how much easier it is to look at the newer version of the same code with top level functions! I know this is a small feature but I find it a good step into the right direction for C#
Performance
Over the years C#'s performance has been getting ridiculously fast it appears to even match or be faster than go's runtime performance which is amazing! In most cases C# will perform better than most other languages you could build your application with while still being super convenient to write.
Takeaways
C# is growing to be a amazing language, in my opinion C# was pretty eh a few years ago but now I consider using it for lots of projects. Thanks to the amazing teams that have worked on .NET and C# ❤️.