Best of KotlinSeptember 2024

  1. 1
    Article
    Avatar of devtoDEV·2y

    Digging Deep to Find the Right Balance Between DDD, Clean and Hexagonal Architectures

    Choosing the right architecture for software can be challenging. The author shares their journey and practical experiences in balancing Clean Architecture, Domain-Driven Design (DDD), and Hexagonal Architecture in their project, TimeMates. Key highlights include ensuring the separation of concerns, maintaining a consistent mental model, and reusing value objects effectively while avoiding unnecessary boilerplate. The post emphasizes the importance of practical implementation over theoretical adherence and encourages developers to use critical thinking tailored to their specific needs.

  2. 2
    Article
    Avatar of jetbrainsJetBrains·2y

    Ktor 101: Efficient JVM HTTP Toolkit

    Ktor is a toolkit for building server applications on the JVM using Kotlin. It leverages Kotlin's features like coroutines to ensure efficient and flexible web applications. Ktor includes essential components for web development such as routing, authentication, and support for various protocols, including HTTP and WebSockets. With native support for asynchronous programming, it allows for declarative and non-blocking code. The toolkit also provides built-in testability and extensibility through plugins and interceptors, making it suitable for modern application architectures like microservices.

  3. 3
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Master Kotlin Coroutines & Flows With My NEW Masterclass!

    Learn to master asynchronous and reactive programming in Android using Kotlin coroutines and flows through an in-depth masterclass. This course covers essential topics such as coroutine cancellation, error handling, synchronization, performance optimization, and effective use of different flow types. Structured for both beginners and experienced developers, it also includes homework assignments for thorough understanding, and offers practical applications to bridge knowledge gaps and prepare for tech interviews.

  4. 4
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Upload a File With Progress Bar Using Ktor - Android Studio Tutorial

    Learn how to use Ktor client in Android to upload a file with a progress bar. The tutorial explains setting up the necessary dependencies, creating a file picker, and displaying a progress bar during the upload. It also covers handling different states in the ViewModel using Kotlin coroutines and flows, and how to display completion or error messages.

  5. 5
    Video
    Avatar of philipplacknerPhilipp Lackner·2y

    Android Studio Ladybug, Compose/Fragment Interop & More - Philipp's Android News September 2024

    Philipp's Android News for September 2024 highlights several updates for Android developers, including the new Android Studio Ladybug with integrated Gemini AI assistant, which enhances coding by providing code transformations, documentation, and unit test generation. The update also improves interoperability between fragments and Jetpack Compose, making it easier to embed and test these UI components together. Additionally, new features for simulating sensor data and analyzing crash logs have been introduced, alongside support for Google Pixel 9 devices.

  6. 6
    Article
    Avatar of androiddevAndroid Developers Blog·2y

    Tools, not Rules: become a better Android developer with Compiler Explorer

    Google engineers have added support for Java and Kotlin in Compiler Explorer, an interactive website that aids developers in understanding how source code is translated to assembly language and examining compiler optimizations. This tool allows studying efficiency in coding patterns and helps in making informed decisions without merely memorizing optimization rules. Among the explored concepts are minification with R8, AOT and JIT compilation, and baseline profiles, showing practical ways to make Android apps faster and more efficient.

  7. 7
    Article
    Avatar of pandProAndroidDev·2y

    Kotlin KSP — how to automate everything in the world

    Kotlin Symbol Processing (KSP) is a tool for automating boilerplate code generation in Kotlin. Aimed as a lightweight alternative to KAPT, KSP can analyze existing code and generate new classes but cannot modify existing code or analyze method implementations. The post covers the practical usage of KSP for automating navigation in the Compose Navigation library by generating necessary classes, interfaces, and protocols. Key concepts include setting up modules, creating and using annotations, and step-by-step processor implementation.