Best of Kotlin โ€” April 2024

  1. 1
    Article
    Avatar of medium_jsMediumยท2y

    Kotlin Coroutines: From Basics to Advanced Techniques ๐Ÿ› ๏ธ

    Learn about Kotlin coroutines, a concurrency design pattern that allows asynchronous programming. Discover how coroutines differ from threads, how they improve performance compared to traditional threading, and the main coroutine builders in Kotlin.

  2. 2
    Article
    Avatar of pandProAndroidDevยท2y

    Kotlin Design Patterns: Memento Explained

    The Memento design pattern is used to save and restore the previous state of an object. It is commonly used in versioning systems, rollback, and undo functionality. The pattern hides the complexity of saving and restoring the state and provides an easy-to-use history system. However, it requires a lot of memory to store a series of states.

  3. 3
    Article
    Avatar of pandProAndroidDevยท2y

    Kotlin Design Patterns: Observer Explained

    The Observer Design Pattern in Kotlin allows for the creation of a subscriber-publisher mechanism to notify subscribers when a state changes. It provides an open/closed approach, one-to-many dependency without tight coupling, and efficient state observation.