Remove functional-error-handling-in-kotlin-part-3
article thumbnail

Functional Error Handling in Kotlin, Part 3: The Raise DSL

Rock the JVM

By Riccardo Cardin It’s time to end our journey on functional error handling in Kotlin with the new features introduced by the Arrow library in version 1.2.0, We’ll mainly focus on the Raise DSL, a new way to handle typed errors using Kotlin contexts. This article is part of a series.

article thumbnail

Kotlin Context Receivers: A Comprehensive Guide

Rock the JVM

By Riccardo Cardin This article will explore a powerful feature of the Kotlin programming language called context receivers. If you’re a Kotlin developer looking to write cleaner and more expressive code, context receivers are a tool you’ll want in your toolbox. Make sure you have Kotlin version 1.8.22 withType ().

Scala 52
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

The Ultimate Guide to Java Virtual Threads

Rock the JVM

Riccardo is a proud alumnus of Rock the JVM, now a senior engineer working on critical systems written in Java, Scala and Kotlin. Here, we will just show the most important parts. class ); However, we won’t use the logger object directly in our example but the following custom function log : static void log ( String message ) { logger.

Java 145
article thumbnail

Seamlessly Swapping the API backend of the Netflix Android app

Netflix Tech

We do this orchestration on our endpoint code using a library provided by our API team, which exposes an RxJava API to handle the downstream calls to the various backend microservices. Image taken from a previously published blog post As you can see, our code was just a part (#2 in the diagram) of this monolithic service.

Java 93
article thumbnail

Object equality in Java and Kotlin

Booking.com Engineering

Introduction We are going to review the subtleties and complications of trying to compare objects for equality in Java, where the problem originates, why it is important, Kotlin’s approach on the problem and some recommendations on the topic. At this point, we already encounter a difference in terms of performance.

Java 52
article thumbnail

Top 10 Must-Have IoT Skills in 2024 & How to Develop Them?

Knowledge Hut

can handle multiple requests and events without blocking the main thread. You must have the necessary skills required for the Internet of Things and competencies to thrive in this continuously changing sector. It offers endless possibilities for creating smart and connected solutions that can improve lives, businesses and societies.

article thumbnail

Functional Error Handling in Kotlin, Part 1: Absent values, Nullables, Options

Rock the JVM

Riccardo is a proud alumnus of Rock the JVM, now a senior engineer working on critical systems written in Scala and Kotlin. If you’d like to watch the video form of this article, please enjoy: The Kotlin language is a multi-paradigm, general-purpose programming language. Kotlin offers a lot of different methods to handle errors.