News for hackers. Stuff that matters.
Re:Understanding the .NET ecosystem: The evolution of .NET i... by nonethewiser on Tuesday March 21, 2023 @06:26PM (#35253554)
Isn’t there still lots of boilerplate, it’s just generated for you?
Re:Understanding the .NET ecosystem: The evolution of .NET i... by brushfoot on Tuesday March 21, 2023 @06:33PM (#35253643)
The boilerplate is pretty minimal nowadays. In 2020, C# introduced top-level statements, which removed a lot of the ceremony.

You used to have a class, and there would typically be a separate Startup.cs file. Today, this is a complete .cs file for creating an API:

    var builder = WebApplication.CreateBuilder(args);
    var app = builder.Build();

    app.MapGet("/", () => "Hello World!");

    app.Run();
Re:Understanding the .NET ecosystem: The evolution of .NET i... by older on Tuesday March 21, 2023 @06:35PM (#35253659)
"Hello world" is a one-liner Since .Net 6.
Re:Understanding the .NET ecosystem: The evolution of .NET i... by nirav72 on Tuesday March 21, 2023 @06:44PM (#35253767)
Nope. Take a look at Minimal API in .net 6 and onwards.