News for hackers. Stuff that matters.
Re:What is .NET, and why should you choose it? by abraxas on Tuesday February 14, 2023 @01:31PM (#34793794)
As a long time Java professional who hasn't experienced .NET what would you say are the biggest advantage points of .NET vs a typical modern Java setup with say, IntelliJ, SpringBoot, maven/gradle etc?
Re:What is .NET, and why should you choose it? by Kwpolska on Tuesday February 14, 2023 @01:45PM (#34793998)
I have very little experience with Java, but I tried building a web app with Spring Boot once. Figuring out even the most basic things, like how to get server-side templates to work, took forever. Many things documented around the web just flat out didn’t work. I got it to a workable state though.

In the modern ASP.NET Core, things are much better organized and documented. The framework has far less magic involved. No magically auto-generated repositories, no @Autowired magic, and far less use of annotations. Things just make more sense.

As for the language itself, C# is nicer in many regards. Even basic things like properties instead of hand-written or Lombok-generated getters and setters, or operator overloading where it makes sense, lead to clearer code.

Regarding IDEs: I hate Visual Studio, but JetBrains Rider is basically IntelliJ for C#.

Re:What is .NET, and why should you choose it? by runevault on Tuesday February 14, 2023 @05:36PM (#34797211)
Its literally IntelliJ for c# lol. Same base system just tied into the Roslyn compiler chain and using their proprietary .NET debugging system instead of whatever they use for the JVM. And while I still use VS at work on personal projects (in both c# and f#) I've switched fully over to Rider and enjoying the experience a great deal, so anyone used to IntelliJ can get a pretty comparable experience from their IDE right out.
Re:What is .NET, and why should you choose it? by kaba0 on Wednesday February 15, 2023 @08:00AM (#34803226)
Not sure when did you try it out, but there are things like Spring Initializr where it really is just clicking together your initial setup.

Also, there are plenty of old, no longer working code samples on the internet for spring, but the official documentation is really great and should be preferred over some random blog that likely 6 years old already.

Re:What is .NET, and why should you choose it? by Kwpolska on Wednesday February 15, 2023 @12:34PM (#34807440)
I tried Spring Initializr. I made the mistake of picking human-friendly Freemarker templates instead of the XML abomination that is Thymeleaf, and things went to hell.

And can you show the nice official documentation? All my searches back then pointed me only at blogs and stuff. All of them full of outdated advice — for example, the version I started with was one of the first to change the default file extension for Freemarker from `.ftl` to `.ftlh` for some invalid reason, but none of the online blogs were updated for it, I found out after a few hours of trying out random things when I stumbled upon the change log for that release. (The reason was allegedly “security”, but what stops them from disabling the insecure features and keeping the extension?)

Another thing that was woefully under-documented was the default security thing, it also took me forever to figure out how to get a login page showing and working.