Kotlin KeywordsKotlin is a modern programming language that was first introduced by JetBrains in 2011. Since then, Kotlin has gained a lot of popularity among developers due to its concise syntax, null safety, and interoperability with Java. One of the most importa...Apr 26, 2023 路 3 min readblog.mansi.dev
Using Scoped Functions in Kotlin - let, run, with, also, applyNow that almost all Android developers have switched from Java to Kotlin, they are finding how much easier, cleaner, and more concise Kotlin is than Java. Kotlin introduces a number of developer-friendly features for less code, reducing the number of...Mar 22, 2023 路 4 min readblog.mansi.dev
lateinit vs lazy in KotlinIn this blog, we will learn about the lateinit vs lazy properties in Kotlin. In Kotlin, there are two ways to initialize a property that is not available at the time of object creation: lateinit and lazy. Both of these keywords allow you to postpone ...Mar 8, 2023 路 3 min readblog.mansi.dev
Difference between AndroidViewModel and ViewModelIn this blog, we will discuss the difference between AndroidViewModel and ViewModel. In the Android Jetpack architecture components, ViewModel and AndroidViewModel are two classes that are used to manage UI-related data across configuration changes. ...Feb 23, 2023 路 3 min readblog.mansi.dev
How to Make the Firebase Database SDK Work Better With KotlinIn this article, we are going straight to the point. 馃殌 I want to share some extension functions to make your experience with the Firebase Database a little more comfortable with Kotlin. We are going to make reusable code that is also going to avoid ...Feb 13, 2023 路 4 min readblog.mansi.dev