4 ms·
I am mostly a Python person, but I must confess I'm impressed by both modern .NET and Java's Spring Boot. I architect for two teams, one using Java, the other u
by rbanffy 4y ago
I am mostly a Python person, but I must confess I'm impressed by both modern .NET and Java's Spring Boot. I architect for two teams, one using Java, the other using C#, for building services and the amount of boilerplate code, that used to be a huge turnoff for me, has been impressively reduced.
There's still a lot, but it's now more or less comparable to what you'd expect you'd end up with on a similar app built on, say, FastAPI.
- nonethewiser 4y agoIsn’t there still lots of boilerplate, it’s just generated for you?
- brushfoot 4y agoThe 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();
- older 4y ago"Hello world" is a one-liner Since .Net 6.
- nirav72 4y agoNope. Take a look at Minimal API in .net 6 and onwards.
- bmitc 4y agoI'd recommend taking a look at F#.
- deleted 4y ago[deleted]