Best of KotlinAugust 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    11 Non-AI Java Trends: From GraalVM to Spring Modulith

    Java developers are showcasing interest in several non-AI trends. These include GraalVM for improving runtime efficiency, Data-Oriented Programming (DOP) for treating data as first-class citizens, the debate between Quarkus and Spring Boot, in-depth details of Spring Internals, Kotlin integration with Spring Boot, and security improvements with Spring Security 3 and OAuth2. Additionally, discussions focus on the benefits of Spring Data JDBC, alternatives to Thymeleaf templates, the evolving Spring Modulith architecture, enhanced runtime efficiency with virtual threads and CRaC in Java 21, and observability improvements introduced in Spring Boot 3.2 and 3.3.

  2. 2
    Article
    Avatar of pandProAndroidDev·2y

    The best way to load data in ViewModels

    Loading data into ViewModels is a complex task that involves managing states such as loading, success, and failure. A simplified and reactive approach is proposed using Kotlin's Flow and StateFlow. This method also includes handling data from memory, adding a refresh function, and dealing with side effects. The article provides a comprehensive solution with example code and a GitHub repository link for further reference.

  3. 3
    Article
    Avatar of game_developersGame Developers·2y

    Trying out Godot

    The author is experimenting with Godot and finds it easy to write code, though they feel the code is less reliable compared to Java/Kotlin. Despite this, they are impressed with the features available in the engine.

  4. 4
    Article
    Avatar of itnextITNEXT·2y

    Comparing WebFlux and Spring MVC with JMeter, Kotlin, and Spock — A concerts registration WebApps example

    The post discusses the comparison between Spring WebFlux and Spring MVC architectures by implementing two Spring Boot applications with Kotlin and benchmarking their performances using JMeter. The WebFlux application, which follows a reactive non-blocking model, is compared to the traditional blocking MVC model. It highlights the increased capacity and performance benefits of using WebFlux, especially in handling high-load scenarios. Detailed setup instructions for JMeter and Docker configurations are provided, along with test results showing WebFlux's resilience in processing more requests compared to the MVC architecture.

  5. 5
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Hot Flows vs. Cold Flows In Kotlin - When to Use What?

    Learn about the differences between cold and hot flows in Kotlin, the scenarios to use each type, and how to convert cold flows to hot flows using functions like `shareIn` and `stateIn`. Understand the nuances and use cases of StateFlow and SharedFlow, especially in the context of asynchronous programming in Android development.

  6. 6
    Article
    Avatar of pandProAndroidDev·2y

    ++Android Process Lifecycle + Coroutines == ❤

    Kotlin Coroutines and Android Lifecycle complement each other effectively in Android development. By leveraging coroutines within the Android Lifecycle framework, developers can ensure tasks start and stop at the appropriate times during the app’s lifecycle, such as refreshing caches or clearing sensitive data when the app goes into the background. Examples provided demonstrate how to abstract these lifecycle-dependent tasks away from activity-specific logic, making the codebase cleaner and more robust.

  7. 7
    Article
    Avatar of pandProAndroidDev·2y

    Convert Your Native Project to Kotlin Multiplatform — Developer’s Guide

    Migrating a native mobile app to Kotlin Multiplatform (KMP) allows for shared logic between Android and iOS, cutting costs and simplifying maintenance. The guide covers the technical aspects of this migration, including repository setup, modularization, dependency injection, and managing platform-specific code. It addresses common challenges and provides solutions based on extensive experience in KMP development. The process involves gradually moving Kotlin code from the Android app to a Multiplatform module, integrating it into the iOS application, and phasing out the corresponding Swift code.

  8. 8
    Article
    Avatar of collectionsCollections·2y

    JetBrains 2024.2 Update: New Default UI and Enhanced Features Across All IDEs

    JetBrains 2024.2 update introduces a new minimalist default UI for all IDEs, significantly enhancing the user experience. Key improvements include upgraded AI Assistant with GPT-4o support, new features for IntelliJ IDEA like running Spring Data JPA methods directly, and performance boosts with quicker launch times. Updates are available through various methods, with detailed release notes outlining all changes and fixes. Enhancements span other JetBrains IDEs such as PyCharm, PhpStorm, and WebStorm.