Lots of interesting writeups on Java 9 this week.
Here we go…
1. Spring and Java
The introduction of lambda expressions and functional interfaces allows us to rethink the design and simplify the Strategy Design Pattern (and many other).
Spring Boot Actuator comes with user-friendly support for handling audit and security events.
Simply put, all we need to do is to define a listener for the predefined events.
A lot of new changes are finally coming to Java. These include Local Variable Type Inference, Generic Enums, Data Classes and Pattern Matching.
“We've had those in other languages ten years ago” posts are coming.
With a little bit of effort, we can bring the features of Boot Actuators to non-Boot applications as well.
IntelliJ IDEA is getting, even more, Spring-oriented features.
The pragmatic approach to the Open-Closed Principle does not involve aiming for openness at any costs.
The 2nd phase of JDK 9 rampdown just started.
The internal APIs in the JDK should not have been used but they were by multiple frameworks which are experiencing errors now.
JDK 9 will feature a special workaround for these situations.
Also worth reading:
Webinars and presentations:
Time to upgrade:
2. Technical
That's how you make interviewers hate you 🙂
Writing isolated tests can greatly influence the design of your system by exposing excessive coupling and insufficient cohesion.
Yeah, setting your timeouts to infinity or ignoring them is very likely not a good idea.
Value Objects are a great way of dealing with the String type abuse. Working in a strongly typed language, it makes a lot of sense to leverage these.
Also worth reading:
3. Musings
Sometimes it's easier to explore and explain an idea by first clarifying what it's not 🙂
Software performance is critical and should not be neglected, but at the end of the day, it is the absolute value of the code that counts.
Information about problems, without an actual solution – it is not a good way to go.
Also worth reading:
4. Comics
And my favorite Dilberts of the week:
5. Pick of the Week
res – REST with Spring (eBook) (everywhere)