Java 11 will be the next LTS release after Java 8 which is to be released on September 2018. Here you can read a short article about few new features from Java 11 such as new GC and removing the Java EE and CORBA modules, this article also explains what new release policy from Oracle means.
https://blog.takipi.com/java-11-will-include-more-than-just-features/
https://blog.takipi.com/java-11-will-include-more-than-just-features/
OverOps
Java 11 Will Include More Than Just Features | OverOps
What are the upcoming features in Java 11, and how will it be different from Java 9 and 10?
Have you ever heard about Project Amber in Java? Take a look at a few important features which can influence Java's future.
https://dzone.com/articles/what-is-project-amber-in-java
https://dzone.com/articles/what-is-project-amber-in-java
dzone.com
What Is Project Amber in Java? - DZone Java
See what Project Amber will bring to Java, including local variable type inference, enhanced enums, lambda expression leftovers, and pattern matching.
Gradle 4.7 Release Notes.
This release also supports running Gradle builds with JDK 10
https://docs.gradle.org/current/release-notes.html
This release also supports running Gradle builds with JDK 10
https://docs.gradle.org/current/release-notes.html
An interesting and easy to understand article about shuffling a stream in Java from Dr. Heinz M. Kabutz
https://www.javaspecialists.eu/archive/Issue258.html
https://www.javaspecialists.eu/archive/Issue258.html
www.javaspecialists.eu
[JavaSpecialists 258] - ShuffleCollector
Sorting a stream is easy. But what if we want the opposite: shuffling? We can shuffle a List with Collections.shuffle(List). But how can we apply that to a Stream? In this newsletter we show how with Collectors.collectingAndThen().
One more article about Java Stream API, this one is about sorting Map by value.
https://howtodoinjava.com/core-java/collections/java-sort-map-by-values/
https://howtodoinjava.com/core-java/collections/java-sort-map-by-values/
HowToDoInJava
Java sort Map by values (ascending and descending orders)
Simple quick to use examples to sort Map by values, using Java 8 Stream APIs, in ascending and descending (reverse) orders. In the center of logic is the method Map.Entry.comparingByValue() which compares Map.Entry in natural order on value.
Good intro for young (but not only) developers about testing http://jasonpolites.github.io/tao-of-testing/index-1.1.html
jasonpolites.github.io
The Tao of Testing
Even if you’re writing tests for your software (which many don’t), you’re probably doing it wrong.
Still using CountDownLatch or CyclicBarrier in your Java code? Don't know what is Phaser from Java 7?
https://www.javaspecialists.eu/archive/Issue257.html
https://www.javaspecialists.eu/archive/Issue257.html
www.javaspecialists.eu
[JavaSpecialists 257] - CountDownLatch vs Phaser
Java 7 gave us a brilliant new class called Phaser, which we can use to coordinate actions between threads. It replaces both CountDownLatch and CyclicBarrier, which are easier to understand, but harder to use.
If you didn't try Kotlin yet here is short and simple article about some unique features that Java doesn't have and makes Kotlin stand out.
https://itnext.io/a-day-with-kotlin-5a55eba1965e
https://itnext.io/a-day-with-kotlin-5a55eba1965e
Medium
A Day with Kotlin
What Kotlin has that Java does not.
Short intro for database migration with Flyway as alternative for Liquibase
https://blogg.itverket.no/database-migration-with-flyway/
https://blogg.itverket.no/database-migration-with-flyway/
ITverket
Database migration with Flyway
During my years working with software development I've probably only scratched the surface of topics regarding code, architecture, patterns and best practices. One thing I always thought about was how we handled changes to our database schema. This was often…
About pros and cons of Synchronous or asynchronous (callbacks vs wrappers) approaches with examples
https://blog.softwaremill.com/synchronous-or-asynchronous-and-why-wrestle-with-wrappers-2c5667eb7acf
https://blog.softwaremill.com/synchronous-or-asynchronous-and-why-wrestle-with-wrappers-2c5667eb7acf
Medium
Synchronous or asynchronous, and why wrestle with wrappers?
Have you ever wondered why you have to wrestle with CompletableFutures instead of “just writing code” like in the old days? Is it only for…
If you are working with hibernate, you can find this collection of tips interesting https://www.thoughts-on-java.org/tips
Thoughts on Java
Hibernate Tips - Thoughts on Java
Hibernate Tips BookGet the Hibernate Tips book with more than 70 ready-to-use recipes for topics like: check basic and advanced mappings check mapping of custom data types check 1st level, 2nd level and query caches check compile-time defined queries check…
The series of articles about SOLID design principles, with code examples:
- Single Responsibility Principle
- Open/Closed Principle
- Liskov Substitution Principle
- Interface Segregation Principle
- Dependency Inversion
https://stackify.com/solid-design-principles/
https://stackify.com/solid-design-open-closed-principle/
https://stackify.com/solid-design-liskov-substitution-principle/
https://stackify.com/interface-segregation-principle/
https://stackify.com/dependency-inversion-principle/
- Single Responsibility Principle
- Open/Closed Principle
- Liskov Substitution Principle
- Interface Segregation Principle
- Dependency Inversion
https://stackify.com/solid-design-principles/
https://stackify.com/solid-design-open-closed-principle/
https://stackify.com/solid-design-liskov-substitution-principle/
https://stackify.com/interface-segregation-principle/
https://stackify.com/dependency-inversion-principle/
Stackify
SOLID Design Principles: The Single Responsibility Explained
SOLID is an acronym for the 5 design principles of object-oriented programming. This article focuses on the Single responsibility principle.
If you are using Spring Boot and want to know how to use multiple modules, read this one:
https://blog.frankel.ch/multiple-modules-spring-boot-apps/
https://blog.frankel.ch/multiple-modules-spring-boot-apps/
A Java geek
Multiple modules in Spring Boot apps
Spring Boot is a huge success, perhaps even more so than its inceptors hoped for. There is a lot of documentation, blog posts, and presentations on Spring Boot. However, most of them are aimed toward a feature, like monitoring or configuring. Few - if any…
Here is an article about atomic updates in Java 8 ConcurrentHashMap, also I would recommend you to read articles which autor mentions in the beginning, if you don't know how ConcurrentHashMap works.
https://dzone.com/articles/java-8-concurrenthashmap-atomic-updates
https://dzone.com/articles/java-8-concurrenthashmap-atomic-updates
DZone
Java 8: ConcurrentHashMap Atomic Updates
Here's a great look at what Java 8 brought to ConcurrentHashMaps, including close looks at the methods at your disposal and their performance impacts.
The series of articles about Java's lambdas, streams and functional programming approach in Java in general. You can also find there interesting diagrams showing how Java had changed from the first version to Java 8.
https://dzone.com/articles/j%CE%BBv%CE%BB-8-a-comprehensive-look
https://dzone.com/articles/j%CE%BBv%CE%BB-8-a-comprehensive-look
DZone
Java 8 (A Comprehensive Look)
See all of the various functional programming components Java 8 introduced to the language as well as other important additions.
A short intro into JWT (JSON Web Token). I guess the title of the article doesn't correlate with its content, it was odd for author to name the article "Java 9" and to use java.util.Date (deprecated API) at the same time. Besides, it's not in any way connected with Spring Boot.
#jwt #java
https://dzone.com/articles/jwts-with-spring-boot-and-java-9
#jwt #java
https://dzone.com/articles/jwts-with-spring-boot-and-java-9
dzone.com
JWTs With Spring Boot and Java 9 - DZone Java
Interested in using JWTs to pass data in your Java 9/Spring Boot projects? Learn how to set up your dependencies and the use cases for you to consider.
Returning to the topic of time libraries in Java, I would recommend you to read the following article (which features really good examples), especially If you still get confused by the different types in java.time (Instant, LocalDateTime and so on) and are not sure how to use them properly.
#java #time
https://yawk.at/java.time/
#java #time
https://yawk.at/java.time/
Here you can read about different approaches of doing atomic updates in Java.
#java #concurrency
https://dzone.com/articles/why-do-we-need-4-classes-for-atomic-updates-in-java
#java #concurrency
https://dzone.com/articles/why-do-we-need-4-classes-for-atomic-updates-in-java
dzone.com
Why Do We Need 4 Classes for Atomic Updates in Java? - DZone Java
Let's compare AtomicReference, AtomicReferenceFieldUpdater, sun.misc.Unsafe, and Java 9's VarHandle classes to see which should be used when for atomic updates.
Сheatsheet for Java Keytool Keystore Commands
#java #security #cheatsheet
https://dzone.com/articles/understand-java-keytool-keystore-commands
#java #security #cheatsheet
https://dzone.com/articles/understand-java-keytool-keystore-commands
dzone.com
Understanding Java Keytool Keystore Commands - DZone Java
This great compilation of Java Keytool Keystore commands will make sure you're ready to handle your private keys, signing requests, and certificates.
Spring Boot 2.0.2 was released a few days ago.
#java #spring #springboot
https://spring.io/blog/2018/05/09/spring-boot-2-0-2
#java #spring #springboot
https://spring.io/blog/2018/05/09/spring-boot-2-0-2
spring.io
Spring Boot 2.0.2
On behalf of the team and the community, I am pleased to announce that Spring Boot 2.0.2 is now available from repo.spring.io and Maven Central.
Spring Boot 2.0.2 includes over 80 fixes, improvements, and dependency updates. Thanks to everyone that has contributed…
Spring Boot 2.0.2 includes over 80 fixes, improvements, and dependency updates. Thanks to everyone that has contributed…