kotlin

Type casting in Kotlin: Unsafe vs. safe

Discover what type casting is, how Java and Kotlin approach it, which operators Kotlin provides, and how, when, and why to use them.
Antonello Zanini
7 min read

Building cross-platform mobile apps with Kotlin Multiplatform

With KMM, you can write the core of your app in Kotlin and use it in Android and iOS applications. You only need to...
Asutosh Nayak
8 min read

A guide to regular expressions in Kotlin

Learn how to use regular expression as a means of validation in Kotlin by building a simple app to validate a mobile number.
Muyiwa Femi-Ige
5 min read

How to use compareTo() and other string actions in…

Let's look at how to compare Kotlin strings and other ways to work with stored string values in this statically typed language.
Kingsley Ubah
6 min read

How to extend classes in Kotlin without using inheritance

In this tutorial, we compare and contrast inheritance and Kotlin extensions to understand the pros and cons of each.
Ivan Garza
4 min read

Test and debug Android apps like a pro with…

In this detailed tutorial, learn how to easily and powerfully test and debug your Android apps using Charles Web Proxy.
Emmanuel Enya
6 min read

Linting in Kotlin: A complete guide

Lint tools are used to help find errors and avoid poorly written code. Learn about linting in Kotlin and how you can get started...
Muyiwa Femi-Ige
6 min read

Understanding Kotlin generics

Learn about Kotlin generics, a way of writing our code in a flexible and safe with as few compile-time errors as possible.
Bianca Dragomir
9 min read

Comparing Kotlin scope functions

There are five types of scope functions in Kotlin that execute a block of code within the scope of an object: let, with, run, apply, and also.
Peter Aideloje
6 min read

A guide to using the Map interface in Kotlin

In this article, you will learn about the Map interface in Kotlin as well as its usage and association with coding examples.
Sneh Pandya
4 min read

Generic persistent data storage in Android using Jetpack DataStore

Learn how to use the Jetpack DataStore API, a powerful and more performant persistent data storage alternative to the SharedPreferences API.
Emmanuel Enya
6 min read

Guide to using sealed classes in Kotlin

Kotlin's sealed classes can be more performant and flexible than enum or abstract classes. Learn how to use them in this tutorial.
Joseph Kimani
10 min read