Pesticide: A library to write Domain-Driven Tests

Ladybug — a natural pesticide. https://pixabay.com/users/cocoparisienne-127419/


See how the new compiler can make Kotlin run faster

Photo by Alex Holyoake on Unsplash

Quick introduction

Since Java 1.3 HotSpot contains two Just In Time…



Exploring the performance improvements of new Inline Types

https://pixabay.com/photos/fantasy-beautiful-dawn-sunset-sky-3077928/


Understanding how tailrec keyword works and how to take advantage of recursion in Kotlin

Image credits: https://pixabay.com/illustrations/fractal-abstract-red-white-stripes-542155/
  • How to solve a problem using recursion
  • How to transform Head Recursion into Tail Recursion
  • The tailrec keyword and how it’s translated in ByteCode
  • How to implement the Y-Combinator in Kotlin


How to take advantage of Kotlin special Types

Image credits: https://pixabay.com/photos/tori-japanese-shrine-torii-1976609/



An investigation inside how Kotlin let you use Java collections as if they were implementing Kotlin interfaces

“Only heavens are immutable” — Aristotle

Part I — the surprise

It started with a (mostly) harmless piece of code.

public interface MutableList<E> : List<E>, MutableCollection<E> {...}


How to use Extension Functions and Properties to improve the readability of your code

To Extend or Not To Extend?


And other useful tricks of Implementation By Delegation

Another kind of multiple inheritance…

Uberto Barbini

JVM and Kotlin independent consultant. Passionate about Code Quality and Functional Programming. Author, public speaker and OpenSource contributor.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store