There are plenty of other programming languages that would do. Programming languages are just tools but C# comes with several advantages.
- I know it pretty well, having been using it since 2005.
- With .NET 6 (and 5), it’s easy to create applications that run on Linux. This lowers the cost for hosting. I’m setting the game on a low cost VPS.
- Also on Linux, ASP.NET works pretty well for both Websites and Web Apis.
- I like some of the recent changes in C#. And Visual Studio 2022 Community Edition is pretty good. For instance the JSON handling has got better and better.
Do you know what Hello World in C# looks like now? Here it is in its entirety.
That’s a console application. One line! Follow the link for more details about the C# templates. Note, there’s no usings there either. That’s because applications now start with a default set in C# 10 and .NET 6 (you get both if you install VS 2022). And if you want a particular namespace that you’ve written to be available to all source code in a project, you can just add this:
global using xyz;
And it becomes available everywhere without needing any more usings.