Home » Tag Archives: Kotlin

Tag Archives: Kotlin

Spring Webflux – Kotlin DSL – a walkthrough of the implementation

In a previous blog post I had described how Spring Webflux, the reactive programming support in Spring Web Framework, uses a Kotlin based DSL to enable users to describe routes in a very intuitive way. Here I wanted to explore a little of the underlying implementation. A sample DSL describing a set of endpoints looks like this: package sample.routes import org.springframework.context.annotation.Bean ...

Read More »

Kotlin and Android: JetBrains and Google Behind One Language

Google I/O 2017 had several major announcements, but one of the most interesting to me is “first-class support for Kotlin” on Android. The Kotlin blog post on this announcement discusses the benefits this brings to Kotlin users: In case you are concerned about other platforms that Kotlin supports (Kotlin/JVM for server and desktop, Kotlin/JS and Kotlin/Native), please be sure that ...

Read More »

Improved Pattern Matching in Kotlin

Kotlin doesn’t have true pattern matching, and that’s fine. In order to make matchable classes in Scala, there is an awful lot of overhead required to make it work, and I highly respect Kotlin’s goal of not adding much overhead anywhere. But that doesn’t mean we can’t try to make our own way to get something closer to pattern matching. ...

Read More »

Building and testing a parser with ANTLR and Kotlin

This post is part of a series on how to create a useful language and all the supporting tools. Building a lexer Code Code is available on GitHub. The code described in this post is associated to the tag 02_parser       The parser The parser is simply defined as an ANTLR grammar. We have previously built a separate lexer. ...

Read More »

libgdx and Kotlin – Classes [2D Platformer Prototyping]

This post is a follow up of the libgdx and Kotlin post. I have decided to prototype a simple 2D platformer (along the lines of Star Assault from my early posts), but instead of Java, I am using and learning Kotlin along the way. For this tutorial, the project should be in its initial state from the previous post. A ...

Read More »

Using libGDX with Kotlin

I’ve been reading lately about different languages and what they can bring to the already crowded table of software developers, and one language stood out for me: Kotlin. (https://kotlinlang.org/) It’s a relatively new language (est. 2011) and these are just a few reasons why I picked it over the multitude of other more mature languages: Runs on the JVM and ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns