Kotlin

These posts are all related to Kotlin and learning Kotlin.

December 6, 2023

Spring Cache Quick Guide

Spring Cache is simple but still has a few tricks

Read

November 28, 2023

Spring Cache

The other day I’m trying to get the cache in Spring to cache a value.

Read

September 15, 2021

JaCoCo Doesn't Like New Version of Kotlin

I recently ran into a spot of trouble with JaCoCo after upgrading to a new version of Kotlin.

Read

September 15, 2021

Determining Generic Type

Generics need a way to know the generic type it's working. This seems obvious when you say but building an API that reasonably makes this happen can be tricky.

Read

April 2, 2020

Use OpenCV with OpenRNDR

Friend, let me tell you something, you too can use OpenCV in your OpenRNDR project!

Read

March 31, 2020

Kotlin Folder Got To Have It

I thought it was just a part of Gradle tutorial. Who knew you needed it?

Read

March 23, 2020

Build OpenCV for Java/Kotlin on macOS

I soon discovered there was more to it than I thought.

Read

March 8, 2020

When Type Inference Doesn't Cut It

I thought I had this covered by creating the `Event` interface and making each implement this interface. No dice, I starting getting `Type mismatch` errors from Intellij.

Read

February 19, 2020

First Attempt At Collections

Currently, the Dispatcher only supports a subscriber so the first assertion failed since the first subscriber was replaced by the second. How was I going to create a list of subscribers inside of the Dispatcher?

Read

February 18, 2020

Shorthand Function Syntax

I'd seen some goofy syntax referred to in Kotlin posts and books and today I figured out how to use it!

Read

February 17, 2020

Lambda Sans Return

I created a lambda in Kotlin the other day and was perplexed that I couldn't avoid giving it a return type.

Read

February 15, 2020

I'll Receive You Some Test Events!

I ran into some trouble tonight try to get Intellij to run all my tests. It kept saying "Test events were not received". I scratched my head and wondered aloud what could be the cause of this.

Read

February 13, 2020

Single Expression Functions

Many of the functions in the Kotlin standard library are implemented as Single Expression Functions. I started wondering how I could use them in my own code.

Read

Sign up for our newsletter