Kotlin takes Type-Inference to the next level (at least in comparison to Java) which is great, but there’re scenarios, in which it can backfire on us. Read more
In this article, we continue where we left off and focus solely on error detection for Hamming codes.
Hamming Error Correction with Kotlin – part 1
Hamming code is one of the Computer Science/Telecommunication classics.
In this article, we’ll revisit the topic and implement a stateless Hamming(7,4) encoder Read more
Handling checked exceptions in lambda expressions is often frustrating. Luckily, there is a type inference rule that we can exploit… Read more
In this short article, we will have a look at how we can bypass Kotlin’s native null-safety with sun.misc.Unsafe, and see why it can be dangerous even if we are not Read more
The tricky thing about working with PriorityQueues is that, ironically, they don’t always behave according to the PriorityQueue semantics. Read more
The peek() method from the Java Stream API is often misunderstood. Let’s try to clarify how it works and when should be used.
Stream<T> peek(Consumer<? Read more
Vavr is now a must-have for every modern Java 8+ project. It encourages writing code in a functional manner by providing a new persistent Collections API along with a set Read more