Kotlin Basics II – If you could show me some code, that’d be great


  This entry is part 3 of 3 in the series Learn me some Kotlin


Continuing from where we left off, this is the second part covering the basic syntax and constructs in Kotlin. In this article we’ll cover:
. Using control structures and conditional expressions
. Laying out the source code: packages (and directories)
Continue reading Kotlin Basics II – If you could show me some code, that’d be great

Kotlin Basics I – If you could show me some code, that’d be great


  This entry is part 2 of 3 in the series Learn me some Kotlin


In the previous installment of the series we tried to answer what’s Kotlin all about. Now before we start looking under the bonnet, let’s just take it for a spin a bit.

We’ll go through several code snippets to get a taste of Kotlin and ease into its syntax. In fact, syntax is one of the several things where Kotlin excels – it’s lean and compact.

The article is split into two parts the first of which (this one) covers declaring the basic elements:
. functions,
. variables and
. classes and properties
Continue reading Kotlin Basics I – If you could show me some code, that’d be great

Kotlin: JetBrains’ JVM goodness


  This entry is part 1 of 3 in the series Learn me some Kotlin


This is the debut of a new series called Learn me some Kotlin. The series is aimed at beginner to intermediate Java developers like myself (I’m writing these articles as I learn the language) although it will be easily understandable by anyone with a prior exposure to an object-oriented language.

Kotlin is a programming language targeting the Java platform. It hit version 1.0 in February this year (1.0.3 is the latest stable version) but has been in heavy use at JetBrains (the makers of the language) for several years now (long before they open-sourced it in 2011).

Why Kotlin

Why is Kotlin a worthy contender in an already crowded JVM space? Well, Kotlin positions itself as a concise, safe and pragmatic language for the JVM with a focus on interoperability with Java.
Continue reading Kotlin: JetBrains’ JVM goodness