Kt. Academy Logo
WorkshopsBooksArticlesStore

Marcin Moskała

Marcin Moskala is a highly experienced developer and Kotlin instructor as the founder of Kt. Academy, an official JetBrains partner specializing in Kotlin training, is known for his significant contributions to the Kotlin community. Moskala is the author of several widely recognized books, including "Effective Kotlin," "Kotlin Coroutines," "Functional Kotlin," "Advanced Kotlin," "Kotlin Essentials," and "Android Development with Kotlin."

Beyond his literary achievements, Moskala is the author of the largest Medium publication dedicated to Kotlin. As a respected speaker, he has been invited to share his insights at numerous programming conferences, including events such as Droidcon and the prestigious Kotlin Conf, the premier conference dedicated to the Kotlin programming language.

With a track record of over 100 workshops conducted at many international companies such as IBM, Allegro, Pega, Bloomberg, and HPE, Moskala's expertise extends from theoretical knowledge, delving into the practical application of core Kotlin features.

Request company consultations
600 EUR / DAY
Request private consultations
50 EUR / H

Published articles

Generyki w Kotlinie

Esencja definiowania i używania typów generycznych w Kotlinie.

Books for 2024 company workshops attendees promotion

Our special promotion for company workshops organised in 2024.

Generics in Kotlin

The essence of how generics work in Kotlin.

Cancellation in Kotlin Coroutines

Everything you need to know about the cancellation mechanism in Kotlin Coroutines.

Klasy w Kotlinie

Jak definiujemy klasy w Kotlinie i jakie oferują nam one możliwości.

flatMapMerge is... weird

How not to get surprised by flatMapMerge behavior.

What is CoroutineContext and how does it work?

A deep explanation of the coroutine context - the powerful data holder for coroutines.

Item 26: Use abstraction to protect code against changes

How do we abstract elements, and what are the consequences.

Item 25: Each function should be written in terms of a single level of abstraction

Why each function should be written in terms of a single level of abstraction and how to achieve it.

Podstawowe typy Kotlina, ich literały i operacje

Poznaj podstawowe typy Kotlina, ich literały i operacje.

Abstraction design: Introduction

What is abstraction in programming and why is it so important.

Effective Kotlin Item 20: Do not repeat common algorithms

Why extracting utility functions is so important for our programs.

Czym jest Kotlin?

Czym jest Kotlin, jakie ma cechy, jakie ma zalety i jakie wady.

Перша програма на Python

Напишемо першу програму, а також дізнаємося, що таке програмування, як підготувати середовище і як використовувати ці матеріали.

Functional Kotlin now with exercises

Functional Kotlin was updated! Now it has exercises to help readers practice the knowledge.

Effective Kotlin Item 19: Do not repeat knowledge

Why knowledge repetition is so problematic and how it relates to the single responsibility principle.

Simulating dice casting, to calculate Risc game fairness

Using programming to simulate a battle in Risc, and learn about its fairness.

Big Kotlin Challenge

Do you want to learn Kotlin? Join our Big Kotlin Challenge!

JavaScript interoperability

How to interoperate between Kotlin and JavaScript.

Kotlin Compiler Plugins

All you need to know about Kotlin Compiler plugins.

Annotation Processing

Implement your first annotation processor in Kotlin.

Effective Kotlin Item 60: Use appropriate collection types

Using non-standard collection types to improve performance in Kotlin.

Kotlin Symbol Processing

All the essential aspects of KSP in practice.

Effective Kotlin Item 49: Use caching when possible

Why we should use caching and how to do it.

Kotlin Essentials now with exercises

Kotlin Essentials was updated! Now it has exercises to help readers practice the knowledge.

Data classes in Kotlin

What are data classes in Kotlin and how do we use them.

Get an ebook if you have a paperback!

Special promotion until the end of this year, we give away ebooks for paperback owners who post their photos with those books.

Effective Kotlin Item 48: Consider using object declarations

Why we should use object declarations instead of regular classes.

Kotlin Reflection: Type references

Using type references, with practical example of random value generator.

Kotlin Reflection: Class references

All the essential aspects of class references, and a practical object serialization example.

Kotlin books for conferences and universities

We have a very special offers for conferences and universities that want to give away books.

Kotlin Reflection: Method and property references

The general hierarchy of Kotlin reference classes, and details about method and property references.

Kotlin for developers' series is finally ready!

We are happy to announce that Kotlin for developers series is finally complete.

Extensions in Kotlin

What are extensions in Kotlin and how do we use them.

Effective Kotlin Item 35: Consider using dependency injection

What is dependency injection, why it is so important, and how to use it in Kotlin.

Kotlin for Developers series is updated to Kotlin 1.9 and ready for 2.0

All the books from the series Kotlin for Developers are ready for Kotlin 2.0!

Implementing Multiplatform Kotlin Mobile

How in Kotlin we can implement Android and iOS projects with shared logic.

Implementing Multiplatform Kotlin library

How in Kotlin we can use multiplatform capabilities to distribute the same code to multiple platforms.

Using Multiplatform Kotlin

The essence of using multiplatform Kotlin capabilities and definition common elements.

The story behind the lighthouse

The story behind the lighthouse used on the new edition of Effective Kotlin.

The second edition of Effective Kotlin: Best Practices is finally ready!

Learn about the new release of the famous book about the best practices for Kotlin development.

Sealed classes and interfaces in Kotlin

What are sealed classes and interfaces in Kotlin and how do we use them.

Effective Kotlin Item 2: Eliminate critical sections

Learn why do we need to synchronize access to mutable state, and how to secure it.

Kotlin and Java interoperability: Traps and gotchas

The parts of Kotlin and Java interoperability that might be surprising or counterintuitive.

Kotlin and Java interoperability: Useful annotations

Learn about useful Kotlin annotations, that decide that it is compiled to on JVM.

Kotlin and Java interoperability: Properties and annotations

Kotlin property is Java getter, setter, field and possibly more. So what to do, when you need to annotate or use a specific JVM element?

Kotlin and Java interoperability: Types

See surprising transitions that happens on types when you interoperate between Kotlin and Java.

Advanced Kotlin is finally ready!

Learn about our recently published book dedicated to the advanced Kotlin features.

Objects in Kotlin

What is object expression, object declaration and companion objects, and how we use them.

Books for 2023 company workshops attendees promotion

Our special promotion for company workshops organised in 2023.

Kotlin Contracts

Practical review of Kotlin Contracts - a feature we often use, without knowing about it.

Eliminating coroutine races

How to make one coroutine await for another coroutine or flow subscription.

Lindy effect in surnames problem

Using programming to simulate a problem of the number of surnames in population and observing Lindy effect.

The beauty of Kotlin type system

How type system makes Kotlin so flexible, safe, and intuitive.

Understanding Flow

We will explore how flow and its processing really works.

The second edition of Kotlin Coroutines: Deep Dive book is finally ready!

Learn about the new release of the famous book about Kotlin Coroutines.

Map as a property delegate

How do we use Map as a property delegate, and why the result of a famous puzzler should not be surprising.

Observable and Vetoable delegates

What are observable and vetoable delegates, and what are their real-life use cases.

Best practices

Let's review the Kotlin Coroutines best practices.

Kotlin revolutionary announcement

Kotlin announcement that will change the way we all will write code.

Kotlin Coroutines Recipes

Let's see some recipes useful in Kotlin Coroutines projects.

Lazy property delegate

What is lazy delegate, and what are its real-life use cases.

Property delegation

What is property delegation, how does it work, and how can we implement our custom property delegate.

Nullability in Kotlin

How Kotlin null-safety works, and how can we deal with nullable values.

Interface Delegation

One of the least known Kotlin features, that can be sometimes found really useful.

Kotlin bites on Twitter 2

A collection of Kotlin bites of knowledge, in a form of tweets.

Basic values in Kotlin

Learn about the basic Kotlin values, types and operations.

Variance modifiers limitations

What limitations generic variance modifiers introduce, and how can we ignore them.

Covariant Nothing Object

The pattern we are all using, but no-one talks about it.

Kotlin Generic Variance Modifiers

What are out and in, and how do we use them without even knowing.

Enum classes in Kotlin

What are enum classes in Kotlin and how do we use them.

Operator overloading in Kotlin

How are operators defined for types in Kotlin, and how can we define our own operators.

The power of Kotlin for-loop

Learn about the amazing capabilities of Kotlin for-loop.

Kotlin bites on Twitter 1

A collection of Kotlin bites of knowledge, in a form of tweets.

Your first program in Kotlin

How to write your first program, how can we use it in real-life projects, and how to explore what Kotlin is compiled to.

Kotlin Essentials book is finally ready!

Learn about our recently published book dedicated to the essential Kotlin features.

Functions in Kotlin

Learn about what functions can offer us in Kotlin.

Kotlin Coroutines use cases introduction

Introducing a series of articles about common Kotlin Coroutines use cases.

Einführung in die Anwendungsfälle von Kotlin-Coroutines

Vorstellung einer Artikelserie über gängige Anwendungsfälle von Kotlin Coroutines.

Kotlin Coroutines use cases for Presentation/API/UI Layer

How do we use Kotlin Coroutines in the Presentation/API/UI Layer Layer, how do we create scope and start coroutines.

Anwendungsfälle von Kotlin-Coroutines für die Präsentations-/API-/UI-Ebene

Wie verwenden wir Kotlin Coroutines in der Präsentations-/API-/UI-Ebene? Wie erstellen wir einen Scope und starten Coroutinen?

Kotlin Coroutines use cases for Domain Layer

How do we use Kotlin Coroutines in the Domain Layer.

Anwendungsfälle von Kotlin-Coroutines für die Domänenschicht

Wie verwenden wir Kotlin Coroutines in der Domänenschicht?

Kotlin Coroutines use cases for Data/Adapters Layer

How do we use Kotlin Coroutines in the Data/Adapters Layer, how do we use callback or blocking functions.

Anwendungsfälle von Kotlin-Coroutines für die Daten-/Adapterebene

Wie verwenden wir Kotlin Coroutines in der Daten-/Adapterebene? Wie verwenden wir Rückruffunktionen oder blockierende Funktionen?

Functional Kotlin book is finally ready!

Learn about our recently published book dedicated to functional Kotlin features.

Effective Kotlin Item 10: Design for readability

Do we really want out applications concise, or do we rather want them readable?

Effective Kotlin Item 7: Prefer a nullable or Result result type when the lack of a result is possible

Why should we prefer to avoid throwing exceptions and using types to our advantage.

Effective Kotlin Item 5: Specify your expectations for arguments and state

How do we specify requirements and expectations in Kotlin.

Context receivers

All you need to know about the new and powerful Kotlin feature: context receivers.

Effective Kotlin Item 1: Limit mutability

Why it is so important to limit mutability, and how Kotlin supports it.

Scope functions

What is let, also, apply and with, and how to use them in our applications.

DSL type-safe builders

How to define type-safe DSL builders in Kotlin.

Lambda expressions

Let's learn how to use lambda expressions, what special support they have, and what traps they generate.

Object-oriented or functional? Two ways to see the world

The difference between the OOP and FP paradigms is deeply rooted in how we see the world. A few words on the philosophy of both approaches.

Essential programming nomenclature

Find out what you need to know, before you start writing documentations, books or articles about programming.

Function references

How do we reference functions in Kotlin, to replace lambda expressions. All functions, including constructors, getters, extensions and more.

Co można robić w Pythonie?

Najpopularniejsze zastosowania języka Python, oraz jak z nimi zacząć.

Tworzenie serwisów internetowych w Pythonie

Czym są serwisy internetowe i jak utworzyć najprostszy taki serwis w języku Python.

Zbieranie danych w Pythonie

Jak użyć języka Python do zbierania danych ze stron i portali internetowych.

How to write a technical book?

A guide for writing technical books.

Sztuczna inteligencja w Pythonie

Jak zacząć przygodę ze sztuczną inteligencją w języku Python.

Analiza danych w Pythonie

Jak zacząć przygodę z analizą danych w języku Python.

Code or No-code?

What are the strong sides of code and no-code, and why do they constantly fight with each other.

Gra w węża, część 3: Przejmujemy sterowanie

Jak reagować na akcję gracza, by nasz wąż nabrał życia.

Gra w węża, część 2: Zmiana stanu

W stylu TDD implementujemy poruszanie się węża oraz pozostałe elementu mechaniki gry.

Gra w węża, część 1: Daj mi okno na świat

Jak działają gry oraz jak zacząć pracę z pakietem PyGame.

Instalacja pakietów w Pythonie

Czym jest pip i jak w języku Python instalujemy pakiety.

Funny programming comics

A collection of funny comics for programmers.

Importowanie w Pythonie

Jak w języku Python działa importowanie modułów, pakietów i elementów.

Operatory w Pythonie

Czym jest ten cały __eq__, __str__ i pozostałe funkcje stanowiące wsparcie dla nadpisywania operatorów.

Kotlin Coroutines: Deep Dive book is finally ready!

Learn about our recently published book dedicated to Kotlin Coroutines.

List comprehensions w Pythonie

Czym jest List comprehensions i jak wykorzystujemy je do przetwarzania list.

Listy w Pythonie

Jak działa lista i tuple, jak wyciągać i ustawiać wartości poprzez index i zakres, i wiele więcej.

Klasy i obiekty w Pythonie

Czym są klasy i jak przy ich pomocy tworzymy obiekty w języku Python.

Funkcje w Pythonie

Poznamy funkcje, parametry, argumenty, wartości zwracane, domyślne oraz nazwane argumenty.

Pętle w Pythonie

Poznamy pętlę for i while oraz ich najistotniejsze użycia w języku Python.

Wyrażenia logiczne w Pythonie

Dowiemy się, jak działają operatory logiczne and, or i not oraz jak przy ich pomocy tworzymy wyrażenia logiczne.

SharedFlow and StateFlow

Known as a replacement for Subject, LiveData, and many more. SharedFlow and StateFlow are powerful coroutines classes, every Kotlin developer should know.

SharedFlow und StateFlow

Bekannt als Ersatz für Subject, LiveData und vieles mehr. SharedFlow und StateFlow sind leistungsstarke Coroutine-Klassen, die jeder Kotlin-Entwickler kennen sollte.

Warunki w Pythonie

Dowiemy się, jak działa warunek if, else, elif, pass oraz dowiemy się co zrobił Jasio, aby pójść do kina.

Zmienne w Pythonie

Dowiemy się, jak definiować zmienne, jak je nazywać, czym jest None oraz jak przypisać wartości do wielu zmiennych jednocześnie.

Wartości w Pythonie

Nauczymy się czym są i jakie są podstawowe wartości w Pythonie. Sprawdzimy też, czy może on nam służyć jako kalkulator.

Funny programming videos

A collection of funny videos for programmers.

Pierwszy program w Pythonie

Napiszemy pierwszy program, a także nauczymy się czym jest programowanie, jak przygotować środowisko oraz jak korzystać z tych materiałów.

Advent of Kotlin Solutions

Solutions to the Advent of Kotlin!

Advent of Kotlin: Week 4

Week 4 of the Advent of Kotlin: Parsing JSON

Advent of Kotlin: Week 3

Week 3 of the Advent of Kotlin: k-means clustering

Advent of Kotlin: Week 2

Week 2 of the Advent of Kotlin: Tree algorithms

Advent of Kotlin: Week 1: JSON stringify and possible value parentheses

Week 1 of the Advent of Kotlin: JSON stringify and possible well-formed parentheses

Variables point to objects

A basic feature, that is commonly misunderstood.

Testing Kotlin Coroutines

How we test Kotlin Coroutines, including common Android and backend cases.

Testen von Kotlin Coroutines

Wie wir Kotlin Coroutines testen, einschließlich häufiger Android- und Backend-Fälle.

Constructing a coroutine scope

How we generally define coroutine scope on Android and on the backend.

Erstellen eines Coroutine-Scope

Wie wir allgemein den Coroutine-Scope auf Android und im Backend definieren.

Effective Kotlin Item 56: Consider using groupingBy instead of groupBy

What Grouping is, and how groupingBy instead of groupBy can be a performance optimization.

Effective Kotlin Item 55: Consider associating elements to a map

How associateBy is useful to improve the performance of finding elements.

Effective Kotlin Item 54: Prefer Sequences for big collections with more than one processing step

What the difference between list and sequence processing is, and when each should be preferred.

Effective Kotlin Item 53: Eliminate obsolete object references

How to help our garbage collector and avoid memory leaks.

Effective Kotlin Item 52: Consider using inline value classes

What value classes are, how to use and inline them.

Coroutines under the hood

A deep dive into how suspension and continuations work under the hood.

Coroutinen unter der Haube

Eine eingehende Untersuchung, wie Aussetzung und Fortsetzungen unter der Oberfläche arbeiten.

Effective Kotlin Item 51: Use the inline modifier for functions with parameters of functional types

How inline functions work and why they can be so important for the performance of our application.

Was ist Coroutine-Kontext und wie funktioniert es?

Eine ausführliche Erklärung des Coroutine-Kontexts - des leistungsstarken Datenträgers für Coroutinen.

Effective Kotlin Item 47: Avoid unnecessary object creation

About the most essential rule of performance optimization.

Akcja "Podaj dalej"

Zaczynamy akcję "Podaj dalej" książki JavaScript od podstaw, w ramach której popularyzować będziemy umiejętności programistyczne.

Traits for testing in Kotlin

A trick needed when using traits for testing in Kotlin.

Why using Kotlin Coroutines?

The explanation of why coroutines stand out and offer us what hasn't been offered by other technologies.

Warum Kotlin Coroutines verwenden?

Die Erklärung dafür, warum Coroutines herausragen und uns bieten, was von anderen Technologien nicht geboten wurde.

How does suspension work in Kotlin coroutines?

A deep explanation of how suspension works in Kotlin Coroutines.

Wie funktioniert die Unterbrechung in Kotlin-Coroutinen?

Eine ausführliche Erklärung, wie die Aussetzung in Kotlin Coroutines funktioniert.

Effective Kotlin Item 32: Consider factory functions instead of secondary constructors

What factory functions are and why they are so important patterns for object creation.

Effective Kotlin Item 46: Avoid member extensions

What member extensions are, how they are possible and why we should avoid using them.

Kotlin Coroutines dispatchers

Where we should use each dispatcher from the Kotlin Coroutines library.

Verteiler in Kotlin-Coroutinen

Wo wir jeden Dispatcher aus der Kotlin Coroutines-Bibliothek verwenden sollten.

Przyszłość programowania

Analiza stanu branży programistycznej i jaka w związku z tym czeka ją przyszłość.

Napiszmy grę w JavaScript: Wprowadzamy podejście obiektowe

Porządkujemy grę poprzez użycie obiektów, a potem klas.

Jak zostać programistą?

Plan, jak krok po kroku nauczyć się programowania i zostać programistą.

Kt. Academy new logo: Phoenix

Why we decided to change our logo, and what is the symbolism of Phoenix.

Napiszmy grę w JavaScript: Lot kulki

Sprawiamy, aby piłeczka się odbijała i wracała na środek, oraz żeby punkty się dodawały. Gra staje się grywalna.

Nauka programowania na telefonie

Smartfon, jako świetne narzędzie do nauki programowania.

Napiszmy grę w JavaScript: W odpowiedzi na Twoje kliknięcie

Uczymy się reagować na kliknięcia użytkownika.

Gry w służbie programowania

Gry, które wspomagają naukę programowania.

Napiszmy grę w JavaScript: Stan oraz stałe

Do naszej gry wprowadzamy pojęcia stanu oraz stałych.

Napiszmy grę w JavaScript: Daj mi płótno, a namaluję świat

Pisanie naszej gry zaczynamy od rysowania elementów: piłeczki, paletek i punktacji.

Rozwiązania do zadań: JavaScript od podstaw

Zebrane rozwiązania do zadań ze wszystkich rozdziałów

Funkcje strzałkowe w JavaScript

Dowiemy się czym są oraz jak wykorzystywać popularne współcześnie funkcje strzałkowe.

Iteracja po tablicy w JavaScript

Nauczymy się iterować po tablicach i poznamy nowoczesne funkcje forEach, map oraz join.

Tablice w JavaScript

Dowiemy się czym są tablice, jak dodawać i wyciągać z nich wartości, a także jak sprawdzić ich wielkość.

Jak nauczyć się programowania?

Jak można uczyć się programowania: kursy online, YouTube, bootcampy... pomówmy o nich po kolei.

Elementy programowania obiektowego w JavaScript

Dodamy naszym programom trochę klasy dzięki metodom, operatorowi new oraz przy użyciu samych klas.

Effective Kotlin Item 36: Prefer composition over inheritance

Years of OOP made us overuse inheritance. Instead, we should more often use a composition that is safer and more explicit. More often, but not always...

Obiekty w JavaScript

Dowiemy się czym są obiekty i pola, jak je modyfikować oraz co się dzieje, gdy ich brak. Poznamy też format JSON.

Funkcje w JavaScript

Poznamy najważniejszą funkcjonalność języka: funkcje. Dowiemy się czym są parametry i argumenty, a także jak przekazywać funkcje do funkcji.

Co można robić w JavaScript?

Pisanie stron, botów, robotów... co jeszcze można zrobić przy użyciu JavaScript?

Wyrażenia logiczne w JavaScript

Jak działają operatory i && oraz lub ||.

Pętle w JavaScript

Poznamy pętle while i for, jak również dowiemy się, jak zazwyczaj są one używane.

Warunki w JavaScript

Dowiemy się jak działają warunki if, if-else oraz if-else-if, poznamy wyrażenia i operatory logiczne oraz sprawdzimy, co zrobił Jasio, aby pójść do kina.

Zmienne w JavaScript

Dowiemy się czym są i jak działają zmienne, co różni const i let oraz jak je nazywać, skąd wziął się camelCase, a także czym są null i undefined.

Wartości w JavaScript

Nauczymy się czym są i jakie są podstawowe wartości i typy w JavaScript. Sprawdzimy też, czy JavaScript może nam służyć jako kalkulator.

Pierwszy program w JavaScript

Napiszemy pierwszy program, a także nauczymy się czym jest programowanie, jak przygotować środowisko, oraz jak korzystać z tych materiałów.

Reviewed articles

Running Kotlin coroutines on Project Loom's virtual threads

How to use Project Loom to improve Coroutines performance.

A birds-eye view of Arrow: Data Immutability with Arrow Optics

Learn to use Arrow Optics to support working on immutable objects.

Slowing down your code with Coroutines

How can we use coroutines to slow down our code, and why would we want to do that.

A birds-eye view of Arrow: Error Handling

Learn about Error Handling in Arrow, end how to effectively work with Either.

A birds-eye view of Arrow: working with function with Arrow Core

Learn about essential Arrow functions used for composition, memoization, recursion and functions generation.

Persistent memory design choices and use-cases

Let's understand some design choices with persistent memory and use-cases of persistent memory.

Persistent dictionary

Let's make our in-memory dictionary persistent and understand some concepts of PMDK.

Introducing persistent memory

Let's learn the basics of persistent memory, its characteristics, how it works and the beauty of byte addressability.

In-memory dictionary

Let's begin our journey to understand persistent memory by building an in-memory dictionary.

Persistent memory - Introduction

Do you want to learn about persistent memory? Join this journey to explore persistent memory and build a persistent dictionary.