Please, Java. Do Finally Support Multiline String Literals

I understand the idea of Java-the-language being rather hard to maintain in a backwards-compatible way. I understand the idea of JDK API, such as the collections, to be rather tough not to break. Yes. I don't understand why Java still doesn't have multiline string literals. How often do you write JDBC code (or whatever other … Continue reading Please, Java. Do Finally Support Multiline String Literals

Look no Further! The Final Answer to “Where to Put Generated Code?”

This recent question on Stack Overflow made me think. Why does jOOQ suggest to put generated code under “/target” and not under “/src”? ... and I'm about to give you the final answer to "Where to Put Generated Code?" This isn't only about jOOQ Even if you're not using jOOQ, or if you're using jOOQ … Continue reading Look no Further! The Final Answer to “Where to Put Generated Code?”

Why Everyone Hates Operator Overloading

... no, don't tell me you like Perl. Because you don't. You never did. It does horrible things. It makes your code look like... Perl made heavy use of operator overloading and used operators for a variety of things. A similar tendency can be seen in C++ and Scala. See also people comparing the two. … Continue reading Why Everyone Hates Operator Overloading

Fast File System Operations with Xtend, Lambdas, and ThreadPools

Recently, I've blogged about 10 Subtle Best Practices when Coding Java, and I have mentioned that you should start writing SAMs (Single Abstract Method) now, in order to be prepared for Java 8. But there's another language gem out there, which comes in handy every once in a while, and that's Eclipse Xtend. Xtend is a … Continue reading Fast File System Operations with Xtend, Lambdas, and ThreadPools