
They can be accessed from any project, but you have to specify where to look for the classes in case you are using project-specific classes. The difference between scratches and worksheets is that: This is useful for testing and prototyping purposes. Scratches and worksheets allow you to create a temporary file and execute it straight away. #KotlinTips 3: ! = /Users/me.userįiles.walk(res3, 1).forEach


The second contains all the other elements. The first contains all elements for which the predicate evaluates to true Use the partition function to split a collection into two lists based on a predicate. They’re sharing a lot of resources and, from time to time, nice actionable language & IDE tips you can use in your projects (check #KotlinTips hashtag). It’s a good idea to follow the Kotlin language Twitter account as well. If you want to stay up-to-date with the recent Kotlin releases or if you’re looking for a nice community, check the official Kotlin Slack channel. It’s a very actionable book, but it requires some degree of experience with the Java language.Ĭode snippets from the book can be found and tested in an online Try Kotlin editor. When it comes to books I can recommend Kotlin in action by Svetlana Isakova and Dmitry Jemerov. It covers all the things you need to know when you’ve decided to start your Kotlin adventure. If you’re coming from the Java world and you need a short introduction to Kotlin, you can try Kotlin for Java developers free course on the Coursera platform.Īgain, it’s an official course, made by the JetBrains developers. Obviously, there’s a nice Kotlin learning path available. JetBrains Academy is an online learning platform that offers multiple programming languages courses. Straight from your IDE, using EduTools IntelliJ plugin.Kotlin Koans are short programming challenges you can solve and learn the language along the way. Take a look at the list below and choose your best way to learn: Online REPL The best way to try Kotlin (and I believe any other programming language) is to learn it by doing. However, coming from the Java world can be helpful in getting familiar with the very basic concepts of the language.

It’s not mandatory to know Java before starting your journey with Kotlin. In this text, I’m going to show you what resources can you use to learn Kotlin and why should you choose it as your own language of choice in the next year.
