How to get support while you're taking this course
Creating a new project in Kotlin
Creating a Kotlin hello world project - just to check everything is working
Using String templates
Creating a string with multiple lines
The Int data type
Other data types
Casting from one data type to another - the Java version
Casting from one data type to another - the Kotlin version
Chapter review - what we have learned in this chapter
Creating variables that can contain the value null
Running methods which work with nullable variables
The null-safe operator
The non-null asserted operator
The nothing object type
The function syntax, and the Unit object
Creating and calling top level functions
Single expression functions
Using named parameters when calling functions
Using optional parameters in functions
Parameter attributes are always immutable
Functions within a function
Functions that take a lambda parameter
Project structure and packages
The class declaration, and adding attributes
Instantiating a class, and accessing the class attributes
Creating a simple constructor
Adding secondary constructors to a class
Alternative class design
Overriding getters and setters
Creating a dummy variable get method
Functions within a class
Creating static functions
Destructuring and ComponentN functions
The challenge - explaining the Java code
The if keyword as an expression in kotlin
Assigning a variable using an if expression
Assigning values using if to do a null-safe check
The Elvis operator
Using the Elvis operator to overcome null-safe check smart cast compiler warning
The let function
The when expression
The while loop
Using for to loop through a collection
Destructuring with a for loop
Looping with the Range object
Creating different types of ranges
Mutable arrays with immutable variable assignments
Creating an immutable list
Creating a mutable list
Creating maps and sets
Working with Arrays in Kotlin
You should have some basic Java experience, as the approach is to convert your Java knowlege and skills to Kotlin, rather than to teach programming from scratch.
You should have basic experience of building Spring Boot applications in Java - ideally you'll be familiar with building a controller, and connecting to a database with JPA.
Even if you don't have too much experience with Java or Spring, you will be able to take this course, just be prepared to look up anything which isn't completely familiar!
In this course we learn how to code in Kotlin, with a particular focus on how to build full stack Spring Boot applications with Kotlin.
This course is aimed at existing Spring Framework Java developers who want to upgrade their skills to use Kotlin instead of (or as well as) Java.
Who this course is for:
Java developers, using the Spring Framework, who want to upgrade their skills to Kotlin
Having worked for over 20 years as a professional programmer, mainly in banking, Matt now teaches for Virtual Pair Programmers. His specialist areas are JavaEE, Android, Hadoop and NoSQL. Matt's currently working on a Clojure project, which he finds an enjoyable challenge!
Outside of work, Matt enjoys cycling, but prefers going downhill to uphill, and he also plays the piano… very badly.
Virtual Pair Programmers are here to help you take your programming skills to the next level. We're a group of enthusiastic software trainers who are all professional developers, and have a really practical approach to learning - our courses are full of real world case studies and hands on examples. We teach what you need to know to be productive in the workplace and to get the job done, rather than going through each feature turn by turn.