SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

KOTLIN / NOTES</>↗
Kotlin29 Jun 2026

How do I use Kotlin’s null safety features with collections and maps?

Kotlin’s null safety works especially well with collections and maps because Kotlin lets you distinguish between: a nullable collection: List<String>? a collection containing nullable values: List<String?> both: List<String?>? The same idea applies to maps. 1. Nullable collection vs nullable elements val names: List<String>? = null val nicknames: List<String?> = listOf("Ana", null, "Sam") val maybeNicknames: List<String?>? […]

Wayan · 6 min read
KOTLIN / NOTES</>↗
Kotlin28 Jun 2026

How do I chain multiple scope functions together in Kotlin?

In Kotlin, scope functions can be chained because each one returns either: the receiver object: also, apply the lambda result: let, run, with The key is understanding what each function returns. Common chaining pattern val result = User("Alice") .also { println("Created user: $it") } .apply { name = name.uppercase() } .let { "User name is […]

Wayan · 2 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.