The Dot Operator

Warning: this is an April Fools’ post

Point-free style is a big trend in modern functional programming: it allows to manipulate functions without mentioning their arguments which makes the code concise and compositional. Here is an example from Wikipedia:

This function, written in Haskell, composes a map() function with a filter() function. As you can see, point-free style largely relies on dots.

Kotlin is not a functional language per se, but we are happy to borrow useful features from other languages. So, today I’ll write about dots. Continue reading

Posted in General | Tagged | 20 Comments

KAnnotator 0.1 is out

We announced KAnnotator back in December: it helps you against NPEs in Java and makes your Kotlin code nicer. Today we are pleased to announce a KAnnotator Plugin for IntelliJ, version 0.1. It is available from the plugin repository. Continue reading

Posted in General | Tagged | 13 Comments

Kotlin Session and JetBrains Booth at 33rd Degree Conference

JetBrains and Kotlin are participating in the 33rd Degree Conference in Warsaw, Poland. Join 1,200 attendees March 13-15 for 92 sessions from 58 speakers. Come by our booth and learn what’s new in Project Kotlin, as well as the upcoming IntelliJ IDEA 12.1 release. Be sure to mark your calendar for our two sessions with JetBrains Technical Evangelist Hadi Hariri.

Continue reading

Posted in General | Tagged | 1 Comment

Kotlin M5.1

There have been enough little improvements since Kotlin M5 so that we are rolling them out as M5.1 today. Some of them are not so little in fact, like enabling the use of Scala libraries, such as Akka. This post gives a quick overview of these changes. Continue reading

Posted in General | Tagged | 2 Comments

“Surround with…” comes to Kotlin

Great news for fans of Intellij IDEA: “Surroud with…” action is now available for Kotlin!

What is the “Surround with…” action?

This action allows you to surround a block of code with if, try or other statements (see the full list bellow). Simply select a block of code, press Ctrl + Alt + T and choose the template (Cmd + Alt + T for Mac): Continue reading

Posted in General | Tagged | Leave a comment

Ranges Reloaded

In Kotlin M5 we have redesigned our ranges a little bit. Continue reading

Posted in General, Language design | Tagged | 11 Comments

Kotlin M5 is Out!

In two weeks from now it will be one year since Kotlin started out as an open source project. It’s been a lot of hard work over this time, with a huge help of the community: we received 164 pull requests, which means a contribution every other day or so. Today we make another step and roll out Kotlin M5. This blog post covers the changes introduced in this release. Continue reading

Posted in General | Tagged | 4 Comments

An Interview with Andy Selvig, Author of Kara Web Framework

1. Hello Andy, thank you for taking the time to join us. Can you tell us a bit about yourself?

I’m co-owner of Tiny Mission, a small web and mobile development company based in Minnesota, USA. In addition to my work at Tiny Mission, I teach a course in mobile application development at the University of Minnesota.

Continue reading

Posted in General | Tagged , | 3 Comments

Kotlin Skills Matter Events in London, England

JetBrains has two free Kotlin events coming to London in April and May. Both sessions will be held at Skills Matter eXchange and registration is required. We hope to see you there!

In the Brains of Andrey Breslav: Introduction to Kotlin

Join Andrey for his talk Wednesday, April 3rd at 18:30 and get an overview of the Kotlin language and the principles behind it. Among other things, the following features will be covered:

  • Static null-safety
  • Extension functions
  • Higher-order functions and type-safe builders
  • Smart casts: Kotlin’s lightweight pattern matching
  • Enhancing existing Java APIs with Kotlin
  • Developing mixed Kotlin/Java projects

Hadi Hariri’s Introduction to Kotlin Workshop

Hadi will be hosting a free workshop Thursday, May 2nd beginning at 9:00 AM. There will be a limit of 20 delegates so you need to be quick. Lunch will be provided courtesy of JetBrains.

In this hands-on workshop, you will learn about the basics of the language. You’ll discover some of the advantages that it offers, understand how to get the best of Object Orientation and Functional paradigms, create custom DSL’s and remove some of the pain of other popular languages such as Java and C#. You’ll see how to test your code, interop with existing frameworks as well as discover some of the new frameworks, such as web development frameworks, already available for Kotlin.

The workshop will be hands-on, so bring your laptop, and for the best results, have IntelliJ Ultimate OR the free Community Edition installed.

Posted in General | Tagged | 2 Comments

Kotlin M4 is Out!

Today we roll out Kotlin M4 (from under snow). This post gives an overview of new features and other things this milestone brings. Continue reading

Posted in General | Tagged | 11 Comments