Kotlin Mega Tutorial

Kotlin Mega Tutorial

A Productive and Pragmatic Language A programming language is usually designed with a specific purpose in mind. This purpose can be anything from serving a specific environment (e.g, the web) to a certain paradigm (e.g. functional programming). In the case of Kotlin the goal is to build a productive and pragmatic language, that has all […]

Kotlin when: A switch with Superpowers

Kotlin when: A switch with Superpowers

There are two kinds of innovation: new perspectives that change how we look at things and pragmatic improvements that change how we do things. Kotlin is full of these pragmatic improvements, getting its user a language that just feels good to use. One of the most useful improvements, especially if you come from Java, is […]

Developing web applications with Javalin and Kotlin

Developing web applications with Javalin and Kotlin

This article will walk you through how to develop web applications in Kotlin using Javalin. Javalin and Kotlin work well together, as they are both very pragmatic and focus on getting things done quickly and with a small amount of code. We will start with a simple “Hello World” example, then look at server configuration, application […]

Introduction to Coroutines

Introduction to Coroutines: What Problems Do They Solve?

Problem Solution Simplify Callbacks Coroutines Get results from a potentially infinite list BuildSequence Get a promise for a future result Async/Await Work with streams of data Channels and Pipelines Act on multiple asynchronous inputs Select The purpose of coroutines is to take care of the complications in working with asynchronous programming. You write code sequentially, […]

Java as your Kotlin Study Buddy

Java as your Kotlin Study Buddy

Switching to a new primary language can be daunting. We know the ins and outs of the language we have been working with for years, and all the sudden we’re newbies again. While this is always a good exercise to put yourself in, and comes with lots of learning, there is also a bit of […]

Compile Kotlin to native executables: hands on experience

Kotlin is becoming the one language you can use in every context: it can be compiled to JVM bytecode and reuse JVM libraries it can be transpiled to JavaScript and use JavaScript libraries it can now also be compiled to native code reusing native libraries While the JVM and JavaScript target are already mature, the […]

Kotlin Javascript Target: Use Kotlin in the Browser

Kotlin Javascript Target: Use Kotlin in the Browser

This article is a tutorial and introduction to run Kotlin on the browser, by compiling Kotlin to JavaScript. We are going to see the simplest way to setup a project that use existing JavaScript libraries. We are also going to learn and use the awesome when expression of Kotlin. This expression is quite useful and […]