home.social

#kotlintips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kotlintips, aggregated by home.social.

fetched live
  1. ❓ Want to improve the readability of nested function calls in Kotlin code?
    👉 Learn how to simplify functional composition in Kotlin with the let scope function in my latest article: medium.com/@elenavanengelen/ko
    #Kotlin #KotlinTips #FunctionalProgramming

  2. ❓ Want to improve the readability of nested function calls in Kotlin code?
    👉 Learn how to simplify functional composition in Kotlin with the let scope function in my latest article: medium.com/@elenavanengelen/ko
    #Kotlin #KotlinTips #FunctionalProgramming

  3. Impressed by how developers at #dayjob were able to elegantly leverage the Kotlin type system to create even more opportunities for NPEs:

    fun info(tag: String?, msg: String?) {
    logInfo(tag!!, msg!!)
    }

    #KotlinTips

  4. Did you know Kotlin offers built-in functions for validating your data and maintaining accuracy? Check out my blog Kotlin's built-in assertions and learn how to simplify your code while improving code reliability.
    medium.com/@elenavanengelen/ko
    #Kotlin #KotlinTips #Programming

  5. Did you know Kotlin offers built-in functions for validating your data and maintaining accuracy? Check out my blog Kotlin's built-in assertions and learn how to simplify your code while improving code reliability.
    medium.com/@elenavanengelen/ko
    #Kotlin #KotlinTips #Programming

  6. 👨‍💻 Elevate your Kotlin skills with Romain Guy from Google! Join our live discussion on performance and optimizations: cwti.link/twitch #KotlinTips #EfficientCoding

  7. 👨‍💻 Elevate your Kotlin skills with Romain Guy from Google! Join our live discussion on performance and optimizations: cwti.link/twitch #KotlinTips #EfficientCoding

  8. @[email protected]:
    #KotlinTips

    The ‘when’ expression is exhaustive if used in combination with sealed classes or enums. The compiler will complain if you forget to handle any of the cases, thus alerting you to possible mistakes.
  9. In Kotlin/JS windows.fetch.json() on array responses returns JS Arrays so cast to Array<T> *NOT* List<T>. If you need to return a List<T> create it from the fetch results (Array doesn't have .toList though). #KotlinTips #kotlin