There is a serious lack of Kotlin tutorials for beginners. You only find experienced Java developers hacking down Kotlin code in record time. Don’t get me wrong — those are really great for other experienced developers and I enjoy watching them. But for beginners, they are just voodoo code appearing on the screen like magic.
Kotlin is actually a great language to learn first, if only the necessary tutorials were out there. So I decided to create a course that even total beginners can follow. Check out the first 10 Kotlin tutorials below or check out the whole course (it’s $10 with the 95% reader discount).
#1: A Brief Overview of Kotlin
Learn where Kotlin comes from, the language concepts it incorporates, and why you should learn it.
#2: Try It Out in 30 Seconds
This is a quick video for those who cannot wait to dive into code. Learn how to use the Kotlin online editor to try out some of the language basics.
#3: Installing the JDK
If you already have the Java Development Kit (JDK) installed, you can happily skip this step. If not, just follow this video and use this link that is mentioned in the video.
#4: Installing IntelliJ
If you don’t already have IntelliJ, you should change that right away — I really learned to love this powerful IDE. This tutorial guides you through the download and installation process. And here’s the link mentioned in the video.
#5: Setting Up IntelliJ
This tutorial covers just the most basic layout settings: how you can adjust the theme and font in IntelliJ to your favorite style.
#6: Using Kotlin Interactively in The REPL
The Kotlin REPL allows us to use Kotlin interpreter-style, so that we can put in an expression (or any line of code) and see what Kotlin does with it. It’s great to try out some basic expressions and calculations.
It’s time to learn about variables in Kotlin. This tutorial covers how to create and use variables of different types and the differences of the val and var keywords (to create immutable and mutable variables, respectively).
#8: Basic Types & Strings
This tutorial covers all the basic types in Kotlin including strings. In the video, I go through the differences between the different data types for storing integer values, floating point numbers, text and logical values.
#9: Nullable Variables
Kotlin gets rid of the worst enemy of all Java developers — the NullPointerException. In Kotlin, you can use nullable types to decide which variables can be set to null and which cannot. By default, a variable just cannot be assigned to null.
#10: Your First Standalone Application
This tutorial covers how you can create a main() function in Kotlin to define the entry-point to your applications. Once you have made it through this lecture, you’re ready to go and really dive into development with Kotlin.
If you’re as excited about Kotlin as I am, you can get my whole course on Udemy for $10 using this coupon link.
Inside the course, you’ll go from the basics to more advanced topics. These include:
- Conditional expressions using if and when
- Loops using for and while
- Arrays and lists
- Classes, objects, interfaces, inheritance and all you need to know about object-orientation
- Functional programming in Kotlin
- Several coding challenges and quizzes for you to test what you’ve learned
The course will be improved and extended based on student feedback and I’ll be there to help you personally whenever you get stuck. That way, there is no excuse for not learning Kotlin — even if you’re a total beginner.
What do you think about Kotlin? Is it “better than Java” or just yet another JVM language for you?
What else do you want to learn about Kotlin? Let me know in the comments and I’ll respond to you personally.