© 2022 Hashnode
#kotlin-beginner
What is Kotlin Kotlin is general purpose, statically types and open source programming language. It uses JVM. Now a days majorly used to develop Android Apps can also be used in backend Ktor and have …
Trailing lambda is something new in Kotlin that other programming language doesn't have. At least, I do not aware of any other programming language that supports it. When you see code like this: var …
Starting Today I will show you guys how easy is to start and running a Spring Boot application. So let's go. First we will access the Spring initialize to start our first project. Follow the steps:…
In Jetpack compose, we can clip our view with shapes such as Rounded rectangles, circles, etc. But what if we need to have our own shapes? Here comes to our rescue Paths. Let us take the below exampl…
Properties and fields terminologies in Kotlin sometimes is a bit confusing because technically, Kotlin doesn't have Fields. You can't declare a field. Everything is Properties! However, to avoid confu…
I found this 5 tools to make android development more fun. 1. JsonToKotlinClass As it named, it turns json into kotlin’s data class with several configurations, so you don’t need to manually write it.…
In Kotlin, you have one primary and many secondary constructors. Primary Constructor This is primary constructor with one parameter. class Example constructor(private val param1: String) { init { …
Whenever we want to return two values from a function, we make classes for that but creating too many classes can make your code inefficient. So, Instead of creating classes for two or more values, y…
I totally missed this Kotlin awesome feature in my previous post - Complete C# to Kotlin Syntax Comparisons. I came to be aware of this smart cast only after 8 months of Kotlin development, and I migh…
In my Last post I explained how to create a custom toast. In this post I will explaining how to make a the toast clickable. I will be creating a brand new toast, so lets begin. GET STARTED Open your …