Tag

Kotlin

1 views collected around this technical thread.

AndroidPub
AndroidPub
Jun 17, 2025 · Fundamentals

Unlock Kotlin’s New Power: Named Destructuring, Rich Errors, and More

This article reviews the latest Kotlin 2.x enhancements, including name‑based destructuring, the upcoming Rich Errors union type, new first‑party plugins, AI‑focused MCP SDKs and Kooga agents, the stabilization of Compose Multiplatform for iOS, and improved coroutine debugging in Kotlin 2.2.

AI SDKKotlincompose multiplatform
0 likes · 8 min read
Unlock Kotlin’s New Power: Named Destructuring, Rich Errors, and More
AndroidPub
AndroidPub
Jun 13, 2025 · Fundamentals

Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap

This article explains how Kotlin's standard library provides concise builder functions such as buildList, buildSet, buildMap, and buildString to create immutable collections and strings efficiently, reducing boilerplate and eliminating lambda overhead while offering specialized variants for primitive types.

Kotlinbuilder-functionscollections
0 likes · 7 min read
Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap
Tencent Cloud Developer
Tencent Cloud Developer
Jun 10, 2025 · Mobile Development

How Tencent’s ovCompose & KuiklyBase Enable Seamless Cross‑Platform Apps on Android, iOS, and HarmonyOS

This article introduces ovCompose and KuiklyBase, Tencent Video's cross‑platform development framework built on Compose Multiplatform, explains the background, key advantages, implementation details, performance optimizations for Android, iOS and HarmonyOS, provides repository information and outlines future plans.

AndroidHarmonyOSKotlin
0 likes · 19 min read
How Tencent’s ovCompose & KuiklyBase Enable Seamless Cross‑Platform Apps on Android, iOS, and HarmonyOS
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 4, 2025 · Backend Development

Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization

This article explains Java's lock mechanisms—including synchronized, ReentrantLock, and their JVM implementations—covers lock classifications, memory barriers, CAS, and compares them with Kotlin coroutine synchronization tools like Mutex, providing code examples and practical guidance for safe concurrent programming.

CoroutinesJVMJava
0 likes · 22 min read
Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization
AndroidPub
AndroidPub
May 29, 2025 · Mobile Development

Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android

This article highlights five common Kotlin coroutine pitfalls for Android developers—directly calling suspend functions in Views, misusing GlobalScope, sequential network calls, improper exception handling, and ignoring cancellation—while providing correct implementations and best‑practice guidelines to avoid them.

AndroidCoroutinesKotlin
0 likes · 10 min read
Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android
Ctrip Technology
Ctrip Technology
May 22, 2025 · Mobile Development

An In‑Depth Overview of Skip: A High‑Performance Native Cross‑Platform Development Framework

This article introduces Skip, a new high‑performance native cross‑platform framework that converts Swift/SwiftUI code to Kotlin/Jetpack Compose, detailing its architecture, toolchain, usage steps, code examples, comparisons with other frameworks, project structure, internal modules, and practical considerations for mobile developers.

Jetpack ComposeKotlinSwift
0 likes · 11 min read
An In‑Depth Overview of Skip: A High‑Performance Native Cross‑Platform Development Framework
Sohu Tech Products
Sohu Tech Products
May 21, 2025 · Mobile Development

Compose Multiplatform 1.8.0 for iOS: Stable Release, Performance Benchmarks, and New Features

Compose Multiplatform 1.8.0 brings a stable, production‑ready iOS version with performance comparable to native apps, concurrent rendering, Kotlin/Native compilation, Skia‑based UI, extensive iOS‑specific enhancements, hot‑reload support, and adoption by major teams, marking a significant milestone for cross‑platform mobile development.

Kotlincompose multiplatformhot reload
0 likes · 6 min read
Compose Multiplatform 1.8.0 for iOS: Stable Release, Performance Benchmarks, and New Features
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 19, 2025 · Mobile Development

Integrating Serial Port, USB, Printers, and Input Devices in Android Applications

This article provides a comprehensive guide for Android developers on how to connect and use serial ports, USB peripherals, printers, barcode scanners, payment boxes, keyboards, and mice, including required permissions, configuration steps, and sample Kotlin/Java code snippets for each device type.

AndroidBarcode ScannerJava
0 likes · 14 min read
Integrating Serial Port, USB, Printers, and Input Devices in Android Applications
Sohu Tech Products
Sohu Tech Products
May 14, 2025 · Mobile Development

Best Practices for Reusing ViewModel Logic Across Multiple Android Screens

This article examines common challenges of sharing user interaction logic across multiple Android screens using ViewModel, compares four reuse strategies—including base class inheritance, helper classes, Kotlin class delegation, and interface default functions—and recommends the interface default‑function approach as the most flexible and maintainable solution.

AndroidKotlinMVI
0 likes · 14 min read
Best Practices for Reusing ViewModel Logic Across Multiple Android Screens
Sohu Tech Products
Sohu Tech Products
Apr 9, 2025 · Backend Development

Compiling Kotlin to Jack Bytecode: Adding a Jack Target to the Kotlin Compiler

The article shows how to extend the Kotlin compiler with a new Jack target by reusing its front‑end, adding a CLI module and a backend that transforms Kotlin IR into Jack bytecode, then running the generated .jack files on the Nand2Tetris virtual machine.

IR transformationJack bytecodeKotlin
0 likes · 12 min read
Compiling Kotlin to Jack Bytecode: Adding a Jack Target to the Kotlin Compiler
IT Services Circle
IT Services Circle
Apr 8, 2025 · Fundamentals

TIOBE April 2025 Index Shows Kotlin, Ruby, and Swift Falling While Flutter Gains Traction

The TIOBE April 2025 programming‑language ranking reveals that former top‑20 languages Kotlin, Ruby and Swift are slipping in popularity, while cross‑platform frameworks like Flutter rise, and legacy "dinosaur" languages such as Delphi, Fortran, Ada and COBOL quietly re‑enter the top‑20 list.

FlutterKotlinRuby
0 likes · 7 min read
TIOBE April 2025 Index Shows Kotlin, Ruby, and Swift Falling While Flutter Gains Traction
Sohu Tech Products
Sohu Tech Products
Apr 2, 2025 · Backend Development

Compiling Kotlin to Jack Bytecode: Adding a New Kotlin Target

The article shows how to extend Kotlin by adding a Jack‑bytecode backend, detailing the required standard‑library, CLI module, and IR‑to‑Jack transformer implementation, and demonstrates compiling a simple Kotlin program to Jack bytecode that runs correctly on the Nand2Tetris virtual machine.

IR transformationJack bytecodeKotlin
0 likes · 11 min read
Compiling Kotlin to Jack Bytecode: Adding a New Kotlin Target
Selected Java Interview Questions
Selected Java Interview Questions
Mar 14, 2025 · Backend Development

Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Kotlin Annotations

This article explains how to design and implement a business-specific rate‑limiting component in Kotlin using Redis Lua scripts and Spring AOP annotations, covering the motivation, rule definitions, counting strategies, Lua script details, annotation creation, and a practical usage example.

AnnotationKotlinLua
0 likes · 10 min read
Design and Implementation of a Business Rate‑Limiting Component Using Redis Lua Scripts and Kotlin Annotations
Sohu Tech Products
Sohu Tech Products
Feb 26, 2025 · Mobile Development

Building Camera Features with CameraX and Jetpack Compose

The tutorial walks developers through adding the new alpha‑stage viewfinder‑compose and camera‑compose libraries, configuring permissions with Accompanist, creating a CameraPreviewViewModel that manages CameraX preview use cases, and building a full‑screen, Compose‑based camera viewfinder using CameraXViewfinder for adaptive APIs and animations.

Android DevelopmentAndroidXCamera Preview
0 likes · 7 min read
Building Camera Features with CameraX and Jetpack Compose
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 4, 2025 · Mobile Development

Understanding Android NestedScrolling: Interfaces, Logic Flow, and Implementation Examples

This article explains Android's NestedScrolling mechanism introduced in Android 5.0, detailing the parent‑child interaction flow, key interfaces (NestedScrollingParent and NestedScrollingChild), helper classes, and provides Kotlin/Java code examples for custom views and RecyclerView integration.

AndroidKotlinMobile UI
0 likes · 26 min read
Understanding Android NestedScrolling: Interfaces, Logic Flow, and Implementation Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 2, 2025 · Mobile Development

Why Koin Is More Suitable Than Hilt for Dependency Injection in Modern Android Development

The article explains the principles of dependency injection, compares the DI frameworks Koin and Hilt in terms of integration difficulty, performance, cross‑platform support, IDE tooling, and maintenance, and concludes that Koin offers a simpler, lighter, and more versatile solution for Android and multiplatform projects.

AndroidDI FrameworkHilt
0 likes · 11 min read
Why Koin Is More Suitable Than Hilt for Dependency Injection in Modern Android Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 23, 2025 · Mobile Development

Advanced Repository and Network Layer Automation in Kotlin Using Annotation Processors, Dynamic Proxies, and Flow

This article presents a comprehensive guide on building a highly modular Android network layer by leveraging Kotlin coroutines, Flow, Retrofit, annotation processors, dynamic proxies, and dependency‑injection frameworks to automatically generate Repository classes and streamline MVVM data flow.

AndroidAnnotation ProcessorDynamic Proxy
0 likes · 16 min read
Advanced Repository and Network Layer Automation in Kotlin Using Annotation Processors, Dynamic Proxies, and Flow
Sohu Tech Products
Sohu Tech Products
Jan 15, 2025 · Mobile Development

Twitter Compose Static Analysis Rules – Guidelines and Best Practices

Twitter’s Compose static‑analysis guide defines a comprehensive set of lint rules—covering state hoisting, proper use of remember, @Immutable annotations, stable collections, safe parameter passing, single‑layout emission, naming conventions for locals, previews and functions, and mandatory Modifier handling—to help large teams write clean, performant Jetpack Compose code.

AndroidComposeDetekt
0 likes · 17 min read
Twitter Compose Static Analysis Rules – Guidelines and Best Practices
Architecture Development Notes
Architecture Development Notes
Jan 14, 2025 · Backend Development

Boost PDF-to-Image Conversion in Kotlin with JNI and Rust: A Step-by-Step Guide

This tutorial explains how a Kotlin backend can efficiently convert PDF pages to high-resolution PNG images by integrating the native PDFium library through a Rust-based JNI adapter, covering performance benefits, workflow steps, and complete code examples for building and invoking the native module.

JNIKotlinNative Integration
0 likes · 11 min read
Boost PDF-to-Image Conversion in Kotlin with JNI and Rust: A Step-by-Step Guide
Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Mobile Development

Understanding Jetpack Compose Layout Process: Composition, Measurement, and Modifier Nodes

Jetpack Compose’s layout process consists of three steps—measuring children, deciding the parent’s size, and placing children—driven by a MeasurePolicy that respects explicit Constraints, while Modifier nodes adjust those constraints and intrinsic measurements provide size hints, enabling efficient, declarative UI rendering.

Android UIJetpack ComposeKotlin
0 likes · 17 min read
Understanding Jetpack Compose Layout Process: Composition, Measurement, and Modifier Nodes