News for hackers. Stuff that matters.
Re:Show HN: Java REST without annotations, DI nor reactive s... by rco8786 on Sunday June 11, 2023 @01:56PM (#36283757)
Kudos to you for trying this. Every time I open a Java project after spending time in literally any other language I get saddened by just how...cluttered? wordy? tedious? it is...hard to find the right word, but it's not good.
Re:Show HN: Java REST without annotations, DI nor reactive s... by mhd on Sunday June 11, 2023 @02:20PM (#36284083)
I've been doing some Angular-/Nest-ish TypeScript projects, and it's basically Spring with more bugs and = signs.
Re:Show HN: Java REST without annotations, DI nor reactive s... by Traubenfuchs on Sunday June 11, 2023 @02:29PM (#36284195)
As a year long spring (boot) dev, I felt right at home with angular 2+ -it‘s literally the spring framework of frontend frameworks.
Re:Show HN: Java REST without annotations, DI nor reactive s... by webosdude on Sunday June 11, 2023 @03:37PM (#36284824)
I haven’t used Angular but I have used Nest and I agree with this sentiment. Java Spring’s annotations are similar to Nest’s custom decorators.
Re:Show HN: Java REST without annotations, DI nor reactive s... by re-thc on Sunday June 11, 2023 @03:55PM (#36284973)
> basically Spring with more bugs and = signs

The worst parts of Spring is Spring. Nest lacks the IDE, the performance in the JVM, etc... there is nothing to gain.

Re:Show HN: Java REST without annotations, DI nor reactive s... by winrid on Sunday June 11, 2023 @02:18PM (#36284047)
Vertx is pretty good. I have two vertx services in prod without a single annotation.
Re:Show HN: Java REST without annotations, DI nor reactive s... by nunobrito on Sunday June 11, 2023 @03:31PM (#36284775)
Sure, other languages without semi-colons and using invisible tabs for syntax are fantastic. What I love best are magic object types where you only discover invalid type casting when running the code.

And lest we forget the fabulous unit testing for those non-tedious languages. Oh.. I forgot testing is tedious and therefore unavailable for most of those languages.

But hey, just look at that really short code without a single comment. The word you're looking for is: Fantasticc! :-)

Re:Show HN: Java REST without annotations, DI nor reactive s... by rco8786 on Sunday June 11, 2023 @05:34PM (#36285958)
This doesn’t describe any language or framework I’ve worked in so hard not to conclude that it’s some sort of straw man
Re:Show HN: Java REST without annotations, DI nor reactive s... by nunobrito on Monday June 12, 2023 @02:35AM (#36289222)
That is what one can say about verbosity and "tedious".
Re:Show HN: Java REST without annotations, DI nor reactive s... by rco8786 on Monday June 12, 2023 @09:36AM (#36293194)
That was me specifically talking about Java. You can disagree with it, but it’s certainly not a straw man.
Re:Show HN: Java REST without annotations, DI nor reactive s... by jayd16 on Sunday June 11, 2023 @04:01PM (#36285033)
Wouldn't this add more cluttered boilerplate? Annotations are pretty clean looking but the backlash is from the "magic" they provide, not the clutter.
Re:Show HN: Java REST without annotations, DI nor reactive s... by olavgg on Sunday June 11, 2023 @04:12PM (#36285127)
Of all web frameworks, with perhaps the exception of Ruby on Rails. I really struggle with lack of documentation or the quality of documentation. And lesser popular frameworks has a lot less volunteers sharing knowledge.

Spring Boot is one of the most popular web frameworks in the world. It is by far easier to figure out how to do build something that solves business problems in Spring / Hibernate than alternatives(except maybe RoR).

For example, do you want to use Micronaut, the Spring Boot killer? Good luck fetching a collection with string type. I takes basically 2 minutes to google how do this with Spring Boot / Hibernate, and it will take you a day or two to figure out it isn't possible at all with Micronaut without writing massive amount of code that binds the results from your SQL to your objects. This is one example, and it shows the madness in web frameworks. Why are we switching frameworks that only ends up slowing us down?

Spring Framework is a big framework, that solves many problems. It may be overwhelming the first year, but with a few years experience you do not want to switch, because other frameworks lacks or has ugly hacks for many Spring Framework features.

Other advantages, massive access to experts for hire. There are literally thousands of Spring Framework developers in my area. Also, since I am an expert myself, I can share my knowledge between these people, and together we are improving our knowledge at a rate other frameworks cannot offer and this gives us a massive innovation pace that brings increased business value.

The next time I will try another web framework, I need to see that my productivity gets improved immediately. Otherwise, is just noise.

Re:Show HN: Java REST without annotations, DI nor reactive s... by nprateem on Monday June 12, 2023 @04:43AM (#36290247)
Plus it's old enough that chat gpt is quite helpful. Would be good if they could update it for spring boot 3 though.