Best of KotlinNovember 2024

  1. 1
    Article
    Avatar of jetbrainsJetBrains·1y

    Kotlin 2.1.0 Released

    Kotlin 2.1.0 has been released, featuring new language capabilities in preview, updates to the K2 compiler, improvements in Kotlin Multiplatform, Kotlin/Native, and Kotlin/Wasm, as well as enhanced compatibility with newer versions of Gradle. The release also includes a livestream for further insights and a detailed migration guide.

  2. 2
    Article
    Avatar of springSpring·1y

    Bootiful Spring Boot 3.4: Spring Batch

    Spring Batch 5.2 introduces various new features to enhance batch processing. Notable additions include multiple job repository implementations, such as a MongoDB-backed JobRepository and a resource-less JobRepository. The release improves support for Spring Data JPA and item readers/writers, including new Kotlin data class support and concurrent steps using blocking queues. The new features like CompositeItemReader and BlockingQueueItemWriter promise more robust and scalable batch processing by leveraging staged event-driven architecture and virtual threads in Java 21.

  3. 3
    Article
    Avatar of towardsdevTowards Dev·1y

    10 Kotlin Features That Every Android Developer Should Master in 2025

    Kotlin's key features for Android development in 2025 include null safety, coroutines for asynchronous programming, extension functions, Flow API for data streams, sealed interfaces, delegated properties, data classes with value classes, context receivers, inline functions with reified types, and Kotlin Multiplatform for cross-platform development. These features help developers write clean, efficient, and maintainable code, enhancing app performance and scalability.

  4. 4
    Article
    Avatar of jetbrainsJetBrains·1y

    Advanced Code Analysis in IntelliJ IDEA

    Learn advanced techniques for code analysis in IntelliJ IDEA. Discover how to use search functions like structural search and replace (SSR), and create custom inspections for identifying specific patterns in your code. Detailed steps are provided for both structural and RegExp inspections, along with examples and practical tips for optimizing your workflow.

  5. 5
    Article
    Avatar of infoworldInfoWorld·1y

    Kotlin for Java developers: Classes and coroutines

    Kotlin, designed for JVM, simplifies programming with classes and concurrency. It offers features like data classes, function extensions, and easy object creation. Kotlin's coroutines enhance concurrency by providing structured concurrency, making thread management easier. It blends seamlessly with Java, offering a flexible and modern approach to coding.

  6. 6
    Article
    Avatar of medium_jsMedium·1y

    A Developer’s Roadmap to Mastering Kotlin Multiplatform

    Kotlin Multiplatform (KMP) allows developers to share business logic across multiple platforms such as Android, iOS, Desktop, and Web, using Kotlin. It emphasizes code consistency and efficient development by enabling platform-specific UIs while sharing core logic. Tools like Compose Multiplatform, Ktor, and various Jetpack libraries enhance the ecosystem by offering solutions for UI, networking, and local storage. KMP's architecture involves defining and implementing shared and platform-specific code, leveraging Kotlin's coroutines for asynchronous tasks. The growing support from JetBrains and Google makes KMP a promising option for developers familiar with Kotlin.

  7. 7
    Video
    Avatar of philipplacknerPhilipp Lackner·1y

    The Compose Multiplatform Crash Course for 2025 - Build a Clean Code Book App

    Learn how to build a fully functioning, multiplatform book search app using Compose Multiplatform. The course covers development for Android, iOS, and desktop, incorporating features like remote API integration, local database storage with Room, animations, and more. The author provides guidance on setting up the initial codebase, project structure, and navigating through various development steps, ensuring compatibility across platforms. Essential libraries such as Koin, Coil, and SQLite are included in the setup.

  8. 8
    Video
    Avatar of philipplacknerPhilipp Lackner·1y

    New IDE for KMP Development, Ktor 3.0 & More - Android News November 2024

    The post highlights notable updates and improvements for Android developers in November 2024, including Kotlin version 2.0.2 which introduces changes to data class copy function visibility and the new context parameters feature. Ktor 3.0 has also been released, bringing improved performance and WebAssembly support. Compose Multiplatform 1.7.0 introduces window size class API support and shared element transitions. Additionally, JetBrains is developing a standalone IDE for Kotlin Multiplatform development. The lawsuit between Epic Games and Google resulted in a favorable outcome for Epic Games, potentially leading to significant changes in Google Play Store policies.

  9. 9
    Article
    Avatar of medium_jsMedium·1y

    Modeling ViewModel State in Android: A Guide to Clean, Scalable Patterns

    Poorly designed presentation models can complicate ViewModel classes, leading to bloated, error-prone code. This post explores different approaches to modeling ViewModel state in Android, starting with plain data classes and enums, moving to sealed interfaces, and ultimately proposing a method that combines data classes and sealed interfaces. This hybrid approach aims to offer simplicity, readability, and scalability, while ensuring data consistency across different UI states. The post also includes code examples to illustrate each approach and highlights the pros and cons, recommending unit tests to catch errors.

  10. 10
    Article
    Avatar of collectionsCollections·1y

    Kotlin Coroutines: Fundamentals and Key Concepts for Android Development

    Kotlin coroutines provide an efficient way to handle asynchronous tasks by reducing context-switching costs. They act as pausable functions, allowing heavy operations to run without disturbing the main application's flow. Key concepts include suspend functions, coroutine scope and context, coroutine builders, and coroutine dispatchers and jobs. These fundamentals help in managing concurrency, improving app performance, and maintaining responsiveness on the main thread. Mastering Kotlin coroutines enhances the performance and reliability of Android applications.