kotlin

The Kotlin Programming Language.

34 articles 52.3k View on GitHub ↗
34 articles
Kotlin Empty List: Why `emptyList()` Returns a Singleton and How It Differs from Other Initializations

Discover why Kotlin emptyList() returns a singleton for efficiency. Learn how this immutable list differs from other initializations and saves memory.

deep-dive
Feb 21, 2026
How to Break Out of a Kotlin forEach Loop: Complete Guide with Examples

Learn how to break out of a Kotlin forEach loop using labeled returns or traditional for loops. Discover efficient ways to control loop execution in your Kotlin code.

how-to-guide
Feb 21, 2026
How to Implement a RecyclerView in Android Kotlin with Item Click Handling

Learn how to implement a RecyclerView in Android Kotlin with efficient item click handling. Find a clear example in the JetBrains/kotlin repository.

tutorial
Feb 20, 2026
How to Use Kotlin sortedBy for Multi-Field Sorting with Mixed Ascending and Descending Order

Learn to sort Kotlin collections by multiple fields using sortedWith and chained thenBy thenByDescending operators for mixed ascending descending order. Optimize your data.

how-to-guide
Feb 20, 2026
How to Handle Kotlin Exceptions When a Method Throws: A Complete Guide to Result and runCatching

Master Kotlin exceptions with runCatching. Learn to gracefully handle errors using Result and avoid nested try catch blocks for cleaner code.

how-to-guide
Feb 20, 2026
Kotlin Internal vs Private: Visibility Modifiers Explained with Code Examples

Explore kotlin internal vs private visibility. Learn when to use private for file/class access and internal for module-wide exposure while keeping code private to your module.

deep-dive
Feb 19, 2026
Java to Kotlin Converter: 10 Critical Pitfalls to Review for Correctness and Efficiency

Automated Java to Kotlin conversion has pitfalls. Review nullability, mutability, exceptions, and visibility for correct, efficient, idiomatic Kotlin code.

deep-dive
Feb 19, 2026
Kotlin String Concatenation: Efficient and Idiomatic Approaches for Modern JVM Development

Discover the most efficient and idiomatic ways for Kotlin string concatenation. Learn about string templates, the + operator, and buildString for modern JVM development.

deep-dive
Feb 18, 2026
Sealed Interface vs Sealed Class in Kotlin: Key Differences and When to Use Each

Understand sealed interface vs sealed class in Kotlin. Discover their differences, statefulness, constructors, and when to use each for efficient restricted hierarchies. Learn Kotlin sealed interface.

deep-dive
Feb 18, 2026
Val vs Var in Kotlin: Immutable and Mutable Properties Explained for Android Developers

Master Kotlin val vs var for Android. Learn when to use immutable val or mutable var properties. Prefer val for safer, thread-safe code and boost your app development.

deep-dive
Feb 16, 2026
Data Object Kotlin vs Regular Object: Key Differences and Usage Guide

Understand Kotlin data object vs regular object differences. Learn automatic method generation for data structures and improve your code.

deep-dive
Feb 16, 2026
Handling Date and Time Formatting in Kotlin Time: A Complete Guide to Cross-Device Consistency

Master Kotlin time formatting for cross-device consistency. Learn to store dates as ISO-8601 and format at the UI layer for identical behavior everywhere.

how-to-guide
Feb 16, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →