Lots of interesting writeups on Java 9 this week.

Here we go…

1. Spring and Java

>> How To Map The Date And Time API with JPA 2.2 [thoughts-on-java.org]

Support for the new Date/Time API for Java finally comes along with the JPA 2.2.

>> @Contended @since 9 [javaspecialists.eu]

Java 9 will be trying to encapsulate internal system classes that we should not be using (but we often are).

The @Contended annotation is one of those tools – let’s see how we can access it in Java 9.

>> You’re not a compiler! [frankel.ch]

Programming quizzes are cool, but obviously, they do test a very thin slice of developer’s skills.

All in all, not that useful.

>> Planning Your Java 9 Update [codefx.org]

Java 9 is coming soon (hopefully) and brings a host of new APIs and language features, modules among them.

Modularizing an application should be well thought and carefully planned.

>> Java API for RESTful Web Services 2.1 Released [infoq.com]

JAX-RS 2.1 finally got released and has a bunch of cool new features.

>> Code Smells: Mutation [blog.jetbrains.com]

Simply put – it’s a bad idea to mutate something you’re directly iterating over 🙂

>> JUnit 5 Tutorial: Running Unit Tests With Gradle [petrikainulainen.net]

Running JUnit 5 tests might be slightly tricky in certain scenarios – it’s important to remember that JUnit 5 is split into a few different artifacts you can leverage separately.

>> Cost Reduction Strategies on Java Cloud Hosting Services [infoq.com]

Cloud resources can be expensive, especially when you’re forced to pay for resources that you don’t need.

Here are a few techniques to make sure you’re paying only for what you actually use.

>> Idiomatic Peeking with Java Stream API [4comprehension.com]

Multiple controversies are surrounding the peek() method from the Java Stream API – here you can see what those are and how to use the method properly.

Also worth reading:

Webinars and presentations:

Time to upgrade:

2. Technical

>> Stability in a Chaotic World: How Postgres Makes Transactions Atomic [brandur.org]

A super deep-dive into the internal of Postgres.

Also worth reading:

3. Musings

>> Scale Your Freelancing: Hiring Others [daedtech.com]

Well, you should probably start by finding a good lawyer and an accountant – that holds true for pretty much every country 🙂

Also worth reading:

4. Comics

And my favorite Dilberts of the week:

>> Small Talk [dilbert.com]

>> Complaining pill [dilbert.com]

>> Fool-proof plan for success [dilbert.com]

5. Pick of the Week

The last day (Friday) of the REST With Spring 2.0 launch:

>> The new Spring 5 modules coming in REST With Spring