Innhold om Kotlin
Totalt 53 innlegg
Side 3 av 4
Lists vs. Sequences
The Kotlin library comes with several container types. Two of these are List and Sequence. At the first glance these two look quite similar, but we will look at the differences in this article.
The Kotlin library comes with several container types. Two of these are List and Sequence. At the first glance these two look quite similar, but we will look at the differences in this article.
The ins and outs of Kotlin
Wonder why a MutableList<Cat> isn't a subtype of MutableList<Animal>? Ever seen the "in" and "out" modifiers in Kotlin and wondered what they do? Let's find out!
Wonder why a MutableList<Cat> isn't a subtype of MutableList<Animal>? Ever seen the "in" and "out" modifiers in Kotlin and wondered what they do? Let's find out!
Receivers
Going from Java to Kotlin
We used to have a pure Java application. Then we decided to add some Kotlin code to it, just to try it out. Now there is almost no Java code left. How did that come about? Read on!
We used to have a pure Java application. Then we decided to add some Kotlin code to it, just to try it out. Now there is almost no Java code left. How did that come about? Read on!
Streamlining your functions with Named and Default Arguments
As developers, we spend a considerable amount of time declaring and invoking functions when writing software. Kotlin provides several features that can boost your productivity when working with functions. In this post we'll take a closer look at two of these features; Named Arguments and Default Arguments, and how we might use them to make our Christmas preparations more carefree!
As developers, we spend a considerable amount of time declaring and invoking functions when writing software. Kotlin provides several features that can boost your productivity when working with functions. In this post we'll take a closer look at two of these features; Named Arguments and Default Arguments, and how we might use them to make our Christmas preparations more carefree!
On wavelength with lambdas
Typesafe Error Handling in Kotlin
Overhead from calling? Not with inline!
On the JVM, calling a function or instantiating a class will always incur an overhead, unless the JVM runtime performs some magic. At least, that's how it used to be before Kotlin introduced the inline keyword. This article will give you a quick introduction to this fantastic keyword, and how it can help you!
On the JVM, calling a function or instantiating a class will always incur an overhead, unless the JVM runtime performs some magic. At least, that's how it used to be before Kotlin introduced the inline keyword. This article will give you a quick introduction to this fantastic keyword, and how it can help you!
When we need a concrete generic
While using Java or Kotlin, have you ever needed the actual type of the type parameter in a generic function? Meet reified!
While using Java or Kotlin, have you ever needed the actual type of the type parameter in a generic function? Meet reified!
Coroutines channels🔥 and flow❄️
Disecting the very important details of coroutines
Coroutines intro
Making games with Kotlin!
It’s in the small things
Extension functions
An extension functions is, as the name implies, a function that extends an existing class. The function does this without actually modifying it!
An extension functions is, as the name implies, a function that extends an existing class. The function does this without actually modifying it!