Best articles from 2021 by Marcin Moskala & Merry Xmas from Kt. Academy 🎁

Kasia Kt. Academy
Kt. Academy
Published in
4 min readDec 21, 2021

--

Hi there Code-lovers! πŸŽ…

It’s been a really intense year, but we hope these Christmas days will be full of peace, joy and rest
… and something tasty, of course! 🀀

The last part of Advent of Kotlin is coming on Thursday. We cannot wait for the results, and to mark the occasion and give you some rest from the Christmas duties, we are sharing the golden seven articles from 2021 written by Marcin Moskala, that you liked the most!

πŸ‘‰ How does suspension work in Kotlin Coroutines?
πŸ‘‰ Use enum to represent a list of values
πŸ‘‰ Kotlin Coroutines dispatchers
πŸ‘‰ Consider using inline value classes
πŸ‘‰ Coroutines under the hood
πŸ‘‰ Consider factory functions instead of constructors
πŸ‘‰ Prefer composition over inheritance

Have a nice reading ⏬

Here’s a deep explanation of how suspension works in Kotlin Coroutines.

How does suspension work in Kotlin Coroutines? πŸ‘‡

How does suspension work in Kotlin Coroutines?

πŸ”» This is a chapter from the Kotlin Coroutines book. You can find Early Access on LeanPub.

When should we use enum classes and when sealed classes instead? What are the advantages of both? 🧐

To find the answers read the article.

Use enum to represent a list of values πŸ‘‡

Use enum to represent a list of values

πŸ”» This is a chapter from the Effective Kotlin book. You can find it on LeanPub or Amazon.

An important functionality that Kotlin Coroutines library offers is letting us decide on what thread a coroutine should be running. This is done using dispatchers.

To learn where we should use each dispatcher from the Kotlin Coroutines library read this article

Kotlin Coroutines dispatchers πŸ‘‡

Kotlin Coroutines dispatchers

πŸ”» This is a chapter from the Kotlin Coroutines book. You can find Early Access on LeanPub.

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

Consider using inline value classes πŸ‘‡

Consider using inline value classes

πŸ”» This is a chapter from the Effective Kotlin book. You can find it on LeanPub or Amazon.

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

Coroutines under the hood πŸ‘‡

Coroutines under the hood

πŸ”» This is a chapter from the Kotlin Coroutines book. You can find Early Access on LeanPub.

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

Consider factory functions instead of constructors πŸ‘‡

Consider factory functions instead of constructors

πŸ”» This is a chapter from the Effective Kotlin book. You can find it on LeanPub or Amazon.

Reflections on when should we use composition and inheritance in Kotlin.
Prefer composition over inheritance πŸ‘‡

Prefer composition over inheritance

πŸ”» This is a chapter from the Effective Kotlin book. You can find it on LeanPub or Amazon.

❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️❄️

Do you agree with our list? What are your favourite articles written by Marcin Moskala? Let us know by replying to this email!

Merry Christmas, Happy New Year and may the Code be with you! 🀢
Kt. Academy Team

www: kt.academy
Blog: blog.kotlin-academy.com
Twitter EN: @KtDotAcademy
Twitter PL: @ktdotacademyPL
FB: @KtDotAcademy
LinkedIn: @Kt. Academy

--

--