Kotlin
-
Testing Kotlin with Spock Part 3 – Interface default method
Kotlin allows you to put method implementation in an interface. The same mechanism can be found in Java interfaces as…
Read More » -
Kotlin DSL: from Theory to Practice
I’ll try to explain the language syntax as simple as possible, however, the article still appeals to developers who consider…
Read More » -
Testing Kotlin with Spock Part 2 – Enum with instance method
The enum class with instance method in Kotlin is quite similar to its Java version, but they are look a…
Read More » -
Kotlin and JUnit 5 @BeforeAll
Introduction In Kotlin, classes do not have static methods. A Java equivalent semantic can be provided to callers using the concept of…
Read More » -
Testing Kotlin with Spock Part 1 – Object
The object keyword in Kotlin creates singleton in a very convenient way. It can be used for example as a…
Read More » -
Defending Public-By-Default in Kotlin
Some people have spoken against Kotlin’s decision to make classes, methods, etc. public by default (when no visibility modifier is…
Read More » -
Kotlin – Reified type parameters sample
This post walks through a sample that demonstrates Kotlin’s ability to cleverly reify generic type parameters. So consider first a world…
Read More » -
Kotlin – Tuple type
It is very simple to write a Tuple type with the expressiveness of Kotlin. My objective expressed in tests is the following:…
Read More » -
Kotlin – Try type for functional exception handling
Scala has a Try type to functionally handle exceptions. I could get my head around using this type using the…
Read More »