127 private links
Nice collection of code snippets to compare Java and Kotlin.
When we announced Kotlin as a supported language for Android, there was a tremendous amount of excitement among developers. Since then, there has been a steady increase in the number of developers using Kotlin. Today, we’re proud to say nearly 60% of the top 1,000 Android apps contain Kotlin code, with more and more Android developers introducing safer and more concise code using Kotlin.
Table of Contents
- Kotlin vs Java
- Checked Exceptions
- Code Conciseness
Coroutines
Data Classes
Extension Functions
Higher-Order Functions and Lambdas
Implicit Widening Conversions
Inline Functions
Native Support for Delegation
Non-private Fields
Null Safety
Primitive Types
Smart Casts
Static Members
Support for Constructors
Ternary Operator
Wildcard Types
Kotlin vs Java: Head to Head
This is the 4th post in a series about migrating to functional programming. This week, I'll first implement the Dijkstra algorithm, then migrate the code to a more functional-friendly design. Dijkstra's algorithm allows to find the shortest path in any graph, weighted or not, directed or not. The only requirement is that weights must be positive.
A developer's guide about how to share code between Android and iOS with Kotlin Multiplatform.