RxJava StringObservable
1. Introduction to StringObservable Working with String sequences in RxJava may be challenging; luckily RxJavaString provides us with all necessary utilities. In this article, we’ll cover...
View ArticleA Custom Task in Gradle
1. Overview In this article, we’ll cover how to create a custom task in Gradle. We’ll show a new task definition using a build script or a custom task type. For the introduction to the Gradle, please...
View ArticleIntroduction to JSON-Java (org.json)
1. Introduction to JSON-Java JSON (an acronym for JavaScript Object Notation) is a lightweight data-interchange format and is most commonly used for client-server communication. It’s both easy to...
View ArticleKotlin Dependency Injection with Kodein
1. Overview In this article, we’ll introduce Kodein — a pure Kotlin dependency injection (DI) framework — and compare it with other popular DI frameworks. 2. Dependency First, let’s add the Kodein...
View ArticleJava Weekly, Issue 219
Let’s jump right in… 1. Spring and Java >> Monitor your Java application with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java frameworks,...
View ArticleUsing Hamcrest Number Matchers
1. Overview Hamcrest provides static matchers to help make unit test assertions simpler and more legible. You can get started exploring some of the available matchers here. In this article, we’ll dive...
View ArticleInjecting Prototype Beans into a Singleton Instance in Spring
1. Overview In this quick article, we’re going to show different approaches of injecting prototype beans into a singleton instance. We’ll discuss the use cases and the advantages/disadvantages of each...
View ArticleIntroduction to OpenCSV
1. Introduction This quick article introduces OpenCSV 4, a fantastic library for writing, reading, serializing, deserializing, and/or parsing .csv files! Below, we’ll go through several examples...
View ArticleWorking with JSON in Groovy
1. Introduction In this article, we’re going to describe and see examples of how to work with JSON in a Groovy application. First of all, to get the examples of this article up and running, we need to...
View ArticleContent Analysis with Apache Tika
1. Overview Apache Tika is a toolkit for extracting content and metadata from various types of documents, such as Word, Excel, and PDF or even multimedia files like JPEG and MP4. All text-based and...
View ArticleA Guide to Jdbi
1. Introduction In this article, we’re going to look at how to query a relational database with jdbi. Jdbi is an open source Java library (Apache license) that uses lambda expressions and reflection...
View ArticleThe @JvmSynthetic Annotation in Kotlin
1. Introduction Kotlin is a programming language for the JVM and compiles directly to Java Bytecode. However, it’s a lot more concise than Java, and certain JVM features don’t directly fit into the...
View ArticleAssertions in JUnit 4 and JUnit 5
1. Introduction In this article, we’re going to explore in details the assertions available within JUnit. Following the migrating from JUnit 4 to JUnit 5 and A Guide to JUnit 5 articles, we’re now...
View ArticleMaven Dependency Scopes
1. Introduction Maven is one of the most popular build tools in the Java ecosystem, and one of its core features is dependency management. In this article, we’re going to describe and explore the...
View ArticleA Guide to Unirest
1. Overview Unirest is a lightweight HTTP client library from Mashape. Along with Java, it’s also available for Node.js, .Net, Python, Ruby, etc. Before we jump in, note that we’ll use mocky.io for...
View ArticleChain of Responsibility Design Pattern in Java
1. Introduction In this article, we’re going to take a look at a widely used behavioral design pattern: Chain of Responsibility. We can find more design patterns in our previous article. 2. Chain of...
View ArticleJava Weekly, Issue 220
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleHamcrest Text Matchers
1. Overview In this tutorial, we’ll explore Hamcrest Text Matchers. We discussed Hamcrest Matchers in general before in testing with Hamcrest, in this tutorial we’ll focus on Text Matchers only. 2....
View ArticleHamcrest File Matchers
1. Overview In this tutorial, we’ll discuss Hamcrest File Matchers. We discussed Hamcrest Matchers in general before in the previous Testing with Hamcrest article. In the next sections, we’ll focus...
View ArticleGuide to Externalizable Interface
1. Introduction In this tutorial, we’ll have a quick look at java’s java.io.Externalizable interface. The main goal of this interface is to facilitate custom serialization and deserialization. Before...
View Article