Browsing Category

Kotlin

Kotlin is a great fit for developing server-side applications, allowing to write concise and expressive code while maintaining full compatibility with existing Java-based technology stacks and a smooth learning curve.

Document Kotlin Code

KDoc, the language used to document the Kotlin code, equivalent to Java's JavaDoc. KDoc combines the JavaDoc's syntax for block tags (extended to support Kotlin's specific construct) and Markdown for inline markup. Generating the…

Getting Started with Kotlin Coroutines

With version 1.1 of Kotlin comes a new experimental feature called coroutines. The statement means it may get some changes in the upcoming releases of Kotlin. When compiling coroutines in Kotlin 1.1, a warning is reported by default: The…

Pondering over Kotlin Ranges

Range expressions are formed with rangeTo functions that have the operator form .. which is complemented by in and !in. Range is defined for any comparable type, but for integral primitive types it has an optimized implementation. Here…

Null Safety – Kotlin’s Biggest Feature

Null Safety - one of the biggest features of Kotlin's, this feature aims to eliminate the danger of null references. Kotlin's type system is responsible for this by distinguishing references that can hold nullable references and non-null…

Want to Call Javascript from Kotlin

Kotlin, a statically typed language and Javascript, a dynamically typed language, so how are we gonna call Javascript from Kotlin code. The answer to the above is via dynamic types. val dyn: dynamic = ... Inline Javascript…