Kotlin: Sandbox Projects

With Python you easily have a whole group of small test programs within a single folder, which provides a simple 'sandbox' environment to try tests and experiments that go beyond what can be done in the Idle REPL.  This page describes how to create Kotlin 'sandbox' project that provides a simple solution to creating Kotlin… Continue reading Kotlin: Sandbox Projects


Gradle, Maven, Ant, other build tools and History

Introduction While the components of a python program are installed with pip install or similar, the components of any compiled program (such as kotlin) need to be combined together or 'built' using a build tool. This page gives an overview of build tools, while other pages in the build section of this site explain how… Continue reading Gradle, Maven, Ant, other build tools and History

Closures, callbacks, Lambdas and Lambda parameters

Introduction. Previous pages have introduced the concept of lambdas and closures, and explained how the concept of the closure relates to methods, static and class methods in both python and kotlin.  This page builds on the concept of lambdas and closures, and provides more details on the workings in kotlin, and how this differs from… Continue reading Closures, callbacks, Lambdas and Lambda parameters

Gradle Kotlin DSL 1.0: Basic App Build

Contents: Kotlin DSL list of other pagesBuild Basics in Gradle Plugins Dependencies and Artifact Repositories A Simple Practical ExampleVarying the Source Locations: SourceSetsApplicationTesting - JUnitlocal jars as dependencies Build Basics with Gradle. The build file prepares a configuration for gradle and for any optional extra build tools.  The basic configuration for a build requires: what… Continue reading Gradle Kotlin DSL 1.0: Basic App Build

Building with Gradle Kotlin DSL 1.0

Big News!  (Aug 2018) After what seems like the longest time, Gradle support for using kotlin to drive gradle builds is now at version 1.0.  This is the best time for anyone to move to gradle.  This page is an introduction to gradle, using kotlin DSL What is a build tool? Which Build Tool? Basic… Continue reading Building with Gradle Kotlin DSL 1.0

Building in Intellij IDEA

This program is relevant for building your first "hello world" and first sample kotlin apps.  However, once you have even hello world running, it is recommended now to move to gradle for building, even when building with Intellij. The topics for this page: Introduction: why use Intellij at all. The Roles on an IDE What… Continue reading Building in Intellij IDEA

Kotlin code sharing among platforms

When you try to deal with the across platform codes, you need to solve 2 things, one is what to share, the other is the architecture of how to share the code. Different languages have different techniques to the second problem, but in Kotlin, you can use multiplatform projects to share the code.  With kotlin… Continue reading Kotlin code sharing among platforms