-
Injecting dependencies in classes not supported by Hilt (Hilt Part 4)

Injecting dependencies into classes not directly supported by Hilt is a crucial skill for Android developers. In this blog, I demystify this process through two practical examples. First, we delve into injecting dependencies into an Adapter, a common challenge in Android app development. Next, we explore how to achieve the same in a custom class,…
-
Kotlin Inline Functions

Discover how Kotlin’s inline functions revolutionize coding efficiency. Learn how they overcome memory overhead, navigate limitations, and leverage powerful features like non-local returns, crossinline annotation, noinline annotation, reified parameters, and more. Dive into this blog and elevate your Kotlin coding journey! 📚💻
-
Hilt Component classes and their scopes (Hilt Part 3)

Explore the intricate world of Hilt’s Component Classes and Scopes in our latest blog. 🏗️ Delve into the architecture that drives dependency injection, understanding how these components organize your app’s structure. 📊 Discover the scope of each component, from singleton to custom scopes, and learn how they govern the lifecycle of your app’s objects. 🔄
-
Anonymous and Higher Order Functions

Discover the magic behind anonymous functions in Kotlin. Learn how to create them, use the “it” keyword, and simplify your code with implicit returns. Dive into the world of type inference, explore clever tricks like the underscore for unused variables, and grasp the concept of higher-order functions. Join me on this exciting journey of mastering…
-
Use of Binds and Provides in Hilt (Hilt Part 2)

🔗 Dive into the world of dependency injection with this blog, unlocking the art of using ‘binds’ and ‘provides’ in Hilt. 🛠️ Discover the strategic nuances of when to harness each approach, ensuring optimized dependency management. 🎯 And that’s not all – uncover the power of qualifiers in dependency injection, streamlining precision in your codebase.…
-
Kotlin Functions

Explore the essence of Kotlin functions in our concise blog! Learn about function headers and their components, master default argument assignment, and embrace the simplicity of single expression and unit functions. Discover the power of named function arguments and the expressive “Nothing” type. Elevate code organization with file level functions and unleash the hidden potential…
-
Basics of Dependency Injection in Android using Hilt (Hilt Part 1)

Explore the world of dependency injection in this blog as we delve into its definition, types, and the process of setting up Hilt in Android. Discover how to seamlessly implement Hilt into your Android application code for enhanced efficiency and maintainability.
-
Kotlin Conditionals

🚀 Embark on a coding odyssey through Kotlin’s core concepts in this blog! 🌟 Unveil the dynamic duo of if/else and when conditionals, steering your code’s flow with finesse. Delve into Kotlin’s unique ability to craft expressive conditional expressions, adding an elegant layer to your code. Then, navigate the realm of comparison and logical operators,…
-
Battery Optimization (Part 2)

Unlock the secrets to optimizing the three vital request types in applications: user-initiated, app-initiated, and server-initiated requests. Discover powerful techniques to enhance the performance and responsiveness of your application, ensuring a seamless user experience across the board.
-
Kotlin variables and types

Discover the art of defining and declaring variables in Kotlin, empowering your code with flexibility and precision. Delve deeper into the realm of Java Primitive Types in Kotlin, uncovering the intriguing choice of reference types over primitives, and unraveling the performance-driven rationale behind it. 🧠 Navigate the intricacies of type checking and inference, witnessing how…