Shreyas Patilblog.shreyaspatil.dev·Sep 20, 2023Runtime Surprise: Kotlin Breaks !!Non-Nullability Promise on Developer Cheating in Field InitializationHey Kotliners 👋🏻, This is a mini-blog about an issue I faced while working on some JVM-ish stuff with Kotlin. The issue was very stupid to reproduce but it highlighted the importance of a specific concept. The issue 🐛 We are writing a small snippe...Discuss·20 likes·801 readsAll about KotlinKotlin
Romman Sabbirrommansabbir.com·Jul 5, 2023Kotlin: lateinit vs lazyIf get to know something new by reading my articles, don't forget to endorse me on LinkedIn This article introduces the concepts of lateinit and lazy in Kotlin, highlighting their popularity in handling property initialization. The article promises ...Discuss·4 likes·4.0K readsKotlinAndroid
Grant Williamsgreatgrant.hashnode.dev·Feb 7, 2023What Exactly Are Generics In Kotlin?Introduction Generics are an important concept in programming, and they are widely used in modern programming languages, including Kotlin. They provide a way to write code that can be used with multiple types of data, making it more flexible and reus...Discuss·11 likes·84 readskotlin beginner
Grant Williamsgreatgrant.hashnode.dev·Jan 30, 2023Getting Started with KotlinIntroduction I'm guessing you are one of those who are tired of the limitations and verbosity of Java. What if I told you I have a cure for your ache? Because Kotlin is here to revolutionize the way you code. This modern programming language, created...Discuss·121 readskotlin beginner
Carlos Hinostrozaazort.hashnode.dev·Jan 10, 2023Kotlin nullsafetyNullable types El error del billon de dolares La idea es generar los NPE en tiempo de compilación y no en tiempo de ejecución fun main(){ val s1: String = "Nunca soy null" println(s1) } Y si soy null? fun main(){ val s1: Strin...Discuss·6 likes·63 readskotlin nullsafety
Vignesh Prabhuwww.vigneshprabhu.dev·Aug 7, 2021Kotlin Basics - NullBasically, Kotlin attempts to resolve NullPointerException(NPE) by making the data types as nou nullable Variable Declaration If you try to assign a null value to a variable, the following compile error will be thrown by IDE To make the variable nul...Discuss·1 likeKotlin