# Kotlin Programming Language

- Page: https://shared.btbytes.com/p/kotlin
- Date: 2022-10-21
- Tags: java, kotlin

## Reading

- [From zero to 10 million lines of Kotlin - Engineering at Meta](https://engineering.fb.com/2022/10/24/android/android-java-kotlin-migration/)


## For the Pythonista

Kotlin uses `>>>` as the prompt for it's REPL. This is nice and familiar for a Pythonista.

### Looping

This program in Python
```python
fruits = ['apple', 'orange', 'banana']
for i, f in fruits:
    print(f'{i+1}\t{f}')
```

in Kotlin becomes:

```kotlin
val fruits = listOf("hello", "world", "apple")
for ((i, f) in fruits.withIndex()) {
	println("${i+1}\t${f}")
}
```

A lot more `()` and `{}`, I know.


## News

[My Thoughts on Kotlin: Perspectives after 4 years – tylerrussell.dev](https://tylerrussell.dev/2025/01/10/my-thoughts-on-kotlin-perspectives-after-4-years/#the-ugly); Jan 2025
