SupportWriter space ↗
A JOURNAL ABOUT TECHNOLOGY

Learn something new.
Write. Share.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.

1967 notes & counting ↙
EDITOR’S PICK ↗
Pentesting

Planning Your First Web Application Pentest: Scope, Safety, and Evidence

Build a focused web pentest plan with clear authorization, realistic objectives, controlled testing, and evidence that developers can use.

D Putu Adi Guna Permana · 3 min read
FOR YOUR CURIOSITY

Latest notes.

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
KOTLIN / NOTES</>↗
Kotlin28 Jun 2026

How do I use run, apply, also, and with for cleaner Kotlin code?

In Kotlin, run, apply, also, and with are scope functions. They help make code cleaner by giving you a temporary scope around an object. The main differences are: Function Object reference Returns Best used for apply this The original object Configuring an object also it The original object Side effects, logging, validation run this Lambda […]

Wayan · 4 min read
KOTLIN / NOTES</>↗
Kotlin26 Jun 2026

How do I throw an exception when a value is null using ?: throw in Kotlin?

Use Kotlin’s Elvis operator ?: with throw on the right-hand side: val value: String? = getNullableValue() val nonNullValue: String = value ?: throw IllegalArgumentException("value must not be null") Because throw is an expression in Kotlin, it can be used after ?:. Example fun printLength(text: String?) { val nonNullText = text ?: throw IllegalArgumentException("text must not […]

Wayan · 1 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.