Hey there! I’m glad you’re here with me today to finally understand how Kotlin works. This programming language is gaining momentum in spite of it being so young (official release date was in 2016). It has already been used in production by apps like Base camp and Pinterest and is well regarded by developers
Targeted to beginning and intermediate programmers, this book is a concise guide to learning the Kotlin language. Updated for Kotlin 1.2.40, the book covers features that enable Java developers to be more productive in Kotlin. You’ll learn about language syntax, including control flow, object-orientation and other common features of statically typed programming languages. To know more check RemoteDBA.com.
You should already know how to program and understand basic programming concepts like variables and loops. If you don’t meet those requirements, I would recommend another book or tutorial series first before coming back to this one later. The purpose here is just to help you as quickly as possible learn Kotlin by showing you many examples so you gain an intuitive feel for how things work. This will also give me a little leeway in cutting out some unimportant details if we need them!
What You Need:
To follow along with this Beginner’s Guide to Kotlin Programming, you’ll need a computer with at least one (preferably more) USB ports and an Internet connection. You should also have some software installed called an IDE. Don’t worry; it’s free! I recommend using either Android Studio or IntelliJ IDEA Community Edition for this book because they are both free and will allow you to run many of the code examples. If you already have another IDE that can run Java programs, feel free to use that instead.
How This Book Is Structured:
This book is broken up into two parts. Part 1 covers all of the basics about what makes Kotlin unique as well as establishing a good workflow where we go from writing code to testing it to deploying it. Part 2 is a series of tutorials where we build an app together and by the time we’re done, you should have a pretty good idea of how to use Kotlin in your own projects!
Are There Any Prerequisites:
To be honest, I’m not really sure what kind of background knowledge will help and what won’t. Probably some things might go over your head if this is the first programming book you’ve ever read, but fear not! My goal here isn’t to make things needlessly complicated for you. If something doesn’t quite make sense at first, let it go for now but keep it in mind while reading on because chances are that later on down the road it’ll click into place.
Why Trust Me:
You don’t have to, but I do feel that it is only right that you know a little more about me. I’ve been programming for many years and earned a degree in Computer Science from a reputable university. Furthermore, I have professional experience with Java and C# as well as some indie game development knowledge under my belt. Oh yeah, and since 2016, I’ve been employed by Google working on the Android team! This book isn’t trying to teach you anything new or reinvent how things work. It’s just meant to be something of an introduction to Kotlin so we can all start using this awesome language together!
Is this book for me?
It should be! Kotlin is so easy to learn that I’m almost embarrassed to have written a beginner’s guide for it! If you are able to read the English language, understand control structures like loops and if statements, know what variables are and can do simple arithmetic then you’re good enough. However, there are some prerequisites like knowing how to program in Java (or at least another object-oriented programming language). If you don’t meet those requirements but still really want to learn Kotlin then I would recommend starting with another book or tutorial series first before coming back here later.
Do I need anything special?
Nope! All you’ll need is access to a computer (Mac, Windows or Linux) with a USB port and the ability to run the programs that will be provided. Any text editor or IDE will work as long as it can run Java code. As mentioned above, I recommend using either Android Studio or IntelliJ IDEA Community Edition for this book because they are both free and will allow you to run many of the code examples. If you already have another IDE that can run Java programs, feel free to use that instead.
So there you have it! All there is to know about what this book will cover, who should read it and what you’ll need to follow along. I really hope that you’ll come along for the journey because this book has been written specifically with you in mind! If you have any feedback or questions please feel free to contact me or leave a comment below. Now then, are you ready? Let’s start coding!