Kotlin Programming Tutorial for Beginners

Overview

Kotlin Programming Tutorial for Beginners

Learn Kotlin from scratch

Topics to be covered

  1. Overview
    • Course introduction, prequisites and software required
  2. Installation
    • Install required softwares for Windows, MAC and Linux ( Ubuntu )
  3. Getting Started with Kotlin Programming
    • Run your first app in Kotlin
  4. Exploring Data Types and Variables
    • Data Types and Variables
    • String, Literals and String Interpolation
    • Comments
  5. Constants, Variables and Data Types
  6. Control Flow Statements
    • IF ELSE
    • IF Expressions
    • WHEN Expressions
  7. Loop Control Statements
    • What are Iterators?
    • FOR Loop and how it works
    • WHILE Loop
    • DO WHILE Loop
    • BREAK statements
    • CONTINUE keyword
    • Labelled FOR Loop
  8. Functions and Interoperability
    • Declaring functions
    • Interoperability with Java code
    • Function as Expressions
    • Extension Functions
    • Infix Functions
    • Default Parameters
    • Named Parameters
    • Tailrec Functions
  9. Object Oriented Programming in Kotlin
    • Defining Class and creating Objects
    • INIT block
    • Primary and Secondary Constructors
    • Properties ( Field variables )
    • Inheritance
    • Method and Property Overriding
    • Polymorphism
    • Abstract Class, Property and Method
    • Interface
    • Data Class
    • Object Declaration
    • Companion Object
  10. Functional Programming in Koltin
    • Lambdas
    • Higher-Order Functions
    • Closures
    • 'it' keyword
    • 'with' function
    • 'apply' function
  11. Collections in Kotlin
    • Arrays
    • List
    • Map and HashMap
    • Set and HashSet
  12. Sorting and Filtering
    • "filter" function
    • "map" function
    • Predicates: all, any, find, count.
  13. Kotlin NULL Safety
    • Safe call
    • with Let
    • Elvis
    • Lateinit keyword
    • Lazy delegation and 'lateinit' vs. 'lazy'
  14. Scope Functions
    • with
    • apply
    • let
    • also
    • run
  15. Coroutines
    • What are Coroutines? How are they related to Threads?
    • launch, async, runBlocking, withContext, withTimeoutOrNull,
    • Suspending function
    • Cancellation and Timeouts
    • Cooperative suspending functions and isActive flag
    • Exception Handling in Coroutines
    • Sequential execution of suspending function in Coroutines
    • Concurrency within Coroutine
    • lazy 'async'
    • CoroutineScope and CoroutineContext
    • Dispacthers: Confined dispatcher, Default Dispatcher, and Unconfined Displatcher
  16. Conclusion
You might also like...
Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)

Mockative Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP). Installation Mockative uses KSP to generate

Kotlin-oop - Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura.

Projeto React OOP Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura

Kotlin-koans - Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax

kotlin-koans-edu Kotlin Koans are a series of exercises to get you familiar with

Kotlin TodoMVC – full-stack Kotlin application demo

Kotlin full stack TodoMVC This project is an example implementation of the TodoMVC app written in Kotlin. More specifically, it's the Kotlin port of t

Integration Testing Kotlin Multiplatform Kata for Kotlin Developers. The main goal is to practice integration testing using Ktor and Ktor Client Mock
Integration Testing Kotlin Multiplatform Kata for Kotlin Developers. The main goal is to practice integration testing using Ktor and Ktor Client Mock

This kata is a Kotlin multiplatform version of the kata KataTODOApiClientKotlin of Karumi. We are here to practice integration testing using HTTP stub

Small kotlin library for persisting _single instances_ of kotlin data classes
Small kotlin library for persisting _single instances_ of kotlin data classes

PerSista Small library for persisting single instances of kotlin data classes. NB: PerSista uses typeOf() internally which is marked as @ExperimentalS

Kotlin Leaning Notes from Udacity Course | Kotlin Bootcamp for Programmers by Google
Kotlin Leaning Notes from Udacity Course | Kotlin Bootcamp for Programmers by Google

Kotlin Beginners Notes These are all personal notes taken from the Udacity Course (ud9011) of Kotlin Bootcamp for Programmers by Google as well as oth

Saga pattern implementation in Kotlin build in top of Kotlin's Coroutines.

Module Saga Website can be found here Add in build.gradle.kts repositories { mavenCentral() } dependencies { implementation("io.github.nomisr

Kotlin microservices with REST, and gRPC using BFF pattern. This repository contains backend services. Everything is dockerized and ready to
Kotlin microservices with REST, and gRPC using BFF pattern. This repository contains backend services. Everything is dockerized and ready to "Go" actually "Kotlin" :-)

Microservices Kotlin gRPC Deployed in EC2, Check it out! This repo contains microservices written in Kotlin with BFF pattern for performing CRUD opera

Owner
Prasoon
Android ( Native[Java/Kotlin] and Flutter ) | CTF (Red Team) | Machine Learning begineer | Backend Web
Prasoon
It is a project that contains lessons and examples about Kotlin programming language. 🇰

Kotlin Tutorials What is Kotlin? I added the platforms it supports and great resources. You can access the article from the link below: https://medium

Halil Özel 94 Dec 22, 2022
101 examples for Kotlin Programming language.

This is a collection of runnable console applications that highlights the features of Kotlin programming language. The use of console application enab

Dody Gunawinata 192 Dec 1, 2022
Kotlin Programming Fundamentals - Assessment

Kotlin Programming Fundamentals - Assessment É hora de vermos o quanto você aprendeu sobre Kotlin e Programação Orientada a Objetos Parte 1: Entendend

Roberta Assunção 0 Nov 10, 2021
Kotlin Programming Fundamentals - Assessment

This project is an exercise to implement some functions at a already created school system and was purposed as a final project of a Jr. Mobile Developer Bootcamp (more information about the exercise in README.md)

João Victor Mendes da Silva 2 May 16, 2022
A coding examples project about Kotlin Programming language. 🇰

Kotlin Tutorial ????‍?? What is Kotlin ❓ Kotlin is a new programming language, developed by JetBrains. Jetbrains is a popular software development com

Mustajab Ikram 4 Oct 11, 2022
Showcase project of Functional Reactive Programming on Android, using RxJava.

FunctionalAndroidReference FunctionalAndroidReference is a showcase project of Functional Reactive Programming on Android, using RxJava. It's a compan

Paco 278 Nov 18, 2022
Life is too short for Bash programming

A starter project to build command-line tools in Kotlin Multiplatform Contains a re-implementation of a real world CLI tool: git-standup Installation

Jean-Michel Fayard 224 Dec 1, 2022
Kotrlin Programming Language Cross-Platform Development which includes Android, iOS and Backend. Pretty much everwhere.

Kotlin-Everywhere: Kotlin Programming Language Cross-Platform Development This is still a WIP but the idea is to create a tiny KOTLIN project that cou

Fernando Cejas 31 Aug 9, 2022
An Interpreter/Transpiler for the Folders esoteric programming language, a language with no code and just folders

Folders2kt ?? An Interpreter/Transpiler of the Folders esoteric programming language, a language with no code and just folders, written in Kotlin Show

Jens Klingenberg 18 Jan 4, 2023
A functional, fractional-byte programming language

Fig A functional, fractional-byte programming language. Tired of annoying Unicode codepages in your favorite golfing languages? Fig uses pure, printab

null 10 Dec 15, 2022