News for hackers. Stuff that matters.
Re:Java Developers by dmacvicar on Tuesday July 22, 2014 @06:40AM (#8068226)
There are several examples of simple libraries in Java that makes you realize it is possible to provide solutions to problems without the "culture" that predominates the ecosystem.

For example Simple (http://simple.sourceforge.net) is a great XML serialization framework that does very well what it is supposed to do.

And there are others I haven't used, but you look at the API and think, this is what I want.

I was very impressed with jDBI (http://jdbi.org/) even if we could not use it because of Maven.

Re:Java Developers by hrjet on Tuesday July 22, 2014 @08:29AM (#8068554)
Just had a look at jDBI and it doesn't exactly look like a simple library to me. There's a lot of run-time annotation processing.

Have a look at jOOQ if you haven't seen it yet. There is a pre-compilation stage which generates DAO for you and they can then be used with static type guarantees.

Re:Java Developers by revscat on Tuesday July 22, 2014 @10:55AM (#8069289)
That pre-compilation step, though... How does that play with the IDE? I'm looking into various (more) modern ORM/DB-talky-to-things, and checked out jOOQ but was turned off by that pre-compilation step. I like having my errors bright and red when I type.

I also don't like code generation. I'm not closed-minded to it, just don't like it if I can avoid it.

Re:Java Developers by lukaseder on Wednesday July 23, 2014 @03:10AM (#8073223)
> but was turned off by that pre-compilation step. I like having my errors bright and red when I type.

Too bad. Once you have code generation built in your development process (e.g. combining things with Flyway: http://blog.jooq.org/2014/06/25/flyway-and-jooq-for-unbeatab...), I'm sure you'll get a hang of how things work with jOOQ, and most importantly, you'll get your errors bright and red when you type (or when you build)

Re:Java Developers by hrjet on Tuesday July 22, 2014 @02:44PM (#8070827)
> That pre-compilation step, though... How does that play with the IDE?

It doesn't integrate with the IDE and I am not too fond of it either.

But if you want ORM as a library in Java, I don't think there is any other option possible. Java has no meta-programming support, and annotations are going to be processed at run-time which is even worse than pre-compilation.

Re:Java Developers by kazagistar on Thursday July 24, 2014 @06:17PM (#8082651)
I don't see any reason it shouldn't be possible to support pre-compilation steps as part of the IDE. Unless you are actively editing the bits that are compiled, it seems like this should work, but I am not an expert on what goes on behind the curtains of IDEs.
Re:Java Developers by dmacvicar on Tuesday July 22, 2014 @09:32AM (#8068848)
I mentioned I haven't used it, I only got the impression from the API, but you are criticizing the implementation right, not the API?