Tag: Kotlin

Programming with Kotlin in Visual Studio Code

Kotlin is all the rage now that it has been deemed a first-class programming language for developing Android apps. Actually, it’s been raging all on its own for a while now, as evidenced by the Stack Overflow Trends chart below. Kotlin Gains in Popularity (source:...

Writing Swift-Friendly Kotlin Multiplatform APIs ??? Part I: Intro

Kotlin Multi-Platform Mobile (KMM) is awesome… for Android developers. Using or coding a KMM library is not much different from using a regular Kotlin library like Jetpack Compose, OkHttp, and whatnot. However, for iOS developers, the story can be different. Therefore, it is essential to get ...

Top Kotlin Interview Questions You Must Know in 2023

Hey there! This post will walk through some common Kotlin interview questions any developer should know in 2023. Whether you’re getting ready for an interview or simply want to test your skills, try answering these questions to challenge yourself! Introduction Kotlin is Goog...

Data Objects in Kotlin

Data objects are a new Kotlin language feature introduced in version 1.7.20 and are currently planned to be released in version 1.9. We’ll take a closer look at what they are and what issue they are trying to solve. What issue are data objects solving? Below we have a typi...

Currying in Kotlin

Currying is a programming technique that involves transforming a function that takes multiple arguments into a series of functions that take a single argument. In other words, it’s a way of breaking down a complex function into smaller, simpler functions that can be composed together...

Mastering Kotlin: A Collection of Essential Functions Every Developer Should Know with Examples ??? ??? -Part 4 -Flattening

Flattening in general is removing the nestedness in a collection. Consider you are given a list of lists. If you want to remove all child lists and get their elements into one single-level list, you need to flatten that list. Let’s begin with : .flatten() This is the most simple w...

Kotlin Performance Tuning: 20 Best Practices You Should Know

Performance is a critical metric that can make or break your application. While Kotlin offers a plethora of features to make development easier, knowing how to leverage them for performance can be a game-changer. This article provides 20 tips that will help you write high-performance Kotlin code. ...

Kotlin Functions Every Developer Should Know with Examples

Certainly! Here’s a collection of essential Kotlin functions that every developer should know, along with examples for each function: let: Use let to execute a block of code on a non-null object. val name: String? = "John" name?.let { println(&qu...