Kotlin

Overview

About Kotlin

Kotlin is a modern, concise, and safe programming language that runs on the JVM, Android, JavaScript, and native targets. It is the preferred language for Android development and a first-class choice for backend services. This course starts with Introduction & Setup, where you install the tooling and run your first program, and Language Fundamentals, covering variables, types, control flow, and expressions. Null Safety & Types then shows how Kotlin's type system prevents the most common runtime errors.

Functions & Lambdas covers default arguments, higher-order functions, and lambdas, before Classes & OOP and Data & Sealed Classes teach you to model real domains with interfaces, objects, data classes, and exhaustive sealed hierarchies.

Collections & Sequences covers the functional-style standard library, while Generics & Extensions covers extension functions, scope functions, and the building blocks of type-safe DSLs. Coroutines and Flow & Concurrency then cover Kotlin's approach to asynchronous programming, including structured concurrency, cancellation, and reactive streams.

Building Apps with Kotlin puts it all into practice with REST backends in Ktor and Spring Boot, an introduction to Jetpack Compose, and code sharing with Kotlin Multiplatform. Finally, Testing & Tooling covers unit testing, mocking, Gradle Kotlin DSL, and the linters that keep a codebase healthy.

Content

12 modules
01

Introduction & Setup

What Kotlin is and where it runs, installing the JDK and IntelliJ IDEA, Gradle basics, and writing, compiling, and running your first Kotlin program.

Kotlin Basics IntelliJ IDEA Gradle
02

Language Fundamentals

Variables with val and var, basic types, string templates, operators, control flow with if and when expressions, loops, ranges, and basic input and output.

val / var when Ranges
03

Null Safety & Types

Nullable and non-nullable types, safe calls, the Elvis operator, smart casts, type checks, and why Kotlin's type system removes most NullPointerExceptions.

Null Safety Smart Casts Type System
04

Functions & Lambdas

Function declarations, default and named arguments, single-expression functions, higher-order functions, lambdas, and inline functions.

Functions Lambdas Higher-Order
05

Classes & OOP

Classes, constructors, properties, inheritance, interfaces, abstract classes, visibility modifiers, objects, and companion objects.

Classes Interfaces Objects
06

Data & Sealed Classes

Data classes, enum classes, sealed classes and interfaces, destructuring declarations, and modeling state safely with exhaustive when expressions.

Data Classes Sealed Classes Enums
07

Collections & Sequences

Lists, sets, and maps, mutable vs read-only collections, map, filter, and fold operations, grouping and sorting, and lazy evaluation with sequences.

Collections map / filter Sequences
08

Generics & Extensions

Generic classes and functions, variance with in and out, extension functions and properties, scope functions, and building simple type-safe DSLs.

Generics Extensions Scope Functions
09

Coroutines

Suspending functions, launch and async, structured concurrency, coroutine scopes and dispatchers, cancellation, and exception handling.

suspend Dispatchers Structured Concurrency
10

Flow & Concurrency

Cold flows, flow operators, StateFlow and SharedFlow, channels, and sharing state safely between coroutines.

Flow StateFlow Channels
11

Building Apps with Kotlin

Building REST backends with Ktor and Spring Boot, an introduction to Android with Jetpack Compose, and sharing code with Kotlin Multiplatform.

Ktor Spring Boot Compose
12

Testing & Tooling

Unit testing with JUnit 5 and Kotest, mocking with MockK, testing coroutines, Gradle Kotlin DSL, and code quality with ktlint and detekt.

JUnit 5 MockK Gradle KTS

What You Can Do After This Course

By the end of the curriculum you'll have built several real Kotlin projects and covered the full path from first program to tested, production-ready applications. Concretely, you'll be able to:

Write idiomatic Kotlin — use val, when expressions, null safety, and smart casts to write concise and safe code.

Model domains cleanly — design with classes, interfaces, data classes, and sealed hierarchies that the compiler can check.

Work fluently with functions and collections — use lambdas, higher-order functions, extensions, and sequences instead of boilerplate loops.

Write asynchronous code with coroutines — launch, cancel, and structure concurrent work, and stream data with Flow.

Build real applications — create REST backends with Ktor or Spring Boot and understand the path to Android and Multiplatform.

Ship with confidence — test with JUnit and MockK, manage builds with Gradle Kotlin DSL, and enforce quality with ktlint and detekt.