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:
>> Dynamically adding an interceptor to a built-in CDI bean [arjan-tijms.omnifaces.org]
>> JUnit 5 Tutorial: Running Unit Tests With Maven [petrikainulainen.net]
>> Hibernate Tips: How to delete child entities from a many-to-one association [thoughts-on-java.org]
>> The best way to map a projection query to a DTO (Data Transfer Object) with JPA and Hibernate [vladmihalcea.com]
>> Localization of Spring Security Error Messages in Spring Boot [codecentric.de]
>> First Vavr Tutorial [blog.vavr.io]
Webinars and presentations:
>> Spring Cloud Data Flow Tips & Tricks: Interacting with the Shell [spring.io]
>> What Does Speed Mean in Software Product Delivery? [infoq.com]
Time to upgrade:
>> Bugfix releases for Hibernate Search 5.5, 5.6 and 5.7 [in.relation.to]
>> jOOQ 3.10 Supports JPA AttributeConverter [jooq.org]
>> IntelliJ IDEA 2017.2: Smarter, Neater, and Faster [infoq.com]
>> IntelliJ IDEA 2017.2: Spring Boot Improvements [jetbrains.com]
>> Spring Cloud Edgware M1 Is Now Available [spring.io]
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:
>> Selecting an Event Architecture [infoq.com]
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:
>> Reinforcement Learning Overview [horicky.blogspot.com]
>> How To Handle Business Rules in Domain Driven Design [blog.sapiensworks.com]
>> When do you cut your Losses? [offbeattesting.com]
>> The Web in 2050 [jacquesmattheij.com]
>> Just Following Orders [blog.cleancoder.com]
>> Spring Cleaning Your Code Review [daedtech.com]
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: