News for hackers. Stuff that matters.
Re:I finally escaped Node by watwut on Wednesday March 24, 2021 @10:35AM (#26567755)
> I get driven away by the difficulty and complexity to do simple things (thinking of annotations, dependency injection, complicated design patterns). It feels like an effort of one hour of Node or Python programming (or even Go) would take 10x more in Java.

You are comparing stuff that is super helpful on large project with how to be quick in 1 hour by one person. If I have 1 hour long project in java, I wont use complicated design patterns. If I dont need Spring Boot or dependency injection, I wont use them. I am not sure what you mean by complicated annotations tho.

In Java, if all what you want is a method that processes some data, you wont use any of that and will just do a class or something like that. So if python have better methods to achieve whatever you want to achieve out of the box, it will be somewhat faster. But it will have zero to do with annotations.

Re:I finally escaped Node by haolez on Wednesday March 24, 2021 @05:56PM (#26573500)
I agree that the way I've made my statement can be ambiguous. What I meant was when using Node/Python/Go for projects of similar complexity. Maybe not millions of lines of code, but a web app with some order processing, database access and specific business logic. It feels harder in every way when using Java + Spring Boot, but my question was sincere: I'm pretty sure that this combo is a successful platform and I want to understand why.

Finally, by excessive use of annotations, I think I'm talking about ORMs. I remember checking a Hibernate-based project in the past and some methods had more lines of annotations than actual code. I'm not sure this is bad, but it kind of creates a new dimension of code for me to wonder about.

Re:I finally escaped Node by watwut on Thursday March 25, 2021 @09:19AM (#26579894)
Imo, if you know what all of that means and what to do, it is fast and easy. If you are new to it all, it can be frustrating.
Re:I finally escaped Node by alexhutcheson on Wednesday March 24, 2021 @06:06PM (#26573605)
What would you use to write a quick RPC server or JSON endpoint in Java, if not Spring Boot?