kotlin
The Kotlin Programming Language.
Discover why Kotlin emptyList() returns a singleton for efficiency. Learn how this immutable list differs from other initializations and saves memory.
How to Break Out of a Kotlin forEach Loop: Complete Guide with ExamplesLearn 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 Implement a RecyclerView in Android Kotlin with Item Click HandlingLearn how to implement a RecyclerView in Android Kotlin with efficient item click handling. Find a clear example in the JetBrains/kotlin repository.
How to Use Kotlin sortedBy for Multi-Field Sorting with Mixed Ascending and Descending OrderLearn to sort Kotlin collections by multiple fields using sortedWith and chained thenBy thenByDescending operators for mixed ascending descending order. Optimize your data.
How to Handle Kotlin Exceptions When a Method Throws: A Complete Guide to Result and runCatchingMaster Kotlin exceptions with runCatching. Learn to gracefully handle errors using Result and avoid nested try catch blocks for cleaner code.
Kotlin Internal vs Private: Visibility Modifiers Explained with Code ExamplesExplore 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.
Java to Kotlin Converter: 10 Critical Pitfalls to Review for Correctness and EfficiencyAutomated Java to Kotlin conversion has pitfalls. Review nullability, mutability, exceptions, and visibility for correct, efficient, idiomatic Kotlin code.
Kotlin String Concatenation: Efficient and Idiomatic Approaches for Modern JVM DevelopmentDiscover the most efficient and idiomatic ways for Kotlin string concatenation. Learn about string templates, the + operator, and buildString for modern JVM development.
Sealed Interface vs Sealed Class in Kotlin: Key Differences and When to Use EachUnderstand 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.
Val vs Var in Kotlin: Immutable and Mutable Properties Explained for Android DevelopersMaster 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.
Data Object Kotlin vs Regular Object: Key Differences and Usage GuideUnderstand Kotlin data object vs regular object differences. Learn automatic method generation for data structures and improve your code.
Handling Date and Time Formatting in Kotlin Time: A Complete Guide to Cross-Device ConsistencyMaster Kotlin time formatting for cross-device consistency. Learn to store dates as ISO-8601 and format at the UI layer for identical behavior everywhere.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →