MMayank Kumar·14h agoWhen Does the init Block Run in Kotlin?Kotlin init blocks explained simply: when they run, why the order of properties matters, lateinit in init, secondary constructors, and parent classes.8 min read·imayankkumar.hashnode.dev
MMayank Kumar·6d agoWhat Is the Difference Between a Backing Field and a Backing Property in Kotlin?Backing field vs backing property in Kotlin: what field is, why a setter can crash with StackOverflowError, the _uiState pattern, and Kotlin 2.4 explicit backing fields.7 min read·imayankkumar.hashnode.dev
MMayank Kumar·Nov 26What Is a Value Class in Kotlin, and When Does It Create an Object?What a Kotlin value class is, what the compiler turns it into, and the exact cases where it creates a real object.7 min read·imayankkumar.hashnode.dev1
UUdara Anuruddhika Hettiarachchi·Nov 25How to Check Android AAB 16 KB Page Size Alignment Before Play Console Rejects ItGoogle Play's 16 KB memory page size requirement, spot unaligned native .so libraries, and fix NDK, AGP, and third-party SDK issues before uploading.5 min read·aabready.hashnode.dev
MMayank Kumar·Nov 21When Should You Use an Enum Class in Kotlin?What an enum class is, how to add values and behavior to it, why entries replaced values(), and why saving ordinal or name can break your saved data.8 min read·imayankkumar.hashnode.dev
MMayank Kumar·Nov 17Inner vs Nested Class in Kotlin: What Is the Difference?A nested class has no link to its outer object. An inner class keeps one. What the compiler generates for each, and how that hidden link can leak an Activity.8 min read·imayankkumar.hashnode.dev
MMayank Kumar·Nov 16When Should You Use a Sealed Class in Kotlin?What a sealed class is, where its subclasses are allowed to live, why when needs no else, and how to choose between a sealed class and a sealed interface.9 min read·imayankkumar.hashnode.dev
MMayank Kumar·Nov 14Kotlin Data Class vs Regular Class Explained SimplyWhat the data keyword really adds to a Kotlin class, the rules it comes with, why copy() is shallow, and what the compiler writes for you in bytecode.8 min read·imayankkumar.hashnode.dev
MMayank Kumar·Nov 9Kotlin Any, Unit and Nothing Explained SimplyWhat Any, Unit and Nothing mean in Kotlin, how they differ from Java's Object and void, and why Android code is full of () -> Unit and UiState<Nothing>.8 min read·imayankkumar.hashnode.dev
CCharles Hartmann·Oct 16Ten quick edits should not queue ten syncs: unique work in WorkManager, done rightEnqueue a sync every time a note is saved and a burst of edits queues a burst of uploads. WorkManager's unique work, the right ExistingWorkPolicy, and retry classification that returns retry() only for transient errors keep an offline-first app from syncing against itself.7 min read·homelabtherightway.hashnode.dev