Over a million developers have joined DZone.

Bowling Kata in Kotlin [Video]

Follow along with this 20-minute video to learn how to use Kotlin and TDD to implement the Bowling Game kata.

· Java Zone

Learn more about the advantages of moving from a monolithic to microservices architecture.  Brought to you in partnership with IBM.

Sergio Rodrigo implements the Bowling Game kata in Kotlin using TDD, showing some of the features of the language, such as support for Functional Programming (Higher Order Functions, Lambdas and built-in functions), Pattern Matching, Extension Functions, Expression Bodies, and method names as free text. The kata is performed in a way that shows the expressiveness of Kotlin.

The Kotlin plugin for IntelliJ is used to show the IDE support for the language, using live templates and performing small automatic refactorings.

The code used in this video can be found on GitHub.

This article was first published on the Codurance blog.

From Idea to Application gives you the architecture to quickly build, manage and run a range of applications (web, mobile, big data, new smart devices, etc.) on an open-standard, cloud-based platform. See why developers are using IBM Bluemix. Brought to you in partnership with IBM.


Published at DZone with permission of Sergio Rodrigo Royo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}