Delegation in Kotlin for Android: A Beginner’s Guide | by Abdul Mughni | Apr, 2025

Delegation in Kotlin for Android: A Beginner’s Guide | by Abdul Mughni | Apr, 2025

Harness the Magic of ‘by’ to Write Cleaner, More Powerful Android Apps Without the Complexity Have you ever asked someone else to do a task for you because they’re better at it? That’s delegation in real life! In programming, it works the same way. Let’s explore how delegation in Kotlin can make your Android apps … Read more

Delegation with By in Kotlin. Deleagation in Kotlin | by HyunWoo Lee

Delegation with By in Kotlin. Deleagation in Kotlin | by HyunWoo Lee

Delegation in Kotlin Photo by Annie Spratt on Unsplash As you use Kotlin, you’ll see and use the by operator often. private val inflater by lazy { LayoutInflater.from(context) } By declaring a property in this way, you can delay the evaluation of the value of property until the first access. Declaring a property in this … Read more

The Secret Art of Delegation

The Secret Art of Delegation

You know you need to delegate. Everyone’s saying it — “delegate more!” — as if delegation is the solution to all of your problems. It could be, actually — if you do it well. It took me 10 years to crack the code, so here’s the blog post I wish I had way back when, … Read more