Kotlin
These posts are all related to Kotlin and learning Kotlin.
November 28, 2023
Spring Cache
The other day I’m trying to get the cache in Spring to cache a value.
ReadSeptember 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.
ReadSeptember 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.
ReadApril 2, 2020
Use OpenCV with OpenRNDR
Friend, let me tell you something, you too can use OpenCV in your OpenRNDR project!
ReadMarch 31, 2020
Kotlin Folder Got To Have It
I thought it was just a part of Gradle tutorial. Who knew you needed it?
ReadMarch 23, 2020
Build OpenCV for Java/Kotlin on macOS
I soon discovered there was more to it than I thought.
ReadMarch 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.
ReadFebruary 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?
ReadFebruary 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!
ReadFebruary 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.
ReadFebruary 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.
ReadFebruary 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