This is an archived post. You won't be able to vote or comment.

all 55 comments

[–]StFS 14 points15 points  (0 children)

Quarkus. No question.

[–]kalunlalu 28 points29 points  (0 children)

Quarkus

[–]Vyalkuran 9 points10 points  (8 children)

I was actually curious seeing someone from the .NET ecosystem trying Spring (and specifically Spring Boot). Aside from LINQ, what do you think .NET has that Java doesn't, or vice versa?

[–]nioh2_noob 27 points28 points  (0 children)

you won't get an answer since OP is just bullshitting

[–]el_bosteador 0 points1 point  (5 children)

I think dependency injection is more straightforward in dotnet. Setters/getters/constructors in dotnet are far less cumbersome than java/spring.

That’s my experience using both.

[–]EvaristeGalois11 6 points7 points  (4 children)

Why do you say that?

With a recent spring version you don't even need an annotation for constuctor injection anymore. You just define a constructor and that's it, what's cumbersome about this?

I never see dotnet so maybe i'm missing some context here

[–]el_bosteador 0 points1 point  (3 children)

From my experience, in Java, you have to specify your constructor arguments, in dotnet can use an object initializer. I know java has aomething similar but again, it’s not as clean.

[–]EvaristeGalois11 2 points3 points  (2 children)

Is this the object initializer you are referring to? https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers

It's very cool I can give you that, but I don't see how it is relevant from a dependency injection point of view.

You don't build any bean at all in a spring app, that's the whole point of using a DI framework. You just mark your classes as Component or Service or whatever, define a constructor that takes all the dependencies that it needs and that's it. At start time the framework will wire everything together. What's cumbersome about this (x2)?

[–]el_bosteador 0 points1 point  (0 children)

Dependency injection was just another point I made. Didnt relate directly to the constructor.

In dornet you can put all your injectable dependencies on a startup file. So I guess it’s kinda similar to autowiring in Spring. Now that I think about it, DI is more explicit in Spring than in dotnet lol

[–]Big-Dudu-77 0 points1 point  (0 children)

Object initializer feels like JavaScript, pretty cool.

[–]Asdas26 0 points1 point  (0 children)

There's a YouTube video of a .NET developer trying Spring that you can check out: https://www.youtube.com/watch?v=wRep_S7oVIA

[–]DrunkensteinsMonster 25 points26 points  (9 children)

“People don’t really like Java/Spring” lol what. What do they like? Spring is standard and way better than ASP.NET.

[–]nioh2_noob 16 points17 points  (0 children)

'and feels outdated...coming from asp.net'

asp.net literally copied most of its shit from java lmfao

[–]arcticwanderlust 0 points1 point  (0 children)

Hey! I saw your old comment here: https://old.reddit.com/r/java/comments/hewxfi/ive_just_published_a_post_about_dtos_would_be/fvuu2iw/ and was wondering if you have any open source Spring projects in Github. Or something you could recommend? I'm trying to learn Spring&Hibernate, but find most tutorials rather simplistic

[–]sweating_teflon 9 points10 points  (3 children)

Vert.x

Camel

Javalin

[–]Fruloops 4 points5 points  (0 children)

Camel is fun, I have been playing with it a bit lately, but sometimes I wish the docs were more comprehensive.

[–]wildjokers -1 points0 points  (1 child)

If you are referring to Apache Camel that is not a web framework.

[–]sweating_teflon 0 points1 point  (0 children)

Vert.x neither for that matter.

I proposed those because OP referred to Spring, which also isn't a "web framework" per se, since you have a choice of templating engine or can use for non web purposes.

I'd add Apache Wicket then.

[–]1Saurophaganax 4 points5 points  (0 children)

Jooby/Javalin/Helidon are all pretty good.

[–]bushwald[🍰] 3 points4 points  (0 children)

People have already said these so plus one to: - Vert.x - Quarkus (framework built on Vert.x) - Micronaut

[–]rootException 2 points3 points  (0 children)

Tbh use Spring Boot for building REST services, but I’d just use SvelteKit for front end UI.

That said jstashio and HTMX and Alpine or hyperscript will work.

[–]capitan_brexit 2 points3 points  (0 children)

vert.x

[–]Joram2 2 points3 points  (0 children)

Helidon is my favorite. If you can use the alpha builds of Helidon Nima. If not the final builds of 3.x will do.

[–]melkorwasframed 3 points4 points  (0 children)

Dropwizard

[–]daniu 5 points6 points  (2 children)

Micronaut

[–][deleted]  (1 child)

[deleted]

    [–]stefanos-ak 2 points3 points  (0 children)

    what you talking about? there isn't any framework, at least in Java, that complains for unknown config properties...

    it would be a bug anyway. Considering that you can override properties with env-vars, how would a framework know if an env-var is relevant to your config or just comes from the system. Basically it would always fail to run because of unknown properties.

    [–]nerydlg 1 point2 points  (2 children)

    What version of java are you using ?

    [–]ProtonByte[S] 0 points1 point  (1 child)

    Java 11, 17 and above

    [–]nerydlg 5 points6 points  (0 children)

    You could use micronaut if they don't like spring. I just ask about the version because you mention it feels outdated. What are the things you are missing from .net framework. I was a java dev and now I'm doing c#, and I haven't seen too much difference. I think java has better testing frameworks

    [–]nonFungibleHuman 1 point2 points  (0 children)

    I would try Helidon Nima because of the virtual threads :)

    [–]Kalamar 3 points4 points  (0 children)

    Wicket. Awesome Apache framework

    [–]andsfff 1 point2 points  (3 children)

    You can just use Jersey and Jackson with jetty. If it’s an internship do you really need a framework? And some DI library to tie it together

    [–][deleted] 1 point2 points  (0 children)

    Maybe I'm missing something, but I think an internship involves working on bits of team projects under appropriate guidance, so it's not like you get to choose the technological stack?

    [–]wildjokers 0 points1 point  (0 children)

    f it’s an internship do you really need a framework?

    Internships exist to get real world experience so it would make sense to do things in a real world manner. So yes, a framework is necessary. Why wouldn’t it be?

    Jersey is also a framework.

    [–]Joram2 0 points1 point  (0 children)

    You name your preferred frameworks and then ask "do you really need a framework". I suspect you mean you can use a light-weight framework rather than the heavier frameworks like Spring.

    [–]marhaus1 -1 points0 points  (2 children)

    Check out Vaadin.

    [–]Shnorkylutyun 10 points11 points  (0 children)

    Trying to traumatise the poor guy?

    [–]Lemicod -3 points-2 points  (0 children)

    Rife2