Harshit Sinha·Oct 6The Java Virtual Machine Has No Idea Generics ExistHow Java tricked its own Virtual Machine using Generics & Type Erasure to bring compile-time type safety to billions of devices and why…
Harshit Sinha·Sep 22The Anatomy of an Open-Source AI ModelA developer-friendly guide to understanding open-source AI models
Harshit Sinha·Sep 8Implicit Metadata Propagation in Kotlin CoroutinesLeverage custom CoroutineContext elements to route user journey tags and analytics metadata without parameter clutter.
Harshit Sinha·Sep 7Stop Overriding onCleared(): Clean Up Android ViewModels with AutoCloseableKeep your ViewModels clean by leveraging the same lifecycle API that powers viewModelScope under the hood.A response icon1A response icon1
Harshit Sinha·Sep 2When a Static Retrofit Request Body Needs Runtime FieldsHow to add runtime-defined fields to a Retrofit request while keeping the known part of your API contract strongly typed.
Harshit Sinha·Jul 29Kotlin Coroutines Are Cooperative, Not Preemptive (And Why It Matters)The “lightweight thread” metaphor is a double-edged sword. Here is why assuming coroutines behave like OS threads leads to CPU starvation…
Harshit Sinha·Jul 28Kotlin Inlining Masterclass: inline, noinline, & crossinline DemystifiedIf you’ve spent any time writing Kotlin, you’ve undoubtedly come across higher-order functions — functions that take other functions as…
Harshit Sinha·Jul 7The 4 Function Types Every Developer Should MasterPredicates, selectors, comparators, and transformers aren’t just lambdas — they’re reusable abstractions that appear in almost every modern…
Harshit Sinha·Jun 22Beyond the Hype: The Fundamental Architecture Difference Between CPUs and GPUsWhenever someone says, “GPUs are far better than CPUs,” they usually mean that GPUs can perform massive amounts of parallel computation…