Blog

All blog posts

By Viktoriia Domukhovska
August 5, 2023

Kotlin Sealed Class: Exploring Powerful Abstractions

The sealed class is a unique and forced construct that lets creators designate bounded class pecking orders with a bounded bunch of subclasses. It brings additional control and flexibility to the class-based paradigm, enabling the creation of strong and expressive code. We’ll go through the concept of sealed classes in detail, including their objective, use, and privileges. 

By Viktoriia Domukhovska
July 27, 2023

Kotlin Extension Function: How to Create and Use Them

Extension functions in Kotlin allow you to add more functionality without changing the source code of existing classes. Let’s go over the basics and see how to create and use extension functions in your project.

By Viktoriia Domukhovska
Updated: August 28, 2023

How to get the class in Kotlin? – getClass()

If you’re a Kotlin developer, you may have encountered instances when you needed to access the class facility of a specific sample. In Java, you typically use the .getClass() method to obtain the class object. However, Kotlin provides a more concise and intuitive way to achieve a similar result. This article will explore different approaches to getting the class in Kotlin and understand the alternative of .getClass().

By Viktoriia Domukhovska
Updated: July 22, 2023

Enum Classes

Enum classes are a vital feature in Kotlin that allows you to determine a kit of constants, also noted as enums, in a type-safe manner. In this article, we’ll look at the concept of Kotlin enum class, how to utilize them, and some helpful techniques that go with them.

By Viktoriia Domukhovska
Updated: July 12, 2023

Initializing by lazy and lateinit variables in Kotlin

In Kotlin, the lateinit and by lazy keywords ensure convenient ways to handle parameter beginning. They ensure flexibility and efficiency when working with variables that are not always available or are expensive to calculate. This article explores the concepts of lateinit and by lazy in Kotlin, their differences, and when to use each.

By Viktoriia Domukhovska
July 4, 2023

Android RecyclerView in Kotlin

RecyclerView is a UI (User Interface) component in Android development that provides a flexible and efficient way to display large data sets in a scrollable list or grid format. It is an improved version of the older ListView and GridView components, offering better performance and more advanced features.

By Viktoriia Domukhovska
July 4, 2023

Kotlin Flow in Android

A Kotlin Flow is a crucial constituent of this ecosystem. It resembles reactive streams and defines available methods and functions for producing, manipulating, and processing non-synchronous information streams.

By Viktoriia Domukhovska
July 4, 2023

Kotlin when expression

In this tutorial, you will learn about Kotlin when{} block use cases. If you are just learning Kotlin or want to refresh your knowledge, this information will be useful for you.

By Viktoriia Domukhovska
July 4, 2023

How to Convert Kotlin to Java in Android Studio

If you are working on an Android app development project, you might have encountered a situation where you need to transform Kotlin code into Java code. In this article, we will discuss how to convert Kotlin code to Java code in Android Studio, which provides a built-in feature for this purpose, as the official IDE for Android development.