O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learn Kotlin Programming

Video Description

A beginner’s guide to Kotlin to build robust programs that are more expressive and concise.

About This Video

  • A comprehensive guide for beginners to learn Kotlin
  • Covers the core of Kotlin programming basics and fundamentals
  • Illustrates every Kotlin programming concept with a practical demo in Intellij IDEA

In Detail

Kotlin is a statically typed language whose syntax is more expressive and concise. Kotlin has been adopted by Google as a first-class language for developing Android apps. Since then, Kotlin has gained a huge popularity worldwide among developers due to its highly appreciable features, which we will cover in this course.

The course starts by showing you how to set up the Kotlin environment and install Intellij IDEA to write Kotlin code. After that, the course dives into the Kotlin basics and fundamentals such as variables, data types, string templates, expressions, null values, and loops. Moving on, you’ll learn how to write functions in Kotlin. You’ll explore Kotlin as an Object-Oriented Language by exploring interfaces and various Kotlin classes . Next you’ll dive into Functional programming in Kotlin using Lambdas and higher-order functions . Finally, you’ll explore the collection framework and perform operations such as filtering and sorting using Predicates and FlatMaps in Kotlin.

By the end of the course, you’ll be able to build your own robust program in Kotlin.

All the code and supporting materials for this course will be available at - https://github.com/PacktPublishing/Learn-Kotlin-Programming-video-.

Table of Contents

  1. Chapter 1 : Getting Started with Kotlin
    1. The Course Overview 00:03:53
    2. Introduction to Kotlin 00:07:14
    3. Installing Software on Windows 00:08:20
    4. Installing Software on Mac 00:06:52
    5. Installing Software on Linux 00:10:10
    6. Writing Your First Kotlin Program 00:11:16
    7. Exploring Your First App 00:03:06
  2. Chapter 2 : Kotlin Data Types, Expressions, and Conditional Statements
    1. Exploring Variables and Data Types 00:07:26
    2. Demo – Variables and Data Types 00:08:06
    3. Playing with String Templates 00:05:48
    4. Kotlin Expressions – If 00:06:13
    5. Kotlin Expressions – When 00:08:29
    6. Using Loops in Kotlin 00:09:21
    7. Handling Exceptions 00:08:15
  3. Chapter 3 : Exploring Functions in Kotlin
    1. Introduction to Kotlin Functions 00:04:29
    2. Declaration of Functions 00:07:08
    3. Exploring the Default Parameters 00:02:59
    4. Using Named Parameters 00:03:33
    5. Avoiding Stack Overflow Exception by Using Tail Recursive Function 00:06:28
  4. Chapter 4 : Programming with Interfaces and Classes in Kotlin
    1. Defining a Class in Kotlin 00:08:58
    2. Working with Constructors and init Block 00:09:17
    3. Exploring Inheritance 00:07:51
    4. Exploring Interface 00:11:07
    5. Using Data Classes 00:06:19
  5. Chapter 5 : Statics in Kotlin – Companion Objects
    1. Understanding Kotlin Statics 00:05:49
    2. ‘object’ Declaration 00:05:30
    3. Using Companion Object 00:04:01
  6. Chapter 6 : Functional Programming in Kotlin
    1. Introduction to Higher-Order Functions and Lambda Expressions 00:07:22
    2. Using Higher Order Function and Lambda 00:07:49
    3. Working with Closures 00:04:16
    4. Implement ‘it’ keyword 00:04:18
    5. Implement ‘with’ and ‘apply’ Keywords 00:03:55
  7. Chapter 7 : Filtering and Sorting – Handling Large Data
    1. Introduction to Arrays 00:10:45
    2. Exploring Lists – Mutable and Immutable 00:07:41
    3. Filtering Data 00:04:27
    4. Modifying Data 00:03:42
    5. Exploring Set 00:04:09
    6. Exploring Map 00:06:44
  8. Chapter 8 : Leveraging the Power of Kotlin
    1. Handling Null Values 00:08:24
    2. Exploring Extension Functions 00:03:34
    3. Putting it all together: the Power of Kotlin 00:03:39