Course – LS – All

Get started with Spring and Spring Boot, through the Learn Spring course:


Lots of interesting writeups on Java 9 this week.

Here we go…

1. Spring and Java

>> Are Java 8 Streams Truly Lazy? Not Completely! []

It turns out that the Java 8 Streams API is not as lazy as you might think – the flatmap() operation evaluates the inner Stream eagerly – which is not the case when working with Scala or Vavr.

>> Simple Spring Boot Admin Setup []

The cool Spring Boot Admin dashboard setup can be slightly unintuitive – here a good overview of how to set it up.

>> What’s new in JPA 2.2 – Stream the result of a Query execution []

The new addition to JPA 2.2 – returning Query results as Stream – is an interesting addition but still not as efficient as a paginated ResultSet.

>> Why you should avoid CascadeType.REMOVE for to-many associations and what to do instead []

Using CascadeType.REMOVE can be quite dangerous – besides generating way too many queries, it can also remove more than expected.

Also worth reading:

Webinars and presentations:

Time to upgrade:

2. Technical

>> A Basic Programming Pattern: Filter First, Map Later []

In order to leverage the laziness of the Stream API and keep the complexity of the operations down, it’s important to rely on well-placed limits as much as possible – although even this might not enforce laziness in all scenarios.

>> ORMs Should Update “Changed” Values, Not Just “Modified” Ones []

Many ORMs update values that were “touched” but not necessarily changed – which is not ideal. Read the whole article to dive deeper into the problem and a few possible solutions.

3. Musings

>> A Look at 5 NoSQL Solutions []

A quick and practical introduction to NoSQL and the most popular solutions.

>> Stop waiting for perfection and learn from your mistakes []

Errors/mistakes happen and we need to learn how to embrace them in order to improve and innovate because they are the part of the process.

Also worth reading:

4. Comics

And my favorite Dilberts of the week:

>> You have a low opinion of people []

>> Updating my friend resource []

5. Pick of the Week

>> Make Your Life Better by Saying Thank You in These 7 Situations []

Course – LS – All

Get started with Spring and Spring Boot, through the Learn Spring course:

res – REST with Spring (eBook) (everywhere)
Comments are closed on this article!