Published in The Pragmatic Programmers·PinnedFrom Objects to FunctionsA Step-by-Step Guide to Designing Applications in a Functional Way — Kotlin5 min read
Published in The Pragmatic Programmers·5 days agoFrom Objects to FunctionsHow to Convert Our Functional Design into Code — Kotlin6 min read
Published in The Pragmatic Programmers·Updated 4 days agoFrom Objects to FunctionsHow to Convert Our Functional Design into Code — Kotlin7 min read
Published in Javarevisited·Jun 4, 2020Beyond Traditional Acceptance TestsPesticide: A library to write Domain-Driven Tests — I am sorry about it, but I neglected this blog recently, the reason is that I’m currently trying to write a book explaining how to write complete applications in a functional way with Kotlin. This is taking a ridiculous amount of time because I need to explain functional programming principles…Kotlin12 min read
Published in Javarevisited·Mar 13, 2020Graal vs C2 who runs Kotlin faster?See how the new compiler can make Kotlin run faster — More than a year ago I wrote a post about GraalVM performance in Kotlin for the Java Advent Calendar 2018. It’s time to re-evaluate the results using the new GraalVM v.20.0 and with both the Community Edition and the Enterprise Edition of GraalVM. You may have heard of Graal, the…Kotlin12 min read
Published in 97 Things·Jan 11, 2020Learn to Love Your Legacy CodeWhat is a legacy system? It is old software that is very hard to maintain, to extend, and to improve. On the other hand, it is also a system that is working and is serving the business, otherwise it would not have survived. Perhaps, when it was first created, a…Software Development3 min read
Published in Javarevisited·Dec 30, 2019Project Valhalla: Fast and Furious JavaExploring the performance improvements of new Inline Types — I wrote this article for the Java Advent Calendar 2019. I am republishing it here with some minor corrections. Project Valhalla is one of the most exciting projects regarding the future of Java and all JVM. It is still in an experimental state, but in this post, we will look…Java11 min read
Published in ProAndroidDev·Oct 2, 2019[Kotlin Pearls 8] Recursion, Tail Recursion and Y CombinatorUnderstanding how tailrec keyword works and how to take advantage of recursion in Kotlin — It is already passed a year since I wrote the first Kotlin Pearl blog post. Thanks to everybody (and you are really a lot) who supported me and clapped or liked my posts. This post will cover: How to solve a problem using recursion How to transform Head Recursion into…Kotlin9 min read
Published in ProAndroidDev·Sep 6, 2019[Kotlin Pearls 7] Unit, Nothing, Any (and null)How to take advantage of Kotlin special Types — It should be apparent, even to the casual reader of this blog, that I really like Kotlin as a language. One of the reasons is its Type Hierarchy, which is both very easy to work with and extremely powerful. …Kotlin8 min read
Published in Javarevisited·Aug 2, 2019Personal Notes from JCrete 2019I’m just returned from @JCreteUnconf, which is an amazing unconference about Java-related technologies in the island of (you guessed) Crete. I’ve already described my previous attendance here. Both the people and the location makes every edition of JCrete an unforgettable event. First of all, thanks to @heinzkabutz and all disorganizers…Java7 min read