Best of Kotlin โ€” June 2024

  1. 1
    Article
    Avatar of foojayioFoojay.ioยท2y

    Be a Better Java Developer: 19 Tips for Staying Ahead in 2024

    Tips for becoming a better Java developer, including upgrading Java versions, learning Kotlin, exploring other languages/frameworks, and staying updated with the Java community.

  2. 2
    Article
    Avatar of medium_jsMediumยท2y

    Kotlin MultiPlatform (KMP)

    Learn about setting up the environment for Kotlin MultiPlatform development, the structure of a KMM project, and using coroutines in iOS.

  3. 3
    Article
    Avatar of medium_jsMediumยท2y

    Kotlin Lazy vs Lateinit Explained

    The post explains the differences between lazy and lateinit property initializers in Kotlin. Lazy initialization is used for immutable properties (val), ensuring they are initialized when first accessed, which can help with resource management. Lateinit is used for mutable properties (var) and must be initialized before use to avoid runtime exceptions. The post also discusses when to use these initializers, provides code examples, and touches on advanced concepts like using delegates for primitive types.

  4. 4
    Article
    Avatar of pandProAndroidDevยท2y

    Data Mapping In Kotlin Explained

    Exploring different methods for data mapping in Kotlin: extension functions, additional constructors, and a mapper interface. Extension functions are non-intrusive and easy to integrate, constructors are limited and intrusive, while the mapper interface is ideal for new projects due to its flexibility and support for generic mapping algorithms.

  5. 5
    Article
    Avatar of medium_jsMediumยท2y

    Data Mapping In Kotlin Explained

    The article explores different approaches to data mapping in Kotlin, including extension functions, additional constructors, and a mapper interface.

  6. 6
    Article
    Avatar of medium_jsMediumยท2y

    Kotlin Coroutine mechanisms: launch v. async

    This post explores the differences between the launch and async mechanisms in Kotlin Coroutines, and how the join() and await() functions are used. It also mentions the importance of logging and debugging in coroutines.

  7. 7
    Article
    Avatar of pandProAndroidDevยท2y

    ๐Ÿฅณ Finally! โ€” Working Samples ๐Ÿ“š in Android Studio

    Learn how to display source code samples in Android Studio, similar to how Google does it in their material for compose library. Keep samples up-to-date by adding the samples module as a dependency to the demo app module. Consider adding images to KDoc of samples for better visualization.