News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by eecc on Wednesday December 04, 2019 @12:46PM (#21704669)
Magik? Has anyone mentioned Spring yet?
Re:Generating a Java program with 90% less code by jdmichal on Wednesday December 04, 2019 @03:44PM (#21706704)
Spring magic is both relatively straight-forward to understand, and actually relies on heavy typing for autowiring.
Re:Generating a Java program with 90% less code by eecc on Wednesday December 04, 2019 @04:12PM (#21707052)
Uh right, sure. But then there's the Spring lifecycle to take into consideration and it may happen that your annotations may or may not work. It depends (of course it's not totally aleatory, there's some logic behind it, usually obvious after several hours debugging ;)

Another honorable mention is Spring Boot @Conditional for which adding a minor little diversion from defaults will turn a functioning happy project in a dysfunctional nightmare.

:'(

Re:Generating a Java program with 90% less code by jdmichal on Wednesday December 04, 2019 @06:02PM (#21708136)
I agree with you completely on that. I'll clarify that, to me, there's a difference between straight-forward and obvious. And Spring is terrible at being obvious. Some annotation on a class 5 transitive dependencies deep can affect your code. It's definitely really deep into "spooky action at a distance", and that's always a nightmare for debugging. But once you see all the pieces, it's (usually) relatively straight-forward to describe what is happening.
Re:Generating a Java program with 90% less code by ubu7737 on Thursday December 05, 2019 @12:05AM (#21710123)
Spring is semi-magical but when you learn the whole thing it gives you godlike abilities.
Re:Generating a Java program with 90% less code by eecc on Thursday December 05, 2019 @04:44PM (#21716925)
Really? Try Clojure then