News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by tootie on Wednesday December 04, 2019 @12:03PM (#21703996)
You don't actually need to do any of that. If you're writing Ant, I assume this was at least 10 years ago. Modern Spring Boot is all annotations and using an ORM is out of fashion. Maven can be a little complicated, but it's easy to work off an archetype and it's far more sophisticated than npm. Python doesn't have this problem, but it also just doesn't have these features as an option. You can certainly build a Java project with javac but we generally don't because Maven is better.
Re:Generating a Java program with 90% less code by abledon on Wednesday December 04, 2019 @01:20PM (#21705161)
wait.. using an ORM is out of fashion now? is everyone doing direct SQL queries again?
Re:Generating a Java program with 90% less code by michaelper22 on Wednesday December 04, 2019 @02:33PM (#21706034)
Or the ORM (Hibernate by default) is abstracted behind Spring Data interfaces. It's pretty easy to autowire the EntityManager if you need it.
Re:Generating a Java program with 90% less code by oftenwrong on Wednesday December 04, 2019 @10:49PM (#21709822)
I favour jOOQ.
Re:Generating a Java program with 90% less code by abledon on Thursday December 05, 2019 @10:29AM (#21713111)
oh, i like its DSL, much more sane than raw sql queries.
Re:Generating a Java program with 90% less code by tootie on Wednesday December 04, 2019 @01:44PM (#21705476)
Yes. Or use a NoSQL DB.