Implementing Custom Operators in RxJava
1. Overview In this quick tutorial, we’ll show how to write a custom operator using RxJava. We’ll discuss how to build this simple operator, as well as a transformer – both as a class or as a simple...
View ArticleIntroduction to Apache Commons Chain
1. Introduction Apache Commons Chain is a library that uses the Chain of Responsibility pattern – generally used for organizing complex processing flows in which multiple receivers can process a...
View ArticleDelegated Properties in Kotlin
1. Introduction The Kotlin programming language has native support for class properties. Properties are usually backed directly by corresponding fields, but it does not always need to be like this –...
View ArticleGuide to hashCode() in Java
1. Overview Hashing is a fundamental concept of computer science. In Java, efficient hashing algorithms stand behind some of the most popular collections we have available – such as the HashMap (for...
View ArticleJava Weekly, Issue 188
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Spring Framework 5 Kotlin APIs, the functional way [spring.io] The new Spring 5 will not only be compatible...
View ArticleCollect a Java Stream to an Immutable Collection
1. Introduction In this quick article, we’re going to have a look at various ways of collecting Java Streams to immutable Collections – which require a special approach because standard Collectors...
View ArticleSealed Classes in Kotlin
1. Introduction Simply put, the Kotlin language borrowed a number of concepts from other functional languages to help with writing safer and more readable code. Sealed hierarchies is one of these...
View ArticleSecuring Java EE with Spring Security
1. Overview In this quick tutorial, we’ll be looking at how to secure a Java EE web application with Spring Security. 2. Maven Dependencies Let’s start with the required Spring Security dependencies...
View ArticleIntroduction to Bootique
1. Overview Bootique is a very lightweight open-source container-less JVM framework aimed to build next-generation scalable micro-services. It’s built on top of embedded Jetty server and fully...
View ArticleQuick Guide to RSS with Rome
1. Overview RSS (Rich Site Summary or Really Simple Syndication) is a web feed standard that provides readers with an aggregated content from various locations. The user can see what’s been published...
View ArticleUsing Spring @Value with Defaults
1. Overview Spring’s @Value annotation provides a convenient way to inject property values into components. It’s also quite useful to provide sensible defaults for cases where a property may not be...
View ArticleIntroduction to gRPC
1. Introduction gRPC is a high performance, open source RPC framework initially developed by Google. It helps in eliminating boilerplate code and helps in connecting polyglot services in and across...
View ArticleJava Weekly, Issue 189
Here we go… 1. Spring and Java >> Function-Oriented Programming with Spring Cloud Function Framework [infoq.com] Spring Cloud Function is a new project that embraces working with functions –...
View ArticleInject Parameters into JUnit Jupiter Unit Tests
1. Overview Prior to JUnit 5, to introduce a cool new feature, the JUnit team would have to do it to the core API. With JUnit 5 the team decided it was time to push the capability to extend the core...
View ArticleQuick Guide to the Spring @Enable Annotations
1. Overview Spring comes with a set of @Enable annotations that make it easier for developers to configure a Spring application. These annotations are used in conjunction with the @Configuration...
View ArticleIntroduction to NoException
1. Overview Sometimes try/catch blocks can result in verbose or even awkward code constructs. In this article, we’ll focus on NoException which provides concise and handy exception handlers. 2. Maven...
View ArticleKotlin and Tail Recursion
1. Introduction Some algorithms work best when implemented in a recursive manner – where a computation is based on a simpler form of the same computation. In most programming languages, there is a...
View ArticleIntroduction to Eclipse Collections
1. Overview Eclipse Collections is another improved collection framework for Java. Simply put, it provides optimized implementations as well as some additional data structures and features which are...
View ArticleJava 9 java.util.Objects Additions
1. Introduction The java.util.Objects class has been part of Java since version 1.7. This class provides static utility methods for objects which can be used to perform some of the everyday tasks like...
View ArticleSpring Batch using Partitioner
1. Overview In our previous introduction to Spring Batch, we introduced the framework as a batch-processing tool. We also explored the configuration details and the implementation for a...
View Article