Posts
All the articles I've posted.
-
Dagger 2 Fundamentals: Module, Component, Scope, and Qualifier Explained
A practical walkthrough of Dagger 2 core concepts — why it exists, how @Module, @Component, @Provides, @Inject, @Singleton, and @Qualifier work, and how compile-time code generation makes it faster than reflection-based DI.
-
Coroutine Dispatchers, Scopes, launch vs async, and Exception Handling in Android
Master Kotlin coroutine dispatchers (Main.immediate vs Main), lifecycle-aware scopes, when to use launch vs async vs withContext, job cancellation, and how exceptions propagate differently in each builder.
-
Kotlin Coroutine Internals: Continuation, CPS, and Why 100k Coroutines Won't Crash Your App
Understand how Kotlin suspend functions work under the hood — the Continuation interface, Continuation Passing Style, why 100k coroutines succeed where 100k threads crash, and how coroutines eliminate idle thread waste.
-
Thread-Safe Singleton in Android: Why Double-Checked Locking Exists
Learn why naive singleton implementations break under multithreading, why synchronized alone is not enough, and how double-checked locking solves the problem correctly.